/* The whole visual identity of a tenant is two colours and a name,
   set at runtime from the organizations row. There is no per-school
   stylesheet and there never will be - that is the product. */


:root{
  --primary:#1f3a5f;          /* overwritten per tenant by app.js */
  --accent:#b5342b;
  --ink:#16202b;
  --ink-soft:#4a5765;
  --line:#dfe4ea;
  --bg:#ffffff;
  --bg-soft:#f5f7fa;
  --radius:14px;
  --wrap:1080px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}

/* `hidden` must actually hide.
   The browser hides [hidden] with display:none, but ANY author rule that
   sets display beats it - so `.ribbon{display:flex}` silently un-hid the
   demo ribbon. Caught in the browser, not in the code: a live district
   would have had "DEMONSTRATION - fictional district" across the top of
   their real portal. Anything hidden in this product is hidden for a
   reason, so this rule is load-bearing. */
[hidden]{display:none !important}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
h1,h2,h3{line-height:1.2;margin:0 0 .4em}
p{margin:0 0 1em}
a{color:var(--primary)}

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

.skip{position:absolute;left:-9999px;top:0;background:#fff;color:var(--primary);
  padding:12px 18px;z-index:100}
.skip:focus{left:8px;top:8px;outline:3px solid var(--accent)}

:where(a,button,[tabindex]):focus-visible{
  outline:3px solid var(--accent);outline-offset:2px;border-radius:4px}

/* ── demo ribbon ─────────────────────────────────────────── */
.ribbon{
  background:repeating-linear-gradient(45deg,#2b2b2b,#2b2b2b 12px,#232323 12px,#232323 24px);
  color:#fff;font-size:13px;letter-spacing:.02em;
  padding:9px 20px;display:flex;gap:12px;align-items:center;
  justify-content:center;flex-wrap:wrap;text-align:center}
.ribbon strong{letter-spacing:.14em;font-size:11px;
  background:#fff;color:#111;padding:2px 8px;border-radius:3px}
.ribbon code{opacity:.65;font-size:12px}

/* ── header ──────────────────────────────────────────────── */
.site-head{border-bottom:1px solid var(--line);background:var(--bg)}
.head-inner{display:flex;align-items:center;min-height:76px}
.brand{display:flex;align-items:center;gap:13px}
.mark{
  width:44px;height:44px;border-radius:11px;flex:none;
  background:var(--primary);color:#fff;
  display:grid;place-items:center;
  font-weight:700;font-size:15px;letter-spacing:.02em}
.brand-text{display:flex;flex-direction:column;line-height:1.25}
.brand-name{font-weight:650;font-size:17px}
.brand-sub{font-size:13px;color:var(--ink-soft)}

/* ── hero ────────────────────────────────────────────────── */
.hero{
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 7%, #fff), var(--bg));
  padding:56px 0 40px;border-bottom:1px solid var(--line)}
.hero h1{font-size:clamp(28px,5vw,42px);color:var(--primary);max-width:18ch}
.lede{font-size:clamp(16px,2.2vw,19px);color:var(--ink-soft);max-width:58ch}
.caveat{
  font-size:14px;color:var(--ink-soft);max-width:58ch;
  border-left:3px solid var(--accent);padding-left:12px;margin-top:22px}

/* ── the two doors ───────────────────────────────────────── */
.doors{
  display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  margin:40px auto}
.door{
  border:1px solid var(--line);border-radius:var(--radius);
  padding:24px;background:var(--bg-soft);display:flex;flex-direction:column}
.door h2{font-size:21px}
.door p{color:var(--ink-soft);font-size:15px}
.who{
  display:inline-block;align-self:flex-start;
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:4px 9px;border-radius:999px;margin:0 0 12px}
.who-need{background:color-mix(in srgb,var(--primary) 14%,#fff);color:var(--primary)}
.who-give{background:color-mix(in srgb,var(--accent) 15%,#fff);color:var(--accent)}
.btn{
  display:inline-block;margin-top:auto;text-align:center;
  padding:13px 20px;border-radius:10px;font-weight:600;
  text-decoration:none;font-size:15px}
.btn-primary{background:var(--primary);color:#fff}
.btn-accent{background:var(--accent);color:#fff}
.btn:hover{filter:brightness(1.08)}

/* ── THE BOARD ───────────────────────────────────────────────
   A whiteboard surface, because this is a school and software
   that looks like software is forgettable. Needs go up and get
   struck off as the community fills them.

   NO HANDWRITING FONT. It was tried and cut: a product title
   straight off a retailer page ("Nike Revolution 7 Big Kids'
   Road Running Shoe, Black/White, 5Y") is long, precise and
   full of model numbers, and script type makes it unreadable.
   The personality lives in the board, the tray and the marker
   strike - the content stays plain, because the content is
   somebody's real product. */

.board-wrap{padding:8px 0 48px}

.board{
  position:relative;
  background:
    linear-gradient(160deg, rgba(255,255,255,.95), rgba(246,248,250,.95)),
    #fbfcfd;
  border:1px solid #cdd4dc;
  border-radius:8px;
  box-shadow:
    0 1px 0 #fff inset,
    0 18px 38px -22px rgba(22,32,43,.45);
  padding:26px 22px 14px;
}
/* the aluminium frame edge */
.board::before{
  content:"";position:absolute;inset:-7px;border-radius:12px;z-index:-1;
  background:linear-gradient(180deg,#e8ecf0,#c3cad2 45%,#aeb6c0);
  box-shadow:0 10px 24px -14px rgba(22,32,43,.55)}

.board-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 18px;
  margin-bottom:14px}
.board-head h2{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:22px;font-weight:650;
  color:var(--primary);margin:0;letter-spacing:.01em}
.board-stats{margin:0;font-size:14px;color:var(--ink-soft)}
.board-stats b{color:var(--ink);font-weight:650}
.stat-skel{display:inline-block;width:220px;height:14px;border-radius:4px;
  background:var(--bg-soft)}

.board-list{list-style:none;margin:0;padding:0}
.bl-row{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;
  padding:13px 4px;border-bottom:1px dashed #d6dce3;position:relative}
.bl-row:last-child{border-bottom:0}
.bl-row.skeleton{height:52px;background:
  linear-gradient(90deg,transparent,rgba(0,0,0,.03),transparent)}

/* The product photo. Same job as the wish board's: the real picture of
   the real thing is most of what makes a board read as real people
   wanting real things. White background, contained not cropped -
   retailer photos are cut out on white and cropping them looks broken. */
.bl-thumb{
  flex:none;width:62px;height:62px;border-radius:8px;
  background:#fff;border:1px solid var(--line);
  display:grid;place-items:center;overflow:hidden}
.bl-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.bl-thumb-empty{
  background:
    repeating-linear-gradient(45deg,#f2f4f7,#f2f4f7 6px,#eaeef2 6px,#eaeef2 12px)}

.bl-title{
  font-size:16px;font-weight:600;line-height:1.3;
  color:var(--ink);flex:1 1 220px;min-width:0}
.bl-meta{font-size:13px;color:var(--ink-soft);flex:0 1 auto}
.bl-meta span+span::before{content:" · ";opacity:.5}
.bl-price{font-weight:700;font-size:16px;color:var(--primary);
  font-variant-numeric:tabular-nums}
.bl-act{
  border:0;cursor:pointer;font:inherit;font-size:14px;font-weight:600;
  background:var(--accent);color:#fff;padding:9px 16px;border-radius:9px}
.bl-act:hover{filter:brightness(1.08)}
.bl-held{
  font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  color:var(--ink-soft);background:var(--bg-soft);
  border:1px dashed #c6cdd6;padding:7px 12px;border-radius:999px}

/* the marker tray */
.tray{display:flex;align-items:center;gap:9px;padding:14px 2px 2px;
  border-top:1px solid #e3e8ed;margin-top:6px}
.marker{width:48px;height:9px;border-radius:3px;display:block}
.marker-a{background:var(--primary)}
.marker-b{background:var(--accent)}
.eraser{width:30px;height:13px;border-radius:3px;
  background:linear-gradient(180deg,#eef1f4,#d4dae1);border:1px solid #c3cad2}

/* ── recently filled ─────────────────────────────────────── */
.filled{margin-top:26px}
.filled h3{font-size:14px;font-weight:650;color:var(--ink-soft);
  letter-spacing:.02em;margin-bottom:10px}
.filled-list{list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;gap:9px}
.filled-list li{
  position:relative;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:19px;color:var(--ink-soft);
  background:var(--bg);border:1px solid var(--line);
  border-radius:8px;padding:7px 15px}
/* the marker strike. Slightly off-level and rounded, because a
   straight 1px rule reads as a strikethrough tag, not as somebody
   crossing a thing off a board. */
.filled-list li::after{
  content:"";position:absolute;left:8px;right:8px;top:52%;height:3px;
  border-radius:3px;background:var(--accent);opacity:.8;
  transform:rotate(-1.4deg)}

/* ── programs ────────────────────────────────────────────── */
.programs{margin:8px auto 48px}
.programs h2{font-size:20px;margin-bottom:16px}
.prog-list{list-style:none;padding:0;margin:0;
  display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.prog{
  border:1px solid var(--line);border-left:4px solid var(--primary);
  border-radius:10px;padding:14px 16px;background:var(--bg)}
.prog h3{font-size:16px;margin-bottom:4px}
.prog .meta{font-size:13px;color:var(--ink-soft);margin:0}
.prog.skeleton{height:84px;background:var(--bg-soft);border-left-color:var(--line)}
.prog .who-tag{
  font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink-soft)}

/* ── how it works ────────────────────────────────────────── */
.how{background:var(--bg-soft);border-top:1px solid var(--line);padding:46px 0}
.how h2{font-size:20px;margin-bottom:22px}
.steps{list-style:none;padding:0;margin:0;counter-reset:s;
  display:grid;gap:22px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.steps h3{font-size:16px}
.steps p{font-size:15px;color:var(--ink-soft);margin:0}
.step-n{
  display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  background:var(--primary);color:#fff;font-size:14px;font-weight:700;
  margin-bottom:10px}

/* ── footer ──────────────────────────────────────────────── */
.site-foot{border-top:1px solid var(--line);padding:26px 0;font-size:14px}
.foot-inner{display:flex;gap:18px;justify-content:space-between;flex-wrap:wrap}
.foot-privacy{color:var(--ink-soft);max-width:52ch;margin:0}
.site-foot nav{display:flex;gap:16px;flex-wrap:wrap}

/* ── the unknown-hostname state ──────────────────────────── */
.fatal{padding:64px 0;text-align:center}
.fatal h2{color:var(--primary)}
.fatal p{color:var(--ink-soft)}

@media (prefers-reduced-motion:no-preference){
  .door,.prog{transition:transform .15s ease}
  .door:hover{transform:translateY(-2px)}
}
