/* SchoolOps landing page.
   Palette is taken from the logo: deep navy, electric blue, cyan. Amber is used
   only to mark "the live demo", so it is the one warm thing on the page. */
:root {
  --ink: #0a1a4a;
  --ink-soft: #14286f;
  --blue: #0b63f6;
  --blue-dark: #084cc4;
  --cyan: #19c3f2;
  --mist: #eaf1ff;
  --paper: #f7f9fd;
  --white: #ffffff;
  --text: #1b2a52;
  --muted: #55628a;
  --line: #d6dff4;
  --amber: #ffb020;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 12px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn--demo { background: var(--amber); color: var(--ink); }
.btn--demo:hover { background: #ffc24d; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.top__logo img { height: 52px; width: auto; }
.top__nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: .96rem; }
.top__nav a { text-decoration: none; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { border-color: var(--blue); }
.top__bar .btn { margin-left: 0; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% 10%, #1b3fae 0%, transparent 60%), linear-gradient(170deg, var(--ink) 0%, #0c2262 100%); color: #fff; overflow-x: clip; padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.hero__motif { position: absolute; right: -140px; top: -120px; width: 720px; height: 720px; color: rgba(25, 195, 242, .1); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; }
.hero__lead { margin-top: 24px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: #cfdcff; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__note { margin-top: 18px; color: #9fb5ee; font-size: .95rem; }

.hero__stage { position: relative; padding-bottom: 8%; }
.browser { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px rgba(2, 8, 40, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.hero__stage .browser { width: 112%; }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #e8eefb; }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #b9c6e6; }
.browser__bar em { margin-left: 12px; padding: 3px 14px; border-radius: 999px; background: #fff; color: var(--muted); font: 500 .78rem/1.4 var(--body); font-style: normal; }
.browser img { width: 100%; }
.phone { position: absolute; left: -7%; bottom: 0; width: 24%; min-width: 120px; margin: 0; border: 7px solid #0b0d14; border-radius: 30px; background: #0b0d14; overflow: hidden; box-shadow: 0 26px 60px rgba(2, 8, 40, .6), 0 0 0 1px rgba(255, 255, 255, .22); }
.phone img { width: 100%; border-radius: 22px; aspect-ratio: 780 / 1330; object-fit: cover; object-position: top; }

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .22s; }
  .hero__stage .browser { animation: slide-in .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .hero__stage .phone { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .5s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(40px); } }

/* Shared section heads */
.roles, .day, .site, .brand, .start, .cta { padding-block: var(--section); }
.section-head { max-width: 40rem; }
.section-head h2, .site__copy h2, .brand__copy h2, .cta h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); font-weight: 700; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.12rem; }

/* Roles */
.roles { background: var(--paper); }
.roles__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px; margin-top: 44px; align-items: start; }
.roles__tabs { display: grid; gap: 10px; }
.roles__tabs button { display: grid; gap: 2px; text-align: left; padding: 16px 20px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); font: inherit; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.roles__tabs button strong { font: 700 1.15rem/1.2 var(--display); color: var(--ink); }
.roles__tabs button span { font-size: .92rem; color: var(--muted); }
.roles__tabs button:hover { border-color: var(--blue); }
.roles__tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }
.roles__tabs button[aria-selected="true"] strong { color: #fff; }
.roles__tabs button[aria-selected="true"] span { color: #a9bcf0; }
.panel { background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: clamp(26px, 4vw, 44px); }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 700; max-width: 18em; }
.panel ul { display: grid; gap: 14px; margin: 24px 0 32px; max-width: 38em; }
.panel li, .ticks li { position: relative; padding-left: 28px; }
.panel li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: .52em; width: 12px; height: 13px; background: var(--blue); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* A day */
.day { background: #fff; }
.day__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.day__head { position: sticky; top: 100px; }
.day__also { margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: var(--mist); font-size: .98rem; color: var(--text); }
.day__also strong { color: var(--ink); }
.day__list { position: relative; }
.day__list::before { content: ""; position: absolute; left: 111px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--cyan), var(--blue)); border-radius: 2px; opacity: .45; }
.day__list li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 44px; padding-bottom: 40px; }
.day__list li:last-child { padding-bottom: 0; }
.day__list li::before { content: ""; position: absolute; left: 104px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.day__list time small { margin-left: 3px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.day__list time { font: 700 2.1rem/1 var(--display); color: var(--blue); font-variant-numeric: tabular-nums; text-align: right; padding-top: 4px; }
.who { display: inline-block; margin-bottom: 8px; padding: 2px 12px; border-radius: 999px; background: var(--mist); color: var(--blue-dark); font-size: .86rem; font-weight: 700; }
.day__list h3 { font-size: 1.5rem; font-weight: 700; }
.day__list p { margin-top: 8px; color: var(--muted); max-width: 34em; }

/* Website */
.site { background: var(--mist); }
.site__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.browser--light { box-shadow: 0 30px 70px rgba(10, 26, 74, .22), 0 0 0 1px var(--line); }
.site__copy p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.ticks { display: grid; gap: 14px; margin-top: 26px; }

/* Branding */
.brand { background: #fff; }
.brand__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.brand__copy > p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.brand__copy .brand__try { margin-top: 28px; color: var(--ink); font-weight: 700; }
.tester { display: grid; gap: 14px; margin-top: 14px; max-width: 30em; }
.tester > label, .tester legend { font-weight: 700; font-size: .95rem; color: var(--ink); }
.tester input[type="text"] { width: 100%; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--text); background: #fff; }
.tester input[type="text"]:focus-visible { border-color: var(--blue); }
.tester fieldset { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0; padding: 0; border: 0; }
.tester legend { padding: 0; margin-bottom: 10px; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .95rem; }
.swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch span { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); transition: box-shadow .15s ease; }
.swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.swatch input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 4px; }
.swatch b { font-weight: 600; color: var(--text); }

.mock { --brand: #0b63f6; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(10, 26, 74, .18); overflow: hidden; }
.mock__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 18px 22px; background: var(--brand); color: #fff; transition: background-color .25s ease; }
.mock__crest { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--brand); font: 800 1.2rem/1 var(--display); transition: color .25s ease; }
.mock__bar strong { font: 700 1.2rem/1.2 var(--display); overflow-wrap: anywhere; }
.mock__bar small { margin-left: auto; opacity: .85; font-size: .82rem; }
.mock__body { display: grid; gap: 14px; padding: 24px 22px 26px; }
.mock__hello { font: 700 1.3rem/1.2 var(--display); color: var(--ink); }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__stats div { padding: 14px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.mock__stats b { display: block; font: 700 1.35rem/1.1 var(--display); color: var(--ink); }
.mock__stats span { font-size: .8rem; color: var(--muted); }
.mock__row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: .95rem; }
.mock__row b { min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; text-align: center; font-size: .85rem; transition: background-color .25s ease; }
.mock__button { justify-self: start; padding: 11px 20px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; transition: background-color .25s ease; }

/* Getting started */
.start { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px; counter-reset: step; }
.steps li { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.2rem/1 var(--display); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 44px; right: 0; top: 21px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.3rem; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Contact band */
.cta { background: linear-gradient(170deg, var(--ink) 0%, #0c2262 100%); color: #fff; }
.cta h2 { color: #fff; max-width: 14em; }
.cta p { margin-top: 18px; color: #cfdcff; font-size: 1.12rem; max-width: 32em; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact { display: grid; gap: 22px; }
.contact li { display: grid; gap: 2px; padding-left: 20px; border-left: 3px solid var(--cyan); }
.contact span { color: #9fb5ee; font-size: .92rem; }
.contact a { font: 700 clamp(1.25rem, 2.2vw, 1.7rem)/1.25 var(--display); text-decoration: none; color: #fff; overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Footer */
.foot { background: var(--paper); padding: 28px 0; }
.foot__bar { display: flex; align-items: center; gap: 20px; }
.foot img { height: 44px; width: auto; }
.foot p { color: var(--muted); font-size: .92rem; }

/* Tablet and phone */
@media (max-width: 1020px) {
  .top__nav { display: none; }
  .top__bar { justify-content: space-between; }
  .top__bar .btn { margin-left: auto; }
  .hero__grid, .site__grid, .brand__grid, .cta__grid, .day__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { margin-top: 12px; }
  .hero__stage .browser { width: 100%; }
  .phone { left: -2%; width: 26%; }
  .day__head { position: static; }
  .roles__grid { grid-template-columns: minmax(0, 1fr); }
  .roles__tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .roles__tabs button span { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .steps li::after { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .hero__actions .btn { width: 100%; }
  .hero__motif { right: -260px; top: -160px; }
  .phone { width: 30%; border-width: 5px; border-radius: 22px; }
  .phone img { border-radius: 16px; }
  .day__list::before { left: 15px; }
  .day__list li { grid-template-columns: 1fr; gap: 6px; padding-left: 44px; padding-bottom: 32px; }
  .day__list li::before { left: 8px; top: 8px; }
  .day__list time { text-align: left; font-size: 1.6rem; padding: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .mock__stats { grid-template-columns: repeat(3, 1fr); }
  .mock__bar small { margin-left: 0; width: 100%; }
  .foot__bar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mock__bar, .mock__crest, .mock__row b, .mock__button { transition: none; }
}
