/* EduMonitor marketing site */
@font-face {
  font-family: 'Bricolage';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url('../fonts/bricolage.woff2') format('woff2-variations'), url('../fonts/bricolage.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url('../fonts/bricolage-ext.woff2') format('woff2-variations'), url('../fonts/bricolage-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #111b2e;
  --navy-2: #1a2742;
  --ink: #15203a;
  --ink-soft: #4a5670;
  --paper: #f8fafd;
  --rule: #e2e9f3;
  --margin: #e0595d;
  --teal: #16958a;
  --teal-dark: #0f7068;
  --teal-light: #2dd4bf;
  --online: #16a34a;
  --warning: #f5b021;
  --critical: #d94848;
  --offline: #9aa1ae;
  --line: #dbe2ec;
  --white: #ffffff;

  --f: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --radius-s: 6px;
  --radius-m: 12px;
  --section-y: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: var(--radius-s); text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* Type */
h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 760;
  font-stretch: 78%;
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 11ch;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 720;
  font-stretch: 80%;
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 18ch;
  text-wrap: balance;
}
h3 { font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -0.005em; }
.lede { font-size: clamp(18px, 1.7vw, 20px); color: var(--ink-soft); max-width: 46ch; margin-top: 24px; }
.section-lede { font-size: 18px; color: var(--ink-soft); max-width: 58ch; margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-s);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--navy); color: #fff; }
.btn-ink:hover { background: var(--navy-2); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; font-stretch: 88%; }
.brand-mark { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: 15.5px; font-weight: 520; color: var(--ink-soft); }
.site-nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

/* Hero: the exercise-book page */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: max(calc((100vw - var(--wrap)) / 2 + var(--pad) - 22px), 10px);
  width: 2px; background: var(--margin); opacity: .55;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--ink-soft); }

/* Floor plan */
.lab {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 1px 0 rgba(17, 27, 46, .04), 0 24px 48px -24px rgba(17, 27, 46, .28);
  padding: 20px 20px 18px;
}
.lab-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.lab-title { font-weight: 650; font-size: 17px; }
.lab-sub { font-size: 14px; color: var(--ink-soft); }
.lab-room { border: 1.5px solid var(--line); border-radius: 8px; padding: 14px 14px 10px; background: #fbfcfe; }
.lab-board { margin: 0 auto 16px; width: 46%; text-align: center; font-size: 12px; color: var(--ink-soft); border: 1.5px solid #c7d2e1; border-radius: 4px; padding: 3px 0; background: #fff; }
.seats {
  display: grid;
  grid-template-columns: repeat(2, 1fr) 14px repeat(2, 1fr) 14px repeat(2, 1fr);
  gap: 8px 8px;
}
.seat {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1.25;
  border-radius: 6px;
  border: 1.5px solid currentColor;
  background: color-mix(in srgb, currentColor 9%, white);
  font-size: 11px; line-height: 1.15;
  cursor: default;
  transition: color .5s ease, background-color .5s ease;
  padding: 0;
}
.seat b { font-size: 13.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.seat span { color: var(--ink-soft); font-size: 10.5px; }
.seat.s-online { color: var(--online); }
.seat.s-warning { color: var(--warning); }
.seat.s-critical { color: var(--critical); }
.seat.s-offline { color: var(--offline); background: #f3f5f8; }
.seat.s-offline b { color: var(--ink-soft); font-weight: 500; }
.seat.s-critical::after {
  content: ''; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--critical); box-shadow: 0 0 0 2px #fff;
}
.seat.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.aisle { display: block; }
.lab-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; color: var(--ink-soft); }
.lab-desk { border: 1.5px solid #c7d2e1; border-radius: 4px; padding: 3px 14px; background: #fff; }
.lab-door { border-bottom: 2px solid var(--warning); padding: 0 4px 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.s-online { background: var(--online); }
.dot.s-warning { background: var(--warning); }
.dot.s-critical { background: var(--critical); }
.dot.s-offline { background: var(--offline); }
.seat-tip {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 180px; padding: 10px 12px;
  background: var(--navy); color: #e8edf5; border-radius: 8px;
  font-size: 13px; line-height: 1.45;
  box-shadow: 0 12px 24px -8px rgba(17, 27, 46, .45);
}
.seat-tip strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }

/* Who */
.who { padding: var(--section-y) 0 calc(var(--section-y) * .7); }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.who-grid > div { border-top: 3px solid var(--navy); padding-top: 20px; }
.who-grid p { margin-top: 10px; color: var(--ink-soft); }

/* Window frame */
.window { border-radius: var(--radius-m); overflow: hidden; border: 1px solid #ccd5e2; background: #fff; box-shadow: 0 30px 60px -30px rgba(17, 27, 46, .35); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #eef2f7; border-bottom: 1px solid #dbe2ec; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd4e0; }
.window-bar span { margin: 0 auto; font-size: 13px; color: var(--ink-soft); background: #fff; padding: 2px 18px; border-radius: 5px; transform: translateX(-24px); }
.window-tight .window-bar { height: 28px; }
.window-tight .window-bar i { width: 9px; height: 9px; }
.window-body { position: relative; background: #f4f6fa; }

/* Showcase */
.showcase { padding: calc(var(--section-y) * .3) 0 var(--section-y); }
.showcase-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.showcase .window { margin-top: 40px; }
.showcase .window-body img { width: 100%; transition: opacity .35s ease; }
.showcase .shot-dark { position: absolute; inset: 0; opacity: 0; }
.showcase[data-theme='dark'] .shot-dark { opacity: 1; }
.showcase[data-theme='dark'] .window-bar { background: #1a2338; border-color: #243049; }
.showcase[data-theme='dark'] .window-bar span { background: #111827; color: #9aa6bd; }
.showcase[data-theme='dark'] .window-bar i { background: #3a4660; }
.theme-switch { display: inline-flex; padding: 3px; border-radius: 8px; background: #eef2f7; border: 1px solid var(--line); }
.theme-switch button { border: 0; background: transparent; padding: 7px 16px; border-radius: 6px; font-size: 15px; font-weight: 560; cursor: pointer; color: var(--ink-soft); }
.theme-switch button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(17, 27, 46, .15); }

/* Tour */
.tour { padding: var(--section-y) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tour-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; margin-top: 48px; align-items: start; }
.tour-list { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 88px; }
.tour-group { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); padding: 16px 12px 6px; }
.tour-group:first-child { padding-top: 0; }
.tour-list button {
  text-align: left; border: 0; background: transparent; cursor: pointer;
  padding: 8px 12px; border-radius: var(--radius-s); font-size: 16px; font-weight: 500; color: var(--ink-soft);
  border-left: 3px solid transparent;
}
.tour-list button:hover { color: var(--ink); background: #eef2f7; }
.tour-list button[aria-selected='true'] { color: var(--ink); background: #fff; border-left-color: var(--teal); font-weight: 620; box-shadow: 0 1px 2px rgba(17, 27, 46, .08); }
.tour-panel:focus-visible { outline-offset: 8px; }
.tour-panel .window-body img { width: 100%; }
.tour-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; margin-top: 28px; }
.tour-text h3 { grid-column: 1 / -1; font-size: 26px; font-weight: 700; font-stretch: 86%; letter-spacing: -0.01em; }
.tour-text p { color: var(--ink-soft); }
.tour-text ul { display: grid; gap: 8px; }
.tour-text li { position: relative; padding-left: 20px; font-size: 16px; }
.tour-text li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }

/* Platform facts */
.platform { padding: var(--section-y) 0; }
.platform-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.facts > div { padding: 20px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 650; font-size: 18px; }
.facts dd { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }

/* Roles */
.roles { padding: 0 0 var(--section-y); }
.table-scroll { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
.role-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
.role-table th, .role-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.role-table tbody tr:last-child > * { border-bottom: 0; }
.role-table thead th { background: var(--navy); color: #fff; font-weight: 600; text-align: center; font-size: 15px; }
.role-table thead th:first-child { text-align: left; }
.role-table tbody th { text-align: left; font-weight: 520; }
.role-table td { text-align: center; width: 15%; font-size: 15px; }
.role-table td.y { color: var(--online); font-weight: 650; }
.role-table td.n { color: var(--offline); }
.role-table td.y::before { content: '✓ '; }
.role-table td.n::before { content: '– '; }
.role-table tbody tr:nth-child(even) { background: var(--paper); }

/* Privacy */
.privacy { padding: var(--section-y) 0; background: var(--navy); color: #e6ebf3; }
.privacy .h-section { color: #fff; }
.privacy .section-lede { color: #b3bdd0; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); }
.privacy-shot { margin-top: 40px; border-radius: var(--radius-m); overflow: hidden; border: 1px solid #2a3753; }
.privacy-list { display: grid; gap: 0; align-content: start; }
.privacy-list li { padding: 22px 0; border-bottom: 1px solid #26324c; }
.privacy-list li:first-child { padding-top: 6px; }
.privacy-list h3 { color: #fff; }
.privacy-list h3::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-light); margin-right: 12px; vertical-align: 1px; }
.privacy-list p { margin-top: 6px; color: #b3bdd0; font-size: 16px; padding-left: 22px; }

/* Rollout steps */
.rollout { padding: var(--section-y) 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-size: 44px; font-weight: 760; font-stretch: 75%; line-height: 1; color: var(--teal);
}
.steps li::after { content: ''; position: absolute; top: 22px; left: 40px; right: -16px; height: 2px; background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }

/* Mobile */
.mobile { padding: var(--section-y) 0; background: var(--paper); border-top: 1px solid var(--line); }
.mobile-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: center; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.phone { border-radius: 26px; overflow: hidden; border: 7px solid var(--navy); background: var(--navy); box-shadow: 0 24px 40px -24px rgba(17, 27, 46, .5); aspect-ratio: 9 / 18.5; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 19px; }
.phones .phone:nth-child(2) { transform: translateY(-24px); }

/* Contact */
.contact { padding: var(--section-y) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: block; text-decoration: none; padding: 20px 22px; border: 1.5px solid var(--line); border-radius: var(--radius-m); transition: border-color .15s, background-color .15s; }
.contact-card:hover { border-color: var(--teal); background: #f2fbfa; }
.contact-card p { margin-top: 4px; color: var(--ink-soft); }
.contact-card:first-child { background: var(--navy); border-color: var(--navy); color: #fff; }
.contact-card:first-child p { color: #b3bdd0; }
.contact-card:first-child:hover { background: var(--navy-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 15px; color: var(--ink-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand-footer { font-size: 18px; color: var(--ink); }
.brand-footer .brand-mark { width: 28px; height: 28px; }
.footer-credit a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  h1 { max-width: 14ch; }
  .tour-grid { grid-template-columns: 1fr; gap: 24px; }
  .tour-list { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
  .tour-group { display: none; }
  .tour-list button { flex: none; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; background: #fff; border-radius: 6px; }
  .tour-list button[aria-selected='true'] { border-bottom-color: var(--teal); }
  .platform-grid, .privacy-grid, .mobile-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav .btn { margin-top: 16px; min-height: 46px; }
  .hero::before { left: 10px; }
  .who-grid, .facts, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .tour-text { grid-template-columns: 1fr; }
  .lab { padding: 14px 12px; }
  .lab-room { padding: 10px 8px 8px; }
  .seats { gap: 5px; grid-template-columns: repeat(2, 1fr) 6px repeat(2, 1fr) 6px repeat(2, 1fr); }
  .seat span { display: none; }
  .seat b { font-size: 11.5px; }
  .window-bar span { display: none; }
  .phones .phone:nth-child(2) { transform: none; }
  .phone { border-width: 4px; border-radius: 16px; }
  .phone img { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .seat, .showcase .window-body img { transition: none; }
  .seat.flash { animation: none; }
}
