/* =======================================================
   TOKENS — TeacherDox brand: charcoal, white, grey. Nothing else.
======================================================== */

:root {
  --ink: #1A1D1F;
  --ink-soft: #3E4247;
  --grey: #6B7075;
  --grey-soft: #9AA0A5;
  --paper: #FFFFFF;
  --bg: #F6F6F5;
  --border: #E4E4E2;
  --border-strong: #D2D2D0;

  --brand: #1A1D1F;
  --brand-2: #4A4F54;
  --brand-pale: #EFEFED;
  --brand-pale-border: #DADAD8;

  --gold: #6B7075;
  --gold-pale: #F1F1EF;
  --gold-border: #DCDCDA;

  --accent: var(--brand);
  --accent-dark: #000000;
  --accent-tint: var(--brand-pale);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --max: 1120px;
  --gutter: clamp(24px, 5vw, 64px);

  --display: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h1 strong, h2 strong {
  font-weight: 700;
  color: var(--brand);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
}

h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 76px;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--grey);
  margin-top: 16px;
  font-size: 1.05rem;
}

.paper-section {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tint-section {
  background: var(--brand-pale);
}

/* =======================================================
   BUTTONS
======================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--sans);
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out),
    border-color 180ms var(--ease-out), transform 150ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(30, 61, 52, 0.55);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-2);
  padding: 15px 8px;
}

.btn-ghost:hover {
  color: var(--brand);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* =======================================================
   HEADER
======================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 251, 250, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

header.is-scrolled {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px -18px rgba(20, 23, 26, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-icon {
  height: 26px;
  width: 26px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-right: auto;
  margin-left: 40px;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-support {
  font-size: 0.86rem;
  color: var(--grey);
}

.nav-support:hover {
  color: var(--brand-2);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-support {
    display: none;
  }
}

/* =======================================================
   HERO
======================================================== */

.hero {
  padding: 64px 0 56px;
}

.hero-container {
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero h1 {
  margin-top: 20px;
}

.hero-description {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 500px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--grey);
  font-size: 0.85rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust span::before {
  content: "✓";
  color: var(--brand-2);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-visual {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* =======================================================
   PHONE MOCKUP (hero visual)
======================================================== */

.phone {
  position: relative;
  background: var(--ink);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(20, 23, 26, 0.45);
  max-width: 340px;
  margin-left: auto;
}

.phone-screen {
  background: #EAEAE8;
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.phone-bar {
  background: var(--brand);
  color: #fff;
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-bar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.phone-bar-avatar img {
  width: 18px;
  height: 18px;
}

.phone-bar-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.phone-bar-status {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
}

.phone-chat {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.bubble-in {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(20, 23, 26, 0.06);
}

.bubble-out {
  align-self: flex-end;
  background: var(--brand-2);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble-media {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-2);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
}

.bubble-media .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.bubble-card {
  align-self: stretch;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 18px -10px rgba(20, 23, 26, 0.18);
}

.bubble-card-kicker {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 4px;
}

.bubble-card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.bubble-card-row {
  display: flex;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--grey);
  margin-top: 6px;
  flex-wrap: wrap;
}

.bubble-card-tag {
  background: var(--brand-pale);
  color: var(--brand-2);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.bubble-time {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--grey-soft);
  align-self: flex-end;
  margin-top: -4px;
}

.phone-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 13px;
  background: #fff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.phone-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grey-soft);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.phone-typing span:nth-child(2) { animation-delay: 0.15s; }
.phone-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-typing span { animation: none; }
}

.phone-caption {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--grey);
  margin-top: 16px;
}

.phone-caption strong {
  color: var(--brand-2);
}

/* =======================================================
   DPIIT / STARTUP INDIA RECOGNITION CARD
======================================================== */

.recognition-card {
  position: relative;
  max-width: 420px;
  margin: 40px auto 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px 26px;
  text-align: center;
  box-shadow: 0 24px 48px -30px rgba(20, 23, 26, 0.3);
  overflow: hidden;
}

.recognition-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF9933 0 33.33%, #FFFFFF 33.33% 66.66%, #138808 66.66% 100%);
}

.recognition-card-flag {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 12px;
}

.recognition-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.recognition-card-dept {
  color: var(--grey);
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 30ch;
  margin: 0 auto 22px;
}

/* =======================================================
   TRUST LOGO STRIP
======================================================== */

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.trust-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 22px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--grey);
  white-space: nowrap;
}

.trust-strip-item:not(:last-child) {
  border-right: 1px solid var(--border-strong);
}

.trust-strip-item strong {
  color: var(--ink-soft);
  font-weight: 600;
}

@media (max-width: 640px) {
  .trust-strip {
    flex-direction: column;
    gap: 14px;
  }
  .trust-strip-item {
    padding: 0;
  }
  .trust-strip-item:not(:last-child) {
    border-right: none;
  }
}

/* =======================================================
   STARTUP INDIA RECOGNITION SECTION
======================================================== */

.recognition-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.recognition-copy h2 {
  margin: 16px 0 18px;
}

.recognition-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 48ch;
}

.recognition-actions {
  margin-top: 28px;
}

.recognition-cert {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 30px 60px -34px rgba(20, 23, 26, 0.35);
}

.recognition-cert-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.recognition-cert-flag {
  font-size: 1.3rem;
  line-height: 1;
}

.recognition-cert-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.recognition-cert-sub {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 2px;
}

.recognition-cert-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.86rem;
}

.recognition-cert-row:not(:last-child) {
  border-bottom: 1px dashed var(--border);
}

.recognition-cert-row span:first-child {
  color: var(--grey);
}

.recognition-cert-row span:last-child {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

@media (max-width: 900px) {
  .recognition-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =======================================================
   ROLE TABS ("Two minutes. Zero training.")
======================================================== */

.role-tabs {
  max-width: 720px;
  margin: 0 auto;
}

.role-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px;
  width: fit-content;
  margin: 0 auto 40px;
}

.role-switch button {
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.role-switch button.active {
  background: var(--brand);
  color: #fff;
}

.role-panel {
  display: none;
}

.role-panel.active {
  display: block;
}

.steps {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 46px;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
}

.steps li strong {
  color: var(--ink);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 4px;
  width: 1px;
  background: var(--border-strong);
}

.steps li:last-child::after {
  display: none;
}

.role-note {
  background: var(--brand-pale);
  border: 1px solid var(--brand-pale-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.9rem;
  color: var(--brand-2);
  margin-bottom: 28px;
}

.role-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.role-cta-note {
  font-size: 0.85rem;
  color: var(--grey);
}

/* =======================================================
   HOW IT WORKS
======================================================== */

.process-flow {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-inputs {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.process-or {
  align-self: center;
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
}

.process-track {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-connector {
  width: 1px;
  height: 32px;
  background: var(--border-strong);
  position: relative;
}

.process-connector-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
}

.process-step {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}

.process-number {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--brand-2);
  flex-shrink: 0;
  width: 30px;
  padding-top: 22px;
}

.process-node {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.process-node:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 32px -24px rgba(20, 23, 26, 0.3);
}

.process-node-wide {
  width: 100%;
}

.process-node-final {
  background: var(--brand);
  border-color: var(--brand);
}

.process-node-final .process-node-label,
.process-node-final .process-node-sub {
  color: #fff;
}

.process-node-label {
  font-weight: 600;
  font-size: 1.02rem;
  display: block;
}

.process-node-sub {
  font-size: 0.88rem;
  color: var(--grey);
  margin-top: 4px;
  display: block;
}

@media (max-width: 560px) {
  .process-inputs {
    flex-direction: column;
  }
}

/* =======================================================
   PROOF SECTION (diary mockup)
======================================================== */

.proof-single {
  margin: 0 auto;
}

.proof-caption {
  text-align: center;
  color: var(--grey);
  font-size: 0.92rem;
  margin-top: 14px;
}

/* diary mockup */
.diary-entry + .diary-entry {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

.diary-entry-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.diary-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--brand-pale);
  color: var(--brand-2);
  border: 1px solid var(--brand-pale-border);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.diary-entry-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--grey-soft);
}

.diary-entry h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.diary-entry p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.diary-entry .diary-meta-row {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--grey);
}

.diary-signoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 18px;
}

.diary-signoff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =======================================================
   APP DASHBOARD MOCKUP (shared: teacher + principal)
======================================================== */

.app-dash {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(20, 23, 26, 0.4);
  overflow: hidden;
}

.app-dash-sidebar {
  width: 190px;
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.app-dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-dash-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.app-dash-brand-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.app-dash-brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.app-dash-brand-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--grey);
  margin-top: 2px;
}

.app-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-dash-nav-item {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 9px 10px;
  border-radius: var(--radius-sm);
}

.app-dash-nav-item.active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(20, 23, 26, 0.08);
}

.app-dash-main {
  flex: 1;
  min-width: 0;
  padding: 22px 26px 26px;
}

.app-dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.app-dash-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.app-dash-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--grey);
  margin-top: 3px;
}

.app-dash-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  flex-shrink: 0;
  white-space: nowrap;
}

.app-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.app-dash-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.app-dash-stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}

.app-dash-stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brand);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.app-dash-stat-unit {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--grey);
}

.app-dash-stat-delta {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--grey);
}

.app-dash-panels {
  display: grid;
  gap: 18px;
}

.app-dash-panels-teacher {
  grid-template-columns: 190px 1fr 190px;
}

.app-dash-panels-principal {
  grid-template-columns: 190px 1fr 230px;
}

.app-dash-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.app-dash-panel-paper {
  background: var(--paper);
}

.app-dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.app-dash-panel-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.app-dash-panel-badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--brand-pale);
  color: var(--brand-2);
  border: 1px solid var(--brand-pale-border);
}

.app-dash-panel-link {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* health ring */

.app-dash-panel-ring {
  text-align: center;
}

.app-dash-panel-ring .app-dash-panel-head {
  text-align: left;
}

.app-dash-ring {
  --pct: 90;
  width: 104px;
  height: 104px;
  margin: 4px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--brand) calc(var(--pct) * 1%), var(--border) 0);
}

.app-dash-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--bg);
}

.app-dash-panel-ring .app-dash-ring::before {
  background: var(--paper);
}

.app-dash-ring-value {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
}

.app-dash-ring-subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.app-dash-ring-subs li {
  display: grid;
  grid-template-columns: 58px 1fr 22px;
  align-items: center;
  gap: 8px;
}

.app-dash-ring-subs li span {
  font-size: 0.68rem;
  color: var(--grey);
}

.app-dash-ring-subs li i {
  display: block;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.app-dash-ring-subs li i::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w);
  background: var(--brand-2);
  border-radius: inherit;
}

.app-dash-ring-subs li b {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: right;
}

/* weekly bar chart (teacher) */

.app-dash-weekbars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 120px;
  padding-top: 6px;
}

.app-dash-weekbar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.app-dash-weekbar i {
  display: block;
  width: 100%;
  max-width: 22px;
  height: var(--h);
  background: var(--brand-pale);
  border: 1px solid var(--brand-pale-border);
  border-radius: 4px 4px 2px 2px;
}

.app-dash-weekbar.active i {
  background: var(--brand);
  border-color: var(--brand);
}

.app-dash-weekbar span {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--grey);
}

/* department compliance list (principal) */

.app-dash-deptlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-dash-deptlist li {
  display: grid;
  grid-template-columns: 1fr 2fr 38px;
  align-items: center;
  gap: 10px;
}

.app-dash-deptlist-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.app-dash-deptlist-name span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--grey);
  margin-top: 2px;
}

.app-dash-bar {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
}

.app-dash-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--brand);
  border-radius: inherit;
}

.app-dash-deptlist li b {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: right;
}

/* pending countersignature list reused inside a panel */

.app-dash-panel .dash-pending-item {
  padding: 8px 0;
}

.app-dash-panel .dash-pending-item + .dash-pending-item {
  border-top: 1px solid var(--border);
}

@media (max-width: 1080px) {
  .app-dash-panels-teacher,
  .app-dash-panels-principal {
    grid-template-columns: 1fr 1fr;
  }

  .app-dash-panel-wide {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 760px) {
  .app-dash {
    flex-direction: column;
  }

  .app-dash-sidebar {
    width: auto;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }

  .app-dash-nav {
    flex-direction: row;
    gap: 6px;
  }

  .app-dash-nav-item {
    white-space: nowrap;
  }

  .app-dash-brand-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-dash-main {
    padding: 18px 18px 22px;
  }

  .app-dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .app-dash-panels-teacher,
  .app-dash-panels-principal {
    grid-template-columns: 1fr;
  }

  .app-dash-panel-wide {
    order: 0;
  }
}

/* =======================================================
   TRUST GRID
======================================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-card {
  background: var(--paper);
  padding: 30px 26px;
}

.trust-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-pale);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.trust-card-icon svg {
  width: 20px;
  height: 20px;
}

.trust-card h3 {
  margin-bottom: 8px;
}

.trust-card p {
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

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

/* =======================================================
   PRINCIPAL DASHBOARD MOCKUP
======================================================== */

.principal-list-wrap {
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: center;
}

.principal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.principal-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.principal-list li::before {
  content: "✓";
  color: #fff;
  background: var(--brand-2);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.dash-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.86rem;
}

.dash-pending-item .name {
  color: var(--ink);
  font-weight: 600;
}

.dash-pending-item .subject {
  color: var(--grey);
  font-weight: 400;
}

.dash-badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-badge.pending {
  background: transparent;
  color: var(--grey);
  border: 1px solid var(--border-strong);
}

.dash-badge.done {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}

/* =======================================================
   FAQ
======================================================== */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  padding: 22px 4px;
  cursor: pointer;
}

.faq-q-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 200ms var(--ease-out), background 200ms ease, border-color 200ms ease;
}

.faq-q-icon::before,
.faq-q-icon::after {
  content: "";
  position: absolute;
  background: var(--ink-soft);
  transition: opacity 200ms ease;
}

.faq-q-icon::before {
  width: 9px;
  height: 1.4px;
}

.faq-q-icon::after {
  width: 1.4px;
  height: 9px;
}

.faq-item.open .faq-q-icon {
  background: var(--brand);
  border-color: var(--brand);
  transform: rotate(180deg);
}

.faq-item.open .faq-q-icon::before,
.faq-item.open .faq-q-icon::after {
  background: #fff;
}

.faq-item.open .faq-q-icon::after {
  opacity: 0;
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 280ms var(--ease-in-out);
}

.faq-a-inner {
  padding: 0 4px 22px;
  color: var(--grey);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 62ch;
}

.faq-a-inner strong {
  color: var(--ink-soft);
}

/* =======================================================
   FINAL CTA
======================================================== */

.final-cta {
  text-align: center;
}

.final-cta h2 {
  max-width: 640px;
  margin: 0 auto;
}

.final-cta .hero-buttons {
  justify-content: center;
  margin-top: 32px;
}

.final-cta-sub {
  margin-top: 18px;
  color: var(--grey);
  font-size: 0.92rem;
}

/* =======================================================
   INSTITUTION FORM
======================================================== */

.pilot-form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 20px;
  text-align: center;
  color: var(--grey);
  font-size: 0.86rem;
}

.trust-row span {
  padding: 0 16px;
}

.trust-row span:not(:last-child) {
  border-right: 1px solid var(--border-strong);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success h3 {
  margin-bottom: 10px;
}

.form-success p {
  color: var(--grey);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =======================================================
   STICKY MOBILE CTA
======================================================== */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 251, 250, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  transform: translateY(120%);
  transition: transform 260ms var(--ease-out);
  display: none;
}

.mobile-cta.visible {
  transform: translateY(0);
}

@media (max-width: 780px) {
  .mobile-cta {
    display: block;
  }
  body {
    padding-bottom: 8px;
  }
}

/* =======================================================
   FOOTER
======================================================== */

footer {
  border-top: 1px solid var(--border-strong);
  padding: 56px 0 88px;
  background: var(--bg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-logo {
  height: 22px;
  margin: 0 auto;
}

.footer-tagline {
  color: var(--grey);
  font-size: 0.95rem;
  font-family: var(--display);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--ink);
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--brand-2);
}

.footer-meta {
  color: var(--grey-soft);
  font-size: 0.82rem;
  margin-top: 10px;
}

.footer-trust {
  font-family: var(--mono);
  color: var(--grey-soft);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

@media (max-width: 780px) {
  footer {
    padding-bottom: 96px;
  }
}

/* =======================================================
   TIMELINE (About page)
======================================================== */

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 46px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 4px;
  width: 1px;
  background: var(--border-strong);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-date {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}

.timeline-item h3 {
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* =======================================================
   ABOUT PAGE
======================================================== */

.about-hero {
  padding: 72px 0 8px;
  text-align: center;
}

.about-hero .eyebrow {
  justify-content: center;
  margin-bottom: 16px;
}

.about-hero h1 {
  max-width: 680px;
  margin: 0 auto;
}

.about-hero p {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* =======================================================
   FOCUS STATES
======================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
