/* ============================================================================
   TechDash — tdb.alextricity.com
   Alextricity Technologies, LLC

   Palette is lifted from the shipped mobile app and from privacy.html, so the
   marketing site, the policy page and the two sign-in handoff pages read as one
   property rather than three. Do not re-theme one without the others.

   SELF-CONTAINED ON PURPOSE. No webfont, no CDN, no analytics, no tag manager.
   Two reasons. The first is that /app/callback and /app/setup ship
   `Content-Security-Policy: default-src 'none'` because they briefly hold a
   live single-use sign-in code, and the surest way to keep a third party out of
   that page is for the whole property to have no habit of loading one. The
   second is that a district's reviewer will open the network tab.
   ========================================================================== */

:root {
  --bg: #0a0a0f;
  --surface: #14141c;
  --surface-2: #1a1a24;
  --border: #2a2a3a;
  --border-soft: #21212e;
  --text: #e6e6f0;
  --muted: #a4a4b8;
  --dim: #7e7e93;
  --accent: #6c5ce7;
  --accent-light: #8b7dff;
  --link: #a99bff;
  --ok: #2dd4a7;
  --warn: #f0b429;

  --measure: 68ch;
  --gutter: 24px;
  --radius: 12px;
  --radius-lg: 16px;
}

/* The app is dark-first and so is this. The light override exists because a
   superintendent may print the privacy page or read it in a bright room. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f7f7fb;
    --surface: #ffffff;
    --surface-2: #f1f1f7;
    --border: #d9d9e6;
    --border-soft: #e6e6ef;
    --text: #17171f;
    --muted: #55556a;
    --dim: #6f6f85;
    --accent: #5a4bd4;
    --accent-light: #6c5ce7;
    --link: #5a4bd4;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- skeleton ---------------------------------------------------------- */

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--measure); }

section { padding: 84px 0; border-top: 1px solid var(--border-soft); }
section:first-of-type { border-top: 0; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 6vw, 54px); font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 650; }
h3 { font-size: 20px; font-weight: 650; }
p { margin: 0 0 18px; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: var(--measure); }
.eyebrow {
  font-size: 13px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-light); margin: 0 0 14px;
}
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ---- header ------------------------------------------------------------ */

header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 680; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(140deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-light) 40%, transparent);
}
nav.site { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current='page'] { color: var(--text); }
@media (max-width: 620px) { nav.site { gap: 15px; font-size: 14px; } .brand span { display: none; } }

/* ---- hero -------------------------------------------------------------- */

.hero { padding: 96px 0 78px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% 0 auto -10%; height: 640px; pointer-events: none;
  background:
    radial-gradient(48% 42% at 22% 38%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(38% 34% at 78% 22%, color-mix(in srgb, #2f7fff 16%, transparent), transparent 72%);
  filter: blur(4px);
}
.hero > * { position: relative; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--muted);
  margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }

/* ---- cards and grids --------------------------------------------------- */

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: 12px;
}

.feature { padding: 22px 0; border-top: 1px solid var(--border-soft); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin-bottom: 0; color: var(--muted); }

.split { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .split { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 28px; margin-bottom: 13px; color: var(--muted); }
ul.ticks li::before {
  content: ''; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px;
  border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}
ul.ticks strong { color: var(--text); font-weight: 620; }

.note {
  border-left: 3px solid var(--accent); background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 26px 0;
  color: var(--muted); font-size: 15.5px;
}
.note strong { color: var(--text); }

/* ---- footer ------------------------------------------------------------ */

footer.site {
  border-top: 1px solid var(--border-soft); padding: 46px 0 60px;
  color: var(--dim); font-size: 15px;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 30px 56px; margin-bottom: 30px; }
footer.site h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 7px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); text-decoration: underline; }
.legal { border-top: 1px solid var(--border-soft); padding-top: 22px; }

/* ---- utility ----------------------------------------------------------- */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 50;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 4px; }
