/* Prax website. Same design system as the apps (@prax/ui/styles.css): green for
   actions, navy serif headings, a gold accent, cream bands and white cards.
   No scripts, no inline styles (the content security policy blocks both), no
   web fonts, no multi-colour stripes. */
:root {
  color-scheme: light;
  --green: #006b3f;
  --green-dark: #00532f;
  --green-soft: #e8f1ec;
  --navy: #0f2a4a;
  --navy-2: #17375e;
  --navy-soft: #e6eaf0;
  --gold: #c9a227;
  --gold-soft: #fbf3d8;
  --amber-ink: #92400e;
  --ink: #1a1f2b;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e5e7eb;
  --line-2: #f0f1f3;
  --bg: #fafaf8;
  --card: #ffffff;
  --cream: #faf8f3;
  --focus: #1d4ed8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.04), 0 1px 1px rgba(15, 42, 74, 0.06);
  --shadow: 0 2px 8px rgba(15, 42, 74, 0.06), 0 1px 2px rgba(15, 42, 74, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 42, 74, 0.14), 0 6px 16px rgba(15, 42, 74, 0.08);
  --wrap: 1180px;
  --gutter: 24px;
  --band: clamp(56px, 8vw, 104px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.15; letter-spacing: -0.4px; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -1px; line-height: 1.06; }
h2 { font-size: clamp(27px, 3.6vw, 40px); letter-spacing: -0.6px; }
h3 { font-size: 21px; letter-spacing: -0.2px; line-height: 1.25; }
h4 { font-size: 17px; letter-spacing: 0; }
p, ul, ol, dl { margin: 0 0 16px; }
p { text-wrap: pretty; }
img, video, svg { max-width: 100%; }

a { color: var(--green-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
.small { font-size: 14px; color: var(--ink-2); }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
/* The mark and name inside .brand are the shared lockup (lockupHtml in @prax/domain). */
.top-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.top-nav a:hover { color: var(--navy); background: var(--line-2); }
.top-nav a[aria-current='page'] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
/* The Products menu: opens on hover or keyboard focus, with CSS alone. */
.menu { position: relative; }
.menu-link::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.top-nav .menu-link.in-section { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.menu-panel { display: none; position: absolute; top: 100%; left: -12px; padding-top: 10px; width: 400px; z-index: 30; }
.menu:hover .menu-panel, .menu:focus-within .menu-panel { display: block; }
.menu-panel > ul, .menu-panel > .menu-all { background: var(--card); }
.menu-panel > ul { list-style: none; margin: 0; padding: 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: var(--shadow-lg); }
.top-nav .menu-panel li a { display: block; padding: 12px 14px; border-radius: 10px; }
.top-nav .menu-panel li a:hover { background: var(--cream); }
.top-nav .menu-panel li a[aria-current='page'] { background: var(--cream); box-shadow: inset 3px 0 0 var(--gold); }
.menu-name { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--navy); }
.menu-name .chip { font-family: var(--sans); font-size: 11.5px; padding: 1px 8px; }
.menu-line { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); font-weight: 400; }
.top-nav .menu-all { display: block; padding: 12px 22px; border: 1px solid var(--line); border-top: 1px solid var(--line-2); border-radius: 0 0 14px 14px; font-size: 14px; font-weight: 600; color: var(--green-dark); box-shadow: var(--shadow-lg); }
.top-nav .menu-all:hover { background: var(--cream); color: var(--green-dark); }
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.top-actions .signin { color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.top-actions .signin:hover { background: var(--line-2); }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-button { display: none; }

@media (max-width: 1040px) {
  .top-row { flex-wrap: wrap; gap: 0 12px; }
  .nav-button { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; background: var(--card); }
  .nav-toggle:focus-visible + .nav-button { outline: 3px solid var(--focus); outline-offset: 2px; }
  .top-nav, .top-actions { display: none; flex-basis: 100%; }
  .nav-toggle:checked ~ .top-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 8px; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ .top-actions { display: flex; flex-wrap: wrap; padding: 4px 0 16px; }
  .top-nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .top-nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
  .menu-link::after { display: none; }
  .top-nav .menu-link.in-section { box-shadow: none; }
  .menu-panel { display: block; position: static; width: auto; padding: 0 0 0 16px; }
  .menu-panel > ul { border: 0; border-radius: 0; box-shadow: none; padding: 0; }
  .top-nav .menu-panel li a { padding: 10px 4px; border-radius: 0; }
  .menu-line { display: none; }
  .top-nav .menu-all { border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; box-shadow: none; padding: 12px 4px; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--green); color: #ffffff; border: 1px solid var(--green); border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 83, 47, 0.25);
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #ffffff; }
.button.ghost { background: var(--card); color: var(--navy); border-color: #c5d2e3; box-shadow: none; }
.button.ghost:hover { background: var(--navy-soft); color: var(--navy); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 8px; }
.on-navy .button.ghost { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.45); }
.on-navy .button.ghost:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.on-navy .button:not(.ghost) { background: #ffffff; color: var(--navy); border-color: #ffffff; box-shadow: none; }
.on-navy .button:not(.ghost):hover { background: var(--navy-soft); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.arrow { font-weight: 600; text-decoration: none; }
.arrow::after { content: ' →'; }
.arrow:hover { text-decoration: underline; }

/* ── Type helpers ─────────────────────────────────────────────────────── */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green-dark); margin: 0 0 14px; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 640px; margin: 20px 0 0; }
.section-head { max-width: 760px; margin: 0 0 clamp(32px, 4vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-head .lede { margin-top: 16px; }

/* ── Bands ────────────────────────────────────────────────────────────── */
.band { padding: var(--band) 0; }
.band.cream { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.tight { padding: clamp(40px, 5vw, 64px) 0; }
.on-navy { background: var(--navy); color: #e6eaf0; }
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: #ffffff; }
.on-navy .eyebrow { color: var(--gold); }
.on-navy .lede, .on-navy p { color: #d4dbe6; }
.on-navy a:not(.button) { color: #ffffff; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { padding-bottom: clamp(48px, 7vw, 96px); }
.hero-visual { position: relative; align-self: end; min-width: 0; }
.hero-visual > .shot { margin-right: -120px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.hero-inset { position: absolute; left: -44px; bottom: 36px; width: 52%; }
.hero-inset .shot { border-radius: 10px; box-shadow: 0 18px 40px rgba(15, 42, 74, 0.22), 0 4px 12px rgba(15, 42, 74, 0.1); }
.page-hero { padding: clamp(48px, 7vw, 88px) 0; }
.page-hero .hero-text { padding-bottom: 0; }
.page-hero .hero-text .chips { margin-top: 16px; }
.page-hero .hero-visual { align-self: center; }
.page-hero .hero-visual > .shot { margin-right: 0; border-radius: 12px; border-bottom: 1px solid #d6dbe3; }
.page-hero .hero-inset { bottom: -28px; }
.page-hero.plain .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero.on-navy { background: var(--navy); border-bottom: 0; }
.hero.on-navy .shot { border-color: rgba(255, 255, 255, 0.18); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-bottom: 0; }
  .hero-visual { margin-top: 8px; }
  .hero-visual > .shot { margin-right: -40px; }
  .hero-inset { left: -8px; bottom: 20px; width: 56%; }
  .page-hero .hero-inset { bottom: -16px; }
  .page-hero .hero-visual > .shot { margin-right: 0; }
  .page-hero .hero-visual { margin-bottom: 24px; }
}

/* A row of plain facts under the hero, in place of customer logos we don't have. */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { display: flex; align-items: center; gap: 12px; padding: 22px 20px; font-size: 15px; font-weight: 600; color: var(--navy); border-left: 1px solid var(--line); line-height: 1.3; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts .icon { color: var(--green); flex-shrink: 0; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 16px 12px 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts li:nth-child(-n + 2) { border-top: 0; }
}

/* ── Icons ────────────────────────────────────────────────────────────── */
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); }
.on-navy .icon-tile { background: rgba(255, 255, 255, 0.1); color: var(--gold); }

/* ── Screens: real captures, shown as they are ────────────────────────── */
.shot { margin: 0; display: block; background: var(--card); border: 1px solid #d6dbe3; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 14px; color: var(--ink-3); padding: 12px 16px; border-top: 1px solid var(--line); background: var(--card); }
.caption { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
.on-navy .caption, .on-navy .shot figcaption { color: #b8c3d3; }

/* ── Status chips: always a word, never colour alone ──────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-live { background: var(--green-soft); color: var(--green-dark); }
.chip-soon { background: var(--gold-soft); color: var(--amber-ink); }
.chip-plain { background: var(--navy-soft); color: var(--navy); }
.chip-plain::before { display: none; }
.feature-text .chip { white-space: normal; }
.feature-text .chips { margin-top: 12px; }

/* ── The journey of one record ────────────────────────────────────────── */
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.rail::before { content: ''; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: linear-gradient(90deg, var(--green) 0, var(--green) 100%); opacity: 0.35; }
.rail li { position: relative; padding: 0 20px 0 0; }
.rail .dot { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 2px solid var(--green); color: var(--green-dark); }
.rail .when { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 18px 0 4px; }
.rail h3 { margin-bottom: 8px; }
.rail p { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }
@media (max-width: 900px) {
  .rail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rail::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .rail li { padding: 0 0 0 64px; }
  .rail .dot { position: absolute; left: 0; top: 0; }
  .rail .when { margin-top: 0; }
}

.plain-list { list-style: none; padding: 0; margin: 0; }

/* ── Cards and grids ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.card .icon-tile { margin-bottom: 6px; }
.card .arrow { margin-top: auto; padding-top: 8px; font-size: 15px; }
a.card { text-decoration: none; color: inherit; transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: #c5d2e3; box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
@media (prefers-reduced-motion: reduce) { a.card { transition: none; } a.card:hover { transform: none; } }
.on-navy .card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.on-navy .card p { color: #c9d2df; }

/* Product cards: a real screen on top. */
.product { padding: 0; overflow: hidden; gap: 0; }
.product-shot { background: var(--navy-soft); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; }
.product-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.product-for { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 0; }
.product .ticks { margin: 6px 0 0; gap: 8px; }
.product .ticks li { font-size: 15px; }
.product .arrow { margin-top: auto; padding-top: 14px; color: var(--green-dark); font-size: 15px; }
.product:hover .arrow { text-decoration: underline; }

/* What a product is best at, under its hero. */
.merits-band { border-bottom: 1px solid var(--line); }
.merits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.merits li { display: flex; gap: 14px; align-items: flex-start; }
.merits h2 { font-size: 18px; letter-spacing: -0.2px; margin: 2px 0 4px; }
.merits p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1040px) { .merits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .merits { grid-template-columns: minmax(0, 1fr); } }

/* ── Feature rows: words beside a real screen ─────────────────────────── */
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 112px); }
.feature.flip .feature-text { order: 2; }
.feature-text h2, .feature-text h3 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -0.5px; }
.feature-text > p { color: var(--ink-2); margin: 16px 0 0; }
.on-navy .feature-text > p { color: #d4dbe6; }
.feature-visual { position: relative; min-width: 0; }
.feature-visual.stack { display: grid; gap: 20px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-text { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); }
.ticks li::after { content: ''; position: absolute; left: 6px; top: 10px; width: 8px; height: 4px; border-left: 2px solid var(--green-dark); border-bottom: 2px solid var(--green-dark); transform: rotate(-45deg); }
.on-navy .ticks li { color: #e6eaf0; }
.on-navy .ticks li::before { background: rgba(255, 255, 255, 0.12); }
.on-navy .ticks li::after { border-color: var(--gold); }
.feature-text .arrow { display: inline-block; margin-top: 22px; }

/* ── Films: played only when asked ────────────────────────────────────── */
.films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .films { grid-template-columns: minmax(0, 1fr); } }
.film-card { margin: 0; }
.film { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 12px; background: var(--navy); border: 1px solid #d6dbe3; box-shadow: var(--shadow-lg); }
.on-navy .film { border-color: rgba(255, 255, 255, 0.2); }
.film-card h3 { margin: 20px 0 6px; }
.film-card p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.on-navy .film-card p { color: #c9d2df; }

/* ── Try the register: radio buttons and CSS counters, no script ──────── */
.try { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .try { grid-template-columns: minmax(0, 1fr); } }
.reg { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow-lg); counter-reset: present late absent; }
.reg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.reg-title { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--navy); }
.pupil { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pupil legend { float: left; padding: 0; font-weight: 600; font-size: 16px; }
.marks { display: flex; gap: 6px; }
.pupil input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mark { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; background: var(--card); }
.mark:hover { border-color: #c5d2e3; }
.pupil input:focus-visible + .mark { outline: 3px solid var(--focus); outline-offset: 2px; }
.pupil input[value='p']:checked { counter-increment: present; }
.pupil input[value='l']:checked { counter-increment: late; }
.pupil input[value='a']:checked { counter-increment: absent; }
.pupil input[value='p']:checked + .mark { background: var(--green); border-color: var(--green); color: #ffffff; }
.pupil input[value='l']:checked + .mark { background: #fef3c7; border-color: #fde68a; color: var(--amber-ink); }
.pupil input[value='a']:checked + .mark { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.reg-count { font-weight: 700; color: var(--navy); border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.c-present::before { content: counter(present); }
.c-late::before { content: counter(late); }
.c-absent::before { content: counter(absent); }
.reg-note { display: none; font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.reg:has(input[value='a']:checked) .reg-note { display: block; }

/* ── Numbered steps ───────────────────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-top: 60px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #ffffff; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.steps li::after { content: ''; position: absolute; top: 21px; left: 56px; right: -16px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; }
.steps p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps li { padding: 0 0 0 64px; min-height: 44px; }
  .steps li::after { display: none; }
}

.groups { margin-top: clamp(32px, 4vw, 56px); }
.groups .card h3 { font-size: 18px; }
.groups .ticks { margin-top: 6px; gap: 10px; }
.groups .ticks li { font-size: 15px; }
.after-table { margin-top: 16px; }
table.compact { min-width: 0; }
.route h2 { font-size: 21px; }
.route .actions { margin-top: auto; padding-top: 12px; }
.route .chips { margin-top: auto; padding-top: 12px; }
.band .section-head:not(:first-child) { margin-top: clamp(48px, 6vw, 72px); }

/* ── Tables ───────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 640px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-3); background: var(--cream); font-weight: 700; }
tbody th { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 17px; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }

/* ── Definition lists for detail (security page) ──────────────────────── */
.spec { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.spec:first-of-type { border-top: 0; padding-top: 0; }
.spec-head .icon-tile { margin-bottom: 14px; }
.spec-head p { font-size: 15px; color: var(--ink-2); margin: 8px 0 0; }
.spec dl { margin: 0; display: grid; gap: 18px; }
.spec dt { font-weight: 700; color: var(--navy); }
.spec dd { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .spec { grid-template-columns: minmax(0, 1fr); } }

.note { background: var(--gold-soft); border: 1px solid #efdfa6; border-radius: 12px; padding: 18px 22px; color: var(--ink); font-size: 16px; }
.note h3 { font-size: 18px; margin-bottom: 6px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note li { margin-bottom: 6px; }
.notice { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 8px; padding: 12px 16px; }

/* ── Questions: details and summary, no script ────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--navy); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-family: var(--sans); font-weight: 500; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 44px 22px 0; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ── Closing call to action ───────────────────────────────────────────── */
.cta { padding: clamp(56px, 7vw, 88px) 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-row > div:first-child { flex: 1 1 480px; min-width: 0; }
.cta h2 { font-size: clamp(27px, 3.4vw, 38px); }
.cta p { margin: 12px 0 0; max-width: 620px; }
.cta .actions { margin: 0; }

/* ── Contact form ──────────────────────────────────────────────────────── */
.route .mail { font-weight: 600; word-break: break-word; }
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.form { padding: clamp(24px, 3vw, 36px); gap: 18px; }
.form h2 { font-size: 26px; }
.form > .small { margin: -8px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; color: var(--navy); font-size: 15.5px; }
.optional { font-weight: 400; color: var(--ink-3); }
.hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid #c5d2e3; border-radius: 10px; padding: 11px 14px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--green); }
.form .actions { margin-top: 4px; }
.form button { font: inherit; font-weight: 600; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { display: grid; gap: 20px; }
.contact-aside h2 { font-size: 20px; }

/* ── Who sees what ────────────────────────────────────────────────────── */
table.access { min-width: 860px; }
table.access tbody th { white-space: normal; font-size: 16px; min-width: 220px; }
table.access td { font-size: 15px; }
table.access td.yes { color: var(--green-dark); font-weight: 600; }
table.access td.no { color: var(--ink-3); }
.access-notes { margin: 20px 0 0; padding-left: 20px; display: grid; gap: 8px; max-width: 900px; }

/* ── Documents (privacy notice, terms) ────────────────────────────────── */
.doc { padding-top: 56px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 12px; }
.doc h2 { margin-top: 44px; margin-bottom: 12px; font-size: 26px; }
.doc h3 { margin: 28px 0 8px; font-size: 20px; }
.doc li { margin-bottom: 6px; }
.contents { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0 8px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { background: var(--navy); color: #c9d2df; padding: 64px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand { font-family: var(--serif); font-weight: 700; font-size: 20px; color: #ffffff; margin: 0 0 10px; }
.foot-about p { margin: 0; max-width: 300px; line-height: 1.55; }
.foot h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #9fb0c6; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: #ffffff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #ffffff; }
.foot-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; }
.foot-legal p { margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }

@media print {
  .top, .foot, .cta, .film, .nav-button { display: none; }
  .band { padding: 24px 0; }
}

/* Logo lockup, generated from @prax/domain brand values by build.ts. */
.prax-lockup { display: inline-flex; align-items: center; gap: 12px; }
.prax-lockup > span:first-child { display: block; width: 40px; height: 40px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.prax-lockup svg { display: block; width: 100%; height: 100%; }
.prax-lockup > span:last-child { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; font-weight: 700; color: #0F2A4A; line-height: 1.1; letter-spacing: -0.2px; }
