/* KOME design tokens and components. Krepling-inspired: soft grey canvas, white and black
   cards, one vivid purple accent, peach-to-lilac gradient, large tight headlines. */
:root {
  --bg: #F1F1F1;
  --surface: #FFFFFF;
  --ink: #000000;
  --ink-2: #3D3D3D;
  --muted: #7A7A7A;
  --line: #E2E2E2;
  --accent: #B255FB;
  --accent-hover: #9A3BE8;
  --accent-soft: #F3E6FF;
  --grad: linear-gradient(125deg, #F7D0C9 0%, #EBCDE6 48%, #DCCCFD 100%);
  --green: #08B962;
  --amber: #F5A623;
  --red: #F94543;
  --blue: #4B73FF;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
          "Noto Naskh Arabic", "Segoe UI Historic", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }

/* type */
.display { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; margin: 0; }
.h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; margin: 0; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; margin: 0; }
.lead { font-size: 20px; line-height: 1.4; color: var(--ink-2); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  border-radius: var(--r-sm); padding: .7rem 1.15rem; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: #D9C4F0; }
.btn-outline:hover { border-color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-danger { background: var(--ink); color: #fff; }
.btn-danger:hover { background: #222; }
[hidden] { display: none !important; }

/* cards and pills */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 28px; }
.card-dark { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 28px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px;
  padding: 0 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
}
.pill-light { background: #fff; color: var(--ink); }
.badge { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; }
.chip {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: .45rem .95rem;
}
.chip:hover { border-color: var(--accent); }
.chip-accent { background: var(--accent); border-color: var(--accent); color: #fff; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .08em; font-size: 15px; text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: 0;
}
.logo-mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; top: -7px; left: -3px; }

/* status dots (class bar and landing) */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #BDBDBD; }
.st-hidden .dot { background: #BDBDBD; }
.st-surfaced .dot { background: var(--amber); }
.st-addressed .dot { background: var(--accent); }
.st-resolved .dot { background: var(--green); }
.st-stuck .dot { background: var(--red); }

/* avatars: one colour per pupil seat */
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; flex: none; }
.av-0 { background: #FF8E63; } .av-1 { background: #FF66B3; } .av-2 { background: var(--blue); }
.av-kome { background: var(--ink); }
