/*
 * Classnode's public site: the homepage, and the privacy notice and the terms,
 * which share its header and footer.
 *
 * Layout and motion only: every colour is a `design.css` token or a mix of
 * two (`docs/design.md`). One Blue across the top band (the header and the
 * hero, or a legal page's title), white and a wash of blue in turn below it,
 * One Blue again for "How it works" and the final band, the deepest blue for
 * the footer. Gradients: the top band and the final band, and no others.
 *
 * - Content stops at 1160px and sits in the middle (`.wrap`).
 * - Phones first. Below 1024px the nav is a menu button.
 * - Every animation and transition is inside `prefers-reduced-motion:
 *   no-preference`, at the end of the file. Without it the page is drawn
 *   finished and still, the slider shows its first screen and the report
 *   sheet is complete.
 * - Only the hero has an eyebrow. Headlines that sit over content start at
 *   the left (`.section-head-start`); the price and the final band are centred.
 */

:root {
  --wrap: 1160px;
  --section: 56px;
  /* The sticky header's height: the top band's own padding stops below it, and
     an anchor or the pinned report sheet stops below it too. */
  --head: 72px;
  /* Type and card sizes (`docs/website.md`): body copy 16px on a phone and
     17px for the larger copy on a desk; notes 15px on a phone and 16px on a
     desk; small labels 13px; cards 24px in, 12 to 16px round. */
  --copy-lg: 1rem;
  --copy-note: 0.9375rem;
  --label-sm: 0.8125rem;
  --card-pad: 24px;
  /* One Blue deeper toward the ink, for the far end of the top band and the
     footer; a wash of it for the alternate sections; and the words that sit on
     the blue (6.8:1 on One Blue) and on the deepest blue (links 9.3:1, the
     footer's headings 5.6:1 and its legal line 6.5:1). Mixes of
     `design.css`'s colours, never new ones. */
  --brand-deep: color-mix(in srgb, var(--brand) 55%, var(--text));
  --brand-deeper: color-mix(in srgb, var(--brand) 30%, var(--text));
  --brand-wash: color-mix(in srgb, var(--brand) 5%, var(--card));
  --on-brand: color-mix(in srgb, var(--card) 78%, var(--brand));
  --on-deep: color-mix(in srgb, var(--card) 75%, var(--brand-deeper));
  --on-deep-muted: color-mix(in srgb, var(--card) 55%, var(--brand-deeper));
  --on-deep-legal: color-mix(in srgb, var(--card) 60%, var(--brand-deeper));
  /* The top band is light: the wash of One Blue, ink headings, and words a
     shade off the ink (10:1 on the wash). */
  --band: var(--brand-wash);
  --on-band: color-mix(in srgb, var(--text) 78%, var(--card));


  --shadow-soft: 0 1px 2px color-mix(in srgb, var(--text) 4%, transparent),
    0 4px 16px color-mix(in srgb, var(--text) 5%, transparent);
  --shadow-float: 0 2px 6px color-mix(in srgb, var(--text) 8%, transparent),
    0 16px 40px color-mix(in srgb, var(--text) 14%, transparent);
  --shadow-shot: 0 4px 12px color-mix(in srgb, var(--text) 18%, transparent),
    0 32px 80px color-mix(in srgb, var(--text) 32%, transparent);
  /* The product's frames on the light band: a One Blue shadow, softer. */
  --shadow-frame: 0 3px 8px color-mix(in srgb, var(--brand) 12%, transparent),
    0 16px 36px -12px color-mix(in srgb, var(--brand) 40%, transparent);
}

@media (min-width: 768px) { :root { --section: 104px; --copy-lg: 1.0625rem; --copy-note: 1rem; } }

body.site {
  /* The public site keeps its own corners; the portal's are design.css's. */
  --radius: 10px;
  --radius-card: 12px;
  padding: 0;
  background: var(--card);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
body.site > main { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; max-width: none; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(100% - 48px, var(--wrap)); } }

.skip { position: absolute; left: 16px; top: -64px; z-index: 10; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--card); border-radius: 8px; }
.skip:focus { top: 16px; }

.tint { background: var(--brand-wash); }

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--text); letter-spacing: -0.02em; }
/* Every heading is balanced, and so is every short line: no word sits alone
   on a line. Longer copy wraps "pretty", which keeps its last line from being
   one word. */
h1, h2, h3, summary, .hero-note, .sheet-note, .price-sub, .cta p, .demo-card > p { text-wrap: balance; }
main p, main li { text-wrap: pretty; }
/* 24px at 360px, 40px on a desk. */
h2 { margin: 0; font-size: clamp(1.5rem, 0.9rem + 2.4vw, 2.5rem); line-height: 1.15; }
h3 { margin: 0 0 12px; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); line-height: 1.2; }

.btn-lg { min-height: 48px; padding: 0 24px; font-weight: 700; border-radius: 10px; }
.btn { font-weight: 700; }
.btn-light { color: var(--brand); background: var(--card); border-color: var(--card); }
.btn-light:hover { color: var(--brand-strong); background: var(--brand-tint); border-color: var(--brand-tint); }
.btn-outline { color: var(--brand); background: transparent; border: 1.5px solid var(--brand); }
.btn-outline:hover { color: var(--brand-strong); background: var(--brand-tint); border-color: var(--brand-strong); }

/* ---------------------------------------------------------------- tiles */

.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--card);
  font-size: var(--label-sm);
  font-weight: 700;
  border-radius: 10px;
}
.tile .icon { width: 20px; height: 20px; }
.tile-lg { width: 56px; height: 56px; margin-bottom: 24px; border-radius: 14px; }
.tile-lg .icon { width: 28px; height: 28px; }
.tile-brand { background: var(--brand); }
.tile-teal { background: var(--teal); }
.tile-amber { background: var(--amber); }
.tile-coral { background: var(--coral); }

/* ---------------------------------------------------------------- dot grids */

/* A mask, so the dots take a token colour. One 18px tile, drifting by one
   tile, so the loop has no seam. */
.dot-grid {
  position: absolute;
  pointer-events: none;
  background-color: var(--brand-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='3' cy='3' r='1.6'/%3E%3C/svg%3E");
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='3' cy='3' r='1.6'/%3E%3C/svg%3E");
  -webkit-mask-size: 18px 18px;
  mask-size: 18px 18px;
}
.dot-grid-hero { top: 8px; right: -40px; width: 198px; height: 162px; background-color: color-mix(in srgb, var(--brand) 14%, transparent); }
.dot-grid-corner { top: 32px; right: 24px; width: 162px; height: 126px; background-color: color-mix(in srgb, var(--card) 22%, transparent); }
.dot-grid-media { width: 54%; height: 70%; right: -8px; top: -24px; z-index: 0; }
.feature-flip .dot-grid-media { right: auto; left: -8px; }

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

.top-band { position: relative; isolation: isolate; color: var(--text); background: var(--band); overflow: hidden; }

/* Sticky, and in the flow: it takes its own 72px, solid, in the band's colour,
   so the band runs on under it, nothing shows through it and it never covers
   the page. Scrolled, it turns white and gains a hairline and a shadow. */
html { scroll-padding-top: calc(var(--head) + 8px); }
.site-head { position: sticky; top: 0; z-index: 3; background: var(--band); }
.site-head.is-scrolled { background: var(--card); box-shadow: 0 1px 0 var(--border), var(--shadow-soft); }
.head-inner { display: flex; align-items: center; gap: 8px; min-height: var(--head); }
.site-head .logo { margin-right: auto; padding: 0; font-size: 1.375rem; color: var(--brand); }
/* On the light band the mark is as it is everywhere: a One Blue square. */
.site-head .logo-mark, .site-foot .logo-mark { width: 32px; height: 32px; }
.site-foot .logo-mark { --card: var(--brand-deeper); }

.site-nav { display: none; align-items: center; gap: 4px; }
.site-nav a:not(.btn), .site-menu a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:not(.btn) { color: var(--text); }
.site-nav a:not(.btn):hover { color: var(--brand); background: var(--brand-tint); }
.site-menu a:not(.btn) { color: var(--text); }
.site-menu a:not(.btn):hover { color: var(--brand); background: var(--brand-tint); }
.site-nav .btn { margin-left: 8px; min-height: 44px; }
.how :focus-visible, .cta :focus-visible, .site-foot :focus-visible { outline-color: var(--card); }
.top-band :focus-visible { outline-color: var(--brand); }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; padding: 0; color: var(--text); background: transparent; border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.menu-toggle .icon { width: 24px; height: 24px; }

.site-menu {
  position: fixed;
  inset: 72px 16px auto auto;
  width: min(100vw - 32px, 320px);
  margin: 0;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
}
.site-menu:popover-open { display: grid; gap: 4px; }
.site-menu a:not(.btn) { display: flex; }
.site-menu .btn { margin-top: 8px; }

@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .menu-toggle, .site-menu { display: none; }
}

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

.hero { position: relative; padding: 40px 0 56px; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }

.hero .eyebrow { color: var(--brand); }
.hero h1 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(1.875rem, 1.125rem + 3.33vw, 3.5rem);  /* 30px at 360px, 56px on a desk */
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--brand); }
.hero-lead { margin: 0 0 32px; max-width: 34em; color: var(--on-band); font-size: var(--copy-lg); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.hero-note { margin: 0; color: var(--on-band); font-size: var(--copy-note); }

/* The network sits inside the picture's column, above the slider's bar:
   behind the photo and the screens, never under the headline, the lead, the
   buttons, the slider's controls or the caption. */
.nodes { position: absolute; z-index: 0; pointer-events: none; }
.hero-visual > .nodes { top: 0; right: -24px; bottom: 64px; left: -24px; width: auto; height: auto; }
.n-lines path { fill: none; stroke: color-mix(in srgb, var(--brand) 16%, transparent); stroke-width: 1.5; }
.n-dots circle { fill: color-mix(in srgb, var(--brand) 22%, var(--card)); }

.hero-visual { position: relative; min-width: 0; padding-top: 56px; }
/* A faint glow behind the screens, under the photo: never a halo round her. */
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: 32px;
  left: -10%;
  height: 72%;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 7%, transparent), transparent);
}

.photo { position: relative; z-index: 0; border-radius: 16px; overflow: hidden; }
/* The photo in a frame of its own: rounded, a 1px white edge and a soft blue
   shadow, and the faintest blue on the whiteboard along its top edge, gone
   well before her hair begins (13% down): no halo, and nothing on her face or skin. */
.photo-hero {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--card);
  border-radius: 20px;
  box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--brand) 35%, transparent),
    0 3px 8px color-mix(in srgb, var(--brand) 12%, transparent);
}
.photo-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent 10%);
  mix-blend-mode: multiply;
}

.slider { position: relative; z-index: 1; width: 100%; margin-top: 88px; }
.browser {
  overflow: hidden;
  width: 100%;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow-frame);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 32px;
  padding: 0 12px;
  background: var(--brand);
  border-bottom: 1px solid var(--brand);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--card) 45%, transparent); }
.url {
  flex: 1;
  max-width: 240px;
  margin-inline: auto;
  padding: 1px 12px;
  color: var(--card);
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: color-mix(in srgb, var(--card) 14%, transparent);
  border: 1px solid transparent;
  border-radius: 6px;
}
.slides { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; min-width: 0; }
.slide img { display: block; width: 100%; height: auto; }
/* The register is a phone, so it sits in a phone, as tall as the screens. It
   takes its height from them and gives none (`contain: size`): its picture
   loads after the page, and before it does it stretched the slider. */
.slide-phone { display: grid; grid-template-rows: minmax(0, 1fr); justify-items: center; contain: size; }
.phone-frame {
  height: 100%;
  padding: 8px;
  background: var(--brand);
  border-radius: 30px;
  box-shadow: var(--shadow-frame);
}
.phone-frame img { width: auto; height: 100%; aspect-ratio: 300 / 649; border-radius: 22px; }
.slide:not(.is-on) { opacity: 0; visibility: hidden; }

.slider-bar { display: flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 12px; }
.slider-pause {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px 0 8px;
  color: var(--brand);
  font-size: 0.875rem;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  border: 0;
  border-radius: 999px;
}
.slider-pause:hover { color: var(--brand-strong); background: color-mix(in srgb, var(--brand) 15%, transparent); }
.slider-pause .icon { width: 18px; height: 18px; stroke-width: 2.25; }
.slider-pause .i-play, .slider-pause[aria-pressed="true"] .i-pause { display: none; }
.slider-pause[aria-pressed="true"] .i-play { display: block; }
.slider-dots { display: flex; }
.slider-pause[hidden], .slider-dots[hidden] { display: none; }
.slider-dots button {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
}
.slider-dots i { width: 8px; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 30%, transparent); }
.slider-dots [aria-current="true"] i { width: 22px; background: var(--brand); }
.slider-name { margin: 0 0 0 auto; color: var(--on-band); font-size: 0.875rem; text-align: right; }
/* Only a desk has room for the screen's name beside the controls. */
@media (max-width: 1023.98px) { .slider-name { display: none; } }

/* ---------------------------------------------------------------- floating cards */

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  color: var(--text);
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
}
.fc-label { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }
.fc-value { display: block; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }
.fc-of { color: var(--muted); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; }
.meter { display: block; width: 150px; height: 6px; margin-top: 8px; background: var(--divider); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }

.float-a { top: 24px; left: 0; }
.float-b { right: 4px; bottom: 120px; }

/* ---------------------------------------------------------------- hero, wide */

@media (max-width: 639.98px) {
  .hero { padding-top: 24px; }
  .hero h1 { margin-bottom: 16px; }
  .hero-lead { margin-bottom: 24px; }
  .hero-inner { gap: 32px; }
  .hero-visual { padding-top: 0; }
  /* The screens start below the principal's shoulders (the photo is 48% wide
     and 5:4, so 60% of the column tall, her shoulders at about half of it):
     her face is never under the phone. */
  .slider { margin-top: 38%; }
  /* The two buttons side by side from 360px, 44px tall; stacked below it. */
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 0; min-height: 44px; padding: 0 12px; }
  .float-card { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 12px; }
  .float-card .tile { width: 32px; height: 32px; }
  .fc-value { font-size: 1.0625rem; }
  .float-b { display: none; }  /* one card on a phone, clear of the screen */
  /* Every screen is a phone screen here, in the register's frame, one size,
     at the left, beside the photo rather than over it. */
  .slide-phone { display: block; place-items: normal; contain: none; }
  .phone-frame { height: auto; }
  .browser, .phone-frame {
    width: min(250px, 72%);
    height: auto;
    padding: 8px;
    background: var(--brand);
    border-radius: 30px;
  }
  .browser-bar { display: none; }
  .browser img, .phone-frame img { width: 100%; height: auto; aspect-ratio: 300 / 649; border-radius: 22px; }
}

/* 640 to 767px: the desk's frames under the words, starting below her
   shoulders (the photo is 48% wide and 5:4, her shoulders 34% of the column
   down). */
@media (min-width: 640px) and (max-width: 767.98px) {
  .slider { margin-top: calc(34% - 48px); }
}
/* From 768px the words and the picture sit side by side, in two even columns
   until 1024px, where the picture's grows. The "Fees collected" card stays
   inside its own column until the gap is wide enough to lean into. */
@media (min-width: 768px) {
  .hero { padding: 40px 0 72px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .hero-visual { padding-top: 40px; }
  .photo-hero { width: 44%; }
  /* The screens start below her shoulders: the photo is 44% wide and 5:4, so
     55% of the column tall, her shoulders at 56% of it (31% of the column). */
  .slider { width: 92%; margin-top: max(96px, calc(31% - 32px)); }
  .float-a { top: 24px; left: 0; }
  .float-b { right: 0; bottom: 96px; }
}
@media (min-width: 1024px) {
  .hero { padding: 48px 0 80px; }
  .hero-inner { grid-template-columns: 5fr 7fr; gap: 56px; }
  .slider { width: 90%; }
  .float-a { top: 48px; left: -40px; }
}
/* Only where the gutter is wide enough does the picture lean past the column. */
@media (min-width: 1280px) {
  .hero-visual { margin-right: -24px; }
  .photo-hero { right: -8px; }
  .float-b { right: -12px; }
}

/* ---------------------------------------------------------------- sections */

.section { position: relative; padding: var(--section) 0; }
.section-head { max-width: 42rem; margin: 0 auto 48px; text-align: center; }
@media (min-width: 768px) { .section-head { margin-bottom: 64px; } }
.section-head-start { max-width: none; text-align: left; }
.section-head-start h2 { max-width: 20ch; }

/* ---------------------------------------------------------------- features */

.features > .section-head { padding-top: var(--section); margin-bottom: 0; }
.feature-row { padding: 64px 0; }
.feature-row:first-of-type { padding-top: 56px; }
@media (min-width: 900px) { .feature-row { padding: 88px 0; } }

.feature { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; }
  .feature-flip .feature-text { order: 2; }
}
.feature-text p { margin: 0 0 16px; color: var(--muted); font-size: var(--copy-lg); max-width: 34em; }

.feature-media { position: relative; display: grid; place-items: center; min-width: 0; padding: 24px 0; }
.feature-media > .mini, .feature-media > .photo { position: relative; z-index: 1; }
.photo-feature { display: block; width: min(100%, 440px); height: auto; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow-soft); }

/* The CSS-drawn product parts. */
.mini {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 20px;
  font-size: 0.875rem;
  line-height: 1.4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
}
.mini .quiet { color: var(--muted); }
.mini-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.chip { flex: none; padding: 4px 10px; color: var(--brand); font-size: var(--label-sm); font-weight: 700; background: var(--brand-tint); border-radius: 999px; }

.mini-roles { display: grid; gap: 4px; padding: 8px 20px; }
.mini-roles .role-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.mini-roles .role-row:last-child { border-bottom: 0; }
.mini-roles .tile { border-radius: 50%; }

.mini-phone { width: 250px; padding: 16px 14px 8px; border-radius: 22px; }
.mini-reg { list-style: none; margin: 0; padding: 0; }
.mini-reg li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.mini-reg li:last-child { border-bottom: 0; }
.mark { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; font-size: var(--label-sm); font-weight: 700; border-radius: 999px; }
.mark .icon { width: 14px; height: 14px; stroke-width: 2; }
.mark-in { color: var(--ok); background: var(--ok-bg); }
.mark-out { color: var(--stop); background: var(--stop-bg); }

/* Floating cards on the feature pictures. */
.float-d { left: -8px; bottom: 8px; }
.float-e { right: -8px; top: 8px; }
.feature-media > .float-f { position: absolute; z-index: 2; right: -4px; bottom: -16px; }
@media (min-width: 900px) {
  .float-d { left: -16px; bottom: 24px; }
  .float-e { right: -16px; top: 32px; }
  .feature-media > .float-f { right: -16px; bottom: -24px; }
}
@media (min-width: 1280px) {
  .float-d { left: -40px; }
  .float-e, .feature-media > .float-f { right: -32px; }
}
@media (max-width: 479.98px) {
  .mini { padding: 14px; }
  .float-e { top: -4px; }
  .float-f { width: 220px; }
}

/* ---------------------------------------------------------------- the report sheet */

/*
 * Sunrise Demo Academy's Ogun State sheet, large, beside its words. Drawn
 * complete here; the motion block at the end empties it and fills it in as
 * the page scrolls.
 */
.sheet-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .sheet-stage { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; } }
@media (min-width: 1100px) {
  .sheet-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .sheet { padding: 36px 40px 40px; }
  .sheet-school { font-size: 1.75rem; }
  .sheet-grid td { font-size: 1.1875rem; }
  .sheet-grid th, .sheet-grid td { padding-block: 14px; }
}
.sheet-text .sheet-note { margin-top: 24px; font-size: var(--copy-note); }

.sheet {
  margin: 0;
  padding: 20px 16px;
  font-size: 0.875rem;
  line-height: 1.4;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 6px solid var(--brand);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
}
@media (min-width: 640px) { .sheet { padding: 28px 32px 32px; font-size: 0.9375rem; } }

.sheet-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; padding-bottom: 16px; border-bottom: 2px solid var(--text); }
.sheet-school { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.sheet-title { margin: 4px 0 0; color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
@media (min-width: 640px) { .sheet-school { font-size: 1.5rem; } }

.sheet-who, .sheet-summary { margin: 0; }
.sheet-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px 0; }
@media (min-width: 1100px) { .sheet-who { grid-template-columns: repeat(4, auto); } }
.sheet-who dt, .sheet-summary dt, .sheet-label { margin: 0; color: var(--muted); font-size: var(--label-sm); }
.sheet-who dd { margin: 0; font-weight: 700; }

.sheet-grid { width: 100%; border-collapse: collapse; }
.sheet-grid th, .sheet-grid td { padding: 12px 6px; text-align: left; border-bottom: 1px solid var(--divider); }
.sheet-grid thead th { white-space: normal; padding-top: 8px; color: var(--muted); font-size: var(--label-sm); font-weight: 700; line-height: 1.25; vertical-align: bottom; border-bottom: 1px solid var(--border); }
.sheet-grid tbody th { font-weight: 700; }
.sheet-grid td { font-size: 1.0625rem; }
.sheet-grid .num { text-align: right; }
.sheet-grid th:first-child, .sheet-grid td:first-child { padding-left: 0; }
.sheet-grid .out { white-space: nowrap; }
.sheet-grid .short { display: none; }
/* A phone: shorter words, so four columns fit in 288px. */
@media (max-width: 479.98px) {
  .sheet { padding-inline: 14px; }
  .sheet-grid th, .sheet-grid td { padding-inline: 2px; }
  .sheet-grid tbody th { font-size: 0.875rem; }
  .sheet-grid td { font-size: 0.9375rem; }
  .sheet-grid .long { display: none; }
  .sheet-grid .short { display: inline; }
}

/* The total, the sheet's main figure: larger, in One Blue, on a pad the
   count lights up while it runs (the motion block). */
.sheet-grid .ink-sum { margin: -2px -6px; padding: 2px 6px; color: var(--brand); font-size: 1.25em; line-height: 1.2; border-radius: 6px; }

/* The class position, as the Ogun sheet's summary prints it, stamped: One
   Blue ink, a little crooked. */
.stamp {
  display: inline-block;
  padding: 1px 8px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  background: var(--brand-tint);
  border: 2px solid currentColor;
  border-radius: 6px;
  rotate: -4deg;
}

/* Affective and Psychomotor, compact: the Ogun sheet's tick grid at the width of
   a phone. One group under the other until there is room for two. The numbers
   stay the sheet's 5 to 1; the trait column takes what they leave. */
.sheet-conduct { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 640px) { .sheet-conduct { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.sheet-traits .sheet-label { margin-bottom: 4px; font-weight: 700; }
.sheet-trait-grid { width: 100%; border-collapse: collapse; font-size: var(--label-sm); }
.sheet-trait-grid th, .sheet-trait-grid td { padding: 3px 2px; font-size: var(--label-sm); text-align: left; border-bottom: 1px solid var(--divider); line-height: 1.3; }
.sheet-trait-grid thead th { color: var(--muted); font-weight: 700; border-bottom-color: var(--border); }
.sheet-trait-grid tbody th, .sheet-trait-grid tfoot th { font-weight: 400; }
.sheet-trait-grid th:first-child { padding-left: 0; }
.sheet-trait-grid .n { width: 1.75rem; text-align: center; }
.sheet-trait-grid tfoot th, .sheet-trait-grid tfoot td { font-weight: 700; border-bottom: 0; }
.sheet-trait-grid tfoot td { text-align: right; padding-right: 0; }
.sheet-trait-grid .tick { color: var(--brand); font-weight: 700; }
.sheet-key { margin: 12px 0 0; color: var(--muted); font-size: var(--label-sm); }

.sheet-foot { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 640px) { .sheet-foot { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; } }
.sheet-summary { display: grid; gap: 8px; align-self: start; padding: 14px 16px; background: var(--brand-wash); border-radius: 10px; }
.sheet-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet-summary dd { margin: 0; font-weight: 700; }
.sheet-remarks { display: grid; gap: 14px; }
.sheet-remarks p { margin: 0; }
.sheet-remarks .sheet-label { margin-bottom: 2px; }
.ink { display: inline-block; }
.ink-remark { display: block; }

/* ---------------------------------------------------------------- how */

.how { color: var(--card); background: var(--brand); overflow: hidden; }
.how .eyebrow { color: var(--on-brand); }
.how h2 { color: var(--card); }
.steps { list-style: none; display: grid; gap: 24px; margin: 0; padding: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step {
  padding: var(--card-pad);
  color: var(--text);
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
}
.step h3 { font-size: 1.25rem; }
.step p { margin: 0; color: var(--muted); }
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--card);
  font-weight: 700;
  font-size: 1.125rem;
  background: var(--brand);
  border-radius: 50%;
}

/* ---------------------------------------------------------------- pricing */

.pricing-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.price-card, .demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.price-band { padding: var(--card-pad); color: var(--card); background: var(--brand); }
.price-label { margin: 0 0 8px; color: var(--on-brand); font-weight: 700; }
.price { margin: 0 0 8px; }
.price-figure { font-size: clamp(3rem, 2.2rem + 3vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--card); }
.price-sub { margin: 0; font-weight: 700; font-size: var(--copy-lg); }
.included { list-style: none; display: grid; gap: 16px; margin: 0; padding: var(--card-pad); }
.included li { display: flex; gap: 12px; align-items: flex-start; }
.included .icon { margin-top: 2px; color: var(--brand); }
.demo-card { padding: var(--card-pad); }

/* The pricing page: the price card, then the features it includes in groups. */
.pricing-page { display: grid; gap: 40px; padding: 48px 0 72px; }
.price-card-wide { max-width: 760px; }
.price-action { margin: 0; padding: 0 var(--card-pad) var(--card-pad); }
.price-card-wide .price-action { padding-top: var(--card-pad); }
.included-section > h2, .premium > h2 { margin: 0 0 24px; }
.included-groups { display: grid; gap: 24px; }
@media (min-width: 900px) { .included-groups { grid-template-columns: 1fr 1fr; gap: 32px; } }
.included-group { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-soft); }
.included-group > h3 { margin: 0; padding: var(--card-pad) var(--card-pad) 0; font-size: 1.25rem; }
.premium { max-width: 760px; }
.premium > h2 { padding: var(--card-pad) var(--card-pad) 0; margin-bottom: 8px; }
.premium-price { margin: 0; padding: 0 var(--card-pad); font-size: var(--copy-lg); }
.included-group .chip { margin-left: 4px; white-space: nowrap; }

.demo-card h3 { font-size: 1.5rem; }
.demo-card > p { margin: 0 0 24px; }
.demo-form { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: var(--copy-note); }
.field input { width: 100%; min-height: 48px; border-radius: 8px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.demo-form button { width: 100%; min-height: 48px; margin-top: 8px; border-radius: 8px; }
.bait { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- faq */

/* The headline at the left of the questions on a desk, and over them on a phone. */
@media (min-width: 900px) {
  .faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
  .faq-inner .section-head { margin: 0; }
}
.faq-list { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-soft); }
.faq-list details + details { border-top: 1px solid var(--divider); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 24px;
  font-weight: 700;
  font-size: var(--copy-lg);
  cursor: pointer;
  list-style: none;
  border-radius: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-3px) rotate(45deg);
}
.faq-list details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-list summary:hover { color: var(--brand); }
.faq-list summary:focus-visible { outline-offset: -2px; }
.faq-list details p { margin: 0; padding: 0 24px 24px; color: var(--muted); max-width: 40em; }

/* ---------------------------------------------------------------- cta band */

.cta {
  position: relative;
  padding: var(--section) 0;
  color: var(--card);
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  overflow: hidden;
  isolation: isolate;
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta h2 { color: var(--card); margin-bottom: 16px; }
.cta p { margin: 0 0 32px; color: var(--on-brand); font-size: var(--copy-lg); }
.nodes-cta { display: none; width: 280px; top: 50%; color: var(--brand-soft); opacity: 0.7; translate: 0 -50%; }
.nodes-left { left: -60px; scale: -1 1; }
.nodes-right { right: -60px; }
@media (min-width: 1024px) { .nodes-cta { display: block; } }

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

/*
 * The footer: the logo and one line, two groups of links (Product, Sign in)
 * that run inline and wrap, a thin rule, and one bottom line: the copyright
 * naming the company once, then Privacy, Terms and the email, small. Every
 * link is 44px tall by its own padding, not by space between groups. On a
 * phone it stacks, left-aligned, about 330px tall, with room between the
 * description and the groups; from 900px the logo and
 * the groups share one row and the bottom line is a single line.
 */
.site-foot { padding: 16px 0 12px; color: var(--on-deep); background: var(--brand-deeper); font-size: 0.8125rem; line-height: 1.5; }
.foot-top { display: grid; gap: 16px; }
.foot-brand .logo { padding: 0; color: var(--card); }
.foot-tagline { margin: 4px 0 0; font-size: 0.875rem; }
.foot-links { display: grid; gap: 12px; }
.foot-heading {
  margin: 0;
  color: var(--on-deep-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
/* A row of links wraps, and a separator must never begin or end a line. Each
   dot belongs to the item after it and sits in the 16px gap before it, outside
   the item's own box; the row clips everything left of its own edge, so the
   dot of an item that starts a line (the first, or the first after a wrap) is
   cut off and never drawn. No item has a dot after it, so none ends a line.
   The clip is open 8px above and below and 4px on the right, so a focus ring
   is not cut there; a link's ring is drawn inside its box (`outline-offset`).
   Links have no side padding, so every line starts at the same left edge. */
.foot-col ul, .foot-small {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px;
  margin: 0; padding: 0; list-style: none;
  clip-path: inset(-8px -4px -8px 0);
}
.foot-col li, .foot-small li { position: relative; display: flex; align-items: center; }
.foot-col li + li::before, .foot-small li + li::before {
  content: "\00b7"; position: absolute; left: -10px; width: 4px; text-align: center; color: var(--on-deep-muted);
}
.foot-col a, .foot-small a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--on-deep);
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 4px;
}
.foot-col a:focus-visible, .foot-small a:focus-visible { outline-offset: -2px; }
.foot-col a:hover, .foot-col a:focus-visible, .foot-small a:hover, .foot-small a:focus-visible { color: var(--card); text-decoration: underline; text-underline-offset: 3px; }
.foot-col [aria-current], .foot-small [aria-current] { color: var(--card); }
.foot-bottom { margin-top: 8px; border-top: 1px solid color-mix(in srgb, var(--card) 10%, transparent); }
.foot-legal { margin: 8px 0 0; color: var(--on-deep-legal); }
.foot-small a { color: var(--on-deep-legal); }
@media (min-width: 900px) {
  .site-foot { padding: 24px 0 8px; }
  .foot-top { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
  .foot-links { grid-auto-flow: column; gap: 40px; }
  .foot-tagline, .foot-small a { font-size: 0.8125rem; }
  .foot-col a, .foot-small a { min-height: 32px; }
  .foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; }
  .foot-legal { margin: 0; }
}

/* The title sits in the top band, under the header. */
.legal-top { padding: 40px 0 40px; }
.legal-top h1 { margin: 0; max-width: 760px; color: var(--text); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; }
.legal { padding: 48px 0 72px; }
.legal > * { max-width: 760px; }
.legal-contents { margin: 0 0 48px; padding: 24px; background: var(--brand-wash); border-radius: 12px; }
.legal-contents h2 { margin: 0 0 8px; color: var(--brand); font-size: 1rem; }
.legal-contents ol { margin: 0; padding-left: 1.5em; }
.legal-contents a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 840px) {
  .legal-contents ol { columns: 2; column-gap: 40px; }
  .legal-contents li { break-inside: avoid; }
}
.legal-body section { padding: 8px 0 24px; }
.legal-body section + section { border-top: 1px solid var(--divider); padding-top: 32px; }
.legal-body h2 { margin: 0 0 16px; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.01em; }
.legal-body h3 { margin: 24px 0 8px; font-size: 1.0625rem; }
.legal-body p, .legal-body li { font-size: 1.0625rem; line-height: 1.65; }
.legal-body ul { margin: 0 0 16px; padding-left: 1.25em; }
.legal-body li + li { margin-top: 6px; }
@media (max-width: 639.98px) {
  .legal-top { padding: 24px 0 28px; }
  .legal { padding: 28px 0 40px; }
  .legal-contents { margin-bottom: 28px; padding: 16px; }
  .legal-body p, .legal-body li { font-size: 1rem; line-height: 1.55; }
}

/* ---------------------------------------------------------------- density on a phone */

/* Below 640px: cards 20px in, benefit tiles 36px, each step's 28px number on
   its title's line, and the hero's two buttons stacked only below 360px. */
@media (max-width: 639.98px) {
  :root { --card-pad: 20px; }
  .tile-lg { width: 36px; height: 36px; margin-bottom: 16px; border-radius: 10px; }
  .tile-lg .icon { width: 20px; height: 20px; }
  .steps { gap: 16px; }
  .step { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .step-num { width: 28px; height: 28px; margin: 0; font-size: 0.9375rem; }
  .step h3 { margin: 0; }
  .step p { grid-column: 1 / -1; margin-top: 8px; }
  .sheet { padding: 20px 16px; }
  .mini { padding: 16px; }
}
@media (max-width: 359.98px) {
  .hero-actions .btn { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- motion */

/*
 * Every moving thing is here, and only here. Under reduced motion none of it
 * applies: the slider stays on its first screen (the script checks too), the
 * network is drawn finished and still, the cards sit still, and the numbers
 * show their final value.
 */
@media (prefers-reduced-motion: no-preference) {
  /* The slider's crossfade, and its current dot growing. */
  .slider-dots i { transition: width 200ms ease, background-color 200ms ease; }
  .slider.is-live .slide { transition: opacity 600ms ease, visibility 0s linear 600ms; }
  .slider.is-live .slide.is-on { transition: opacity 600ms ease, visibility 0s; }

  /* The network: lines draw in once, then the nodes breathe. */
  .hero .n-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease-out var(--d) forwards; }
  .hero .n-dots circle { opacity: 0; animation: appear 0.6s ease-out calc(var(--d) * 0.6) forwards, breathe 4s ease-in-out calc(var(--d) + 1s) infinite; }

  /* Floating cards: 5px, each on its own clock. */
  .float-card { animation: float 5s ease-in-out infinite; }
  .float-b, .float-d { animation-duration: 5.8s; animation-delay: -1.4s; }
  .float-e { animation-duration: 4.4s; animation-delay: -2.6s; }
  .float-f { animation-duration: 5.4s; animation-delay: -0.8s; }

  /* Dot grids drift one tile, very slowly. */
  .dot-grid { animation: drift 24s linear infinite; }

  /* Hover lifts. */
  .step, .btn, .price-card, .demo-card { transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease; }
  .step:hover { transform: translateY(-4px); }
  .btn-light:hover, .btn-primary:hover { transform: translateY(-1px); }

  /* Fade and rise on scroll, staggered across a row. */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .stagger > .reveal:nth-child(2) { animation-range: entry 10% entry 65%; }
    .stagger > .reveal:nth-child(3) { animation-range: entry 20% entry 75%; }
    .feature-media.reveal { animation-range: entry 10% entry 65%; }
  }

  /*
   * The report sheet fills in as it scrolls through: per subject the CA, then
   * the exam, then the weighted average counting up to their sum on a lit pad
   * (the longest step, the one the section is for); then the marks obtained,
   * the percentage, the class position stamped in, and the two remarks. Each
   * step's share of the scroll is `--s` to `--e`. On a desk tall enough to
   * hold it, the sheet is pinned while the page scrolls 160vh past it;
   * elsewhere it fills while it rises up the screen. A browser
   * without scroll timelines skips all of it and shows the sheet complete.
   */
  @supports (animation-timeline: view()) {
    .sheet { view-timeline: --sheet block; }
    .sheet .ink, .sheet .stamp {
      animation: write linear both;
      animation-timeline: --sheet;
      animation-range: cover calc(25% + var(--s) * 40%) cover calc(25% + var(--e) * 40%);
    }
    .ink-ca { --s: calc(0.02 + var(--r) * 0.24); --e: calc(var(--s) + 0.05); }
    .ink-exam { --s: calc(0.07 + var(--r) * 0.24); --e: calc(var(--s) + 0.05); }
    .ink-sum { --s: calc(0.12 + var(--r) * 0.24); --e: calc(var(--s) + 0.12); }
    .ink-total { --s: 0.74; --e: 0.82; }
    .ink-pct { --s: 0.8; --e: 0.84; }
    .sheet .stamp { --s: 0.84; --e: 0.88; animation-name: stamp; }
    .ink-remark { --s: 0.88; --e: 0.94; }
    .ink-remark-2 { --s: 0.93; --e: 0.99; }

    /* A total counts: its own figure is kept for reading and drawn over by a
       counter of the same value at the end. */
    .sheet .ink-sum, .sheet .ink-total { position: relative; color: transparent; counter-reset: n var(--n); animation-name: add-up; }
    .ink-total::after, .ink-sum::after { content: counter(n); content: counter(n) / ""; position: absolute; inset: 0; color: var(--text); text-align: right; }
    .sheet .ink-sum::after { padding: inherit; color: var(--brand); }

    @media (min-width: 900px) and (min-height: 920px) {
      .sheet-row { height: 260vh; padding: 0; view-timeline: --sheet block; }
      .sheet { view-timeline: none; }
      .sheet-stage { position: sticky; top: var(--head); min-height: calc(100vh - var(--head)); align-content: center; padding-block: 40px; }
      .sheet .ink, .sheet .stamp { animation-range: contain calc(var(--s) * 100%) contain calc(var(--e) * 100%); }
    }
  }
}

@keyframes rise { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes drift { to { -webkit-mask-position: 18px 18px; mask-position: 18px 18px; } }
@keyframes write { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes add-up { 0% { --n: 0; opacity: 0; } 10% { opacity: 1; background-color: var(--brand-tint); } 85% { background-color: var(--brand-tint); } 100% { --n: var(--to); opacity: 1; background-color: transparent; } }
@keyframes stamp { 0% { opacity: 0; scale: 2; rotate: -18deg; } 60% { opacity: 1; scale: 0.92; rotate: -2deg; } 100% { opacity: 1; scale: 1; rotate: -4deg; } }

/* The figure a total counts with (the report sheet). */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.mini-phone.float-card { display: block; }
