/* public-site/enterprise.css
   The /enterprise landing page's own design layer.

   Loaded AFTER public.css on /enterprise only (page({ head }) injects the
   link). Everything is scoped under body.ent -- the page sets its palette by
   REDEFINING the site's shared tokens (--bg, --ink, --brand...) inside that
   scope, so public.css's global element rules (links, focus ring, selection,
   skip link) follow the enterprise palette without one selector being
   overridden. Enterprise-only tokens carry an --ent- prefix.

   Design school: editorial confidence. Warm paper, near-black ink, one deep
   green accent, serif display type from system faces (this site has never
   loaded a webfont; that record holds). Numbered chapters instead of icon
   grids. Every visual is a captioned exhibit of real product mechanics.

   Breakpoints match the site: 980 / 760 / 520. Dark mode is the same
   prefers-color-scheme block pattern as public.css. */

body.ent {
  /* shared tokens, repainted */
  --bg: #faf8f4;
  --card: #ffffff;
  --tint: #f3efe7;
  --ink: #161412;
  --ink-2: #403c36;
  --muted: #6f6a61;
  --line: #e4dfd5;
  --line-2: #d8d2c4;
  --brand: #1a5c45;
  --brand-dark: #124334;
  --brand-soft: #e3ede6;
  --brand-line: #bdd4c7;
  --on-brand: #f7faf8;

  /* enterprise-only tokens */
  --ent-serif: Charter, "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --ent-shadow-card: 0 1px 2px rgba(22, 20, 18, 0.05), 0 12px 32px -12px rgba(22, 20, 18, 0.18);
  --ent-shadow-lift: 0 2px 4px rgba(22, 20, 18, 0.06), 0 20px 48px -16px rgba(22, 20, 18, 0.24);

  /* ART SLOTS -- see docs/ENTERPRISE-ART.md.
     Each slot is a background-image LAYER painted over an authored gradient
     that already looks finished on its own. Default `none` means no file is
     requested and nothing 404s; drop a file into
     src/public-site/assets/ and point the variable at it to switch the art
     on, e.g. --ent-art-hero: url('/enterprise/assets/hero-wash.avif');
     Because the gradient sits underneath as a separate layer, a missing or
     slow image degrades to a designed page rather than a hole. */
  --ent-art-hero: none;
  --ent-art-quote: none;
  --ent-art-demo: none;
  --ent-art-blend: multiply;
  --ent-art-opacity: 0.5;

  /* Paper grain. A data-URI so the page still ships zero asset files: fractal
     noise at low opacity, which is what stops a large warm field reading as
     flat digital colour. */
  --ent-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");

  background: var(--bg);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  body.ent {
    --bg: #171512;
    --card: #201d19;
    --tint: #1d1a16;
    --ink: #ece8e0;
    --ink-2: #c9c3b8;
    --muted: #948d80;
    --line: #2e2a24;
    --line-2: #3a352d;
    --brand: #4ea27f;
    --brand-dark: #6fbe9b;
    --brand-soft: #21302a;
    --brand-line: #2e4a3d;
    --on-brand: #0d1f18;
    --ent-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
    --ent-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 48px -16px rgba(0, 0, 0, 0.6);
    /* Art made for warm paper turns to mud multiplied onto near-black; screen
       keeps its light and lets the ink read. */
    --ent-art-blend: screen;
    --ent-art-opacity: 0.32;
  }
}

/* ------------------------------------------------------------- layout */

.ent-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Measured, not guessed: at clamp(...104px) the thirteen sections spent
   2,707px on padding alone -- a quarter of the page was air between bands.
   The alternating surfaces below already separate the sections, so the
   padding no longer has to do that job on its own. */
.ent-sec {
  padding: clamp(40px, 5vw, 68px) 0;
  position: relative;
}

/* The grain sits on the body, above the background colour and below every
   section, so one rule covers the whole page. */
body.ent::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--ent-grain);
  opacity: 0.9;
}

/* Section rhythm. A long page of one surface reads as unfinished no matter
   how good the type is; alternating bands give the eye somewhere to rest and
   make each section feel deliberate. */
.ent-problem,
.ent-week,
.ent-programme { background: var(--tint); }

/* The art slots. Each is a pseudo-element -- no markup, nothing to break --
   carrying TWO background layers: the optional generated image on top, an
   authored gradient underneath. Unset, the gradient alone paints and the
   section still looks designed; set, the art lands over it. */
.ent-hero::before,
.ent-quote::before,
.ent-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ::before is the authored fallback: gradients only, always at full strength.
   ::after below carries the optional generated art. Keeping them on separate
   pseudo-elements is what lets the art be knocked back and blended without
   dragging the fallback down with it. */
.ent-hero::before {
  background-image:
    radial-gradient(120% 90% at 82% 4%, var(--brand-soft) 0%, transparent 58%),
    radial-gradient(90% 70% at 4% 96%, var(--tint) 0%, transparent 62%);
}

.ent-quote::before {
  background-image:
    linear-gradient(180deg, var(--tint) 0%, transparent 55%),
    radial-gradient(70% 120% at 50% 0%, var(--brand-soft) 0%, transparent 70%);
}

.ent-demo::before {
  background-image:
    radial-gradient(80% 120% at 12% 0%, var(--brand-soft) 0%, transparent 62%);
}

/* Only the generated layer gets the blend and the knock-back; the gradients
   underneath must stay at full strength or the fallback looks washed out.
   Applied via a second pseudo so the two never share opacity. */
.ent-hero::after,
.ent-quote::after,
.ent-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  mix-blend-mode: var(--ent-art-blend);
  opacity: var(--ent-art-opacity);
}

.ent-hero::after { background-image: var(--ent-art-hero); }
.ent-quote::after { background-image: var(--ent-art-quote); }
.ent-demo::after { background-image: var(--ent-art-demo); }

/* -------------------------------------------------------------- type */

.ent-display,
.ent-display-2 {
  font-family: var(--ent-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.ent-display {
  font-size: clamp(2.35rem, 5.2vw, 3.9rem);
  line-height: 1.06;
}

.ent-display-2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.ent-eyebrow {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
}

.ent-lede {
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 34em;
  margin: 22px 0 0;
}

.ent-lede-2 {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 38em;
  margin: 14px 0 0;
}

/* --------------------------------------------------------------- CTA */

.ent-cta {
  display: inline-block;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 650;
  text-decoration: none;
  border-radius: 8px;
  padding: 13px 26px;
  line-height: 1.2;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.ent-cta:hover {
  background: var(--brand-dark);
  color: var(--on-brand);
  transform: translateY(-1px);
  box-shadow: var(--ent-shadow-card);
}

.ent-cta-lg { padding: 15px 32px; font-size: 1.05rem; }
.ent-cta-sm { padding: 9px 18px; font-size: 0.92rem; }

.ent-link-arrow {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color 140ms ease;
}

.ent-link-arrow::after { content: " \2192"; color: var(--brand); }
.ent-link-arrow:hover { color: var(--ink); border-color: var(--brand); }

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

.ent-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.ent-header-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.ent-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.ent-brand-mark {
  align-self: center;
  display: inline-flex;
  width: 21px;
  color: var(--brand);
}

.ent-brand-mark svg { width: 100%; height: auto; }

.ent-brand-name {
  font-family: var(--ent-serif);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.ent-brand-suffix {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  border-left: 1px solid var(--line-2);
  padding-left: 9px;
}

.ent-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.ent-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

.ent-nav a:hover { color: var(--ink); }

/* Sign-in. Deliberately NOT a .ent-cta: an institute that has not bought yet
   should see one loud action on this page, and it is "Book a demo". This is
   for the customers who already have an account. */
.ent-signin {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.ent-signin:hover { color: var(--ink); border-color: var(--ink-3); }
.ent-signin:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* mobile disclosure -- same zero-JS <details> pattern as the site header */
.ent-nav-mobile { display: none; position: relative; margin-left: auto; }

.ent-nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  display: inline-flex;
}

.ent-nav-mobile summary::-webkit-details-marker { display: none; }

.ent-burger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.ent-burger::before,
.ent-burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.ent-burger::before { top: -6px; }
.ent-burger::after { top: 6px; }

.ent-nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 4px;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--ent-shadow-lift);
  padding: 12px;
}

.ent-nav-mobile-panel a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  padding: 9px 10px;
  border-radius: 8px;
}

.ent-nav-mobile-panel a:hover { background: var(--tint); }
.ent-nav-mobile-panel .ent-cta { margin-top: 6px; text-align: center; }

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

.ent-hero { padding-top: clamp(48px, 7vw, 96px); }

.ent-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.ent-hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 34px 0 0;
  flex-wrap: wrap;
}

/* the office | classroom hero exhibit */

.ent-hero-figure { margin: 0; }

.ent-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ent-split-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--ent-shadow-lift);
  padding: 14px 16px 16px;
  min-width: 0;
}

.ent-split-head {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.ent-batchline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
}

.ent-batch-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
}

.ent-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.ent-meter-label { font-size: 0.76rem; color: var(--muted); }

.ent-meter-bar {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: var(--tint);
  overflow: hidden;
}

.ent-meter-bar b {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
  opacity: 0.85;
}

.ent-meter-val {
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.ent-bankcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 20px;
  box-shadow: var(--ent-shadow-lift);
}

.ent-bankcard-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ent-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px;
}

.ent-tag-ok {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

.ent-bankcard-stem {
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

.ent-bankcard-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: opt;
}

.ent-bankcard-opts li {
  counter-increment: opt;
  font-size: 0.86rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--ink-2);
}

.ent-bankcard-opts li::before {
  content: "(" counter(opt, upper-alpha) ")  ";
  color: var(--muted);
}

.ent-bankcard-opts li.is-key {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 600;
}

.ent-figcap {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 10px;
  max-width: 36em;
}

/* the fact strip */

.ent-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 26px 0;
}

.ent-fact dt {
  font-family: var(--ent-serif);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ent-fact dd {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 15em;
}

/* ------------------------------------------------------------ problem */

.ent-prose {
  max-width: 46em;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.75;
  color: var(--ink-2);
}

.ent-prose p { margin: 0 0 1.3em; }
.ent-prose p:last-child { margin-bottom: 0; }
.ent-prose em { font-style: italic; }

.ent-prose > p:first-child::first-letter {
  font-family: var(--ent-serif);
  font-size: 3.1em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  padding: 4px 10px 0 0;
  color: var(--ink);
}

.ent-prose-strong {
  color: var(--ink);
  font-weight: 550;
}

/* --------------------------------------------------------- chapters */

.ent-chapter { border-top: 1px solid var(--line); }

.ent-chapter-num {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ent-chapter-num::after {
  content: "";
  height: 1px;
  width: 46px;
  background: var(--brand-line);
}

/* 7/5 rather than 6/6: the specs are the substance and the exhibit reads
   fine smaller, so the text column gets the room and the two columns end up
   closer in height. */
.ent-chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(22px, 3vw, 36px);
}

/* even chapters put the exhibit on the left so the page does not read as a
   template stamped four times */
.ent-chapter-flip .ent-specs { order: 2; }
.ent-chapter-flip .ent-exhibit { order: 1; }

/* ...and the track widths flip with them, or `order` would drop the exhibit
   into the 7fr column meant for the specs. */
.ent-chapter-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* The spec list runs 640-760px; the exhibit beside it runs 270-380px. That
   difference was measured at 2,127px of dead column down the page -- the
   single biggest source of the "why is it so empty" feeling, because on a
   desktop scroll the right half of every chapter simply stopped. Sticky
   keeps the exhibit alongside the specs it illustrates for the whole
   chapter, which is also just a better read: you can look from a claim to
   the thing it is claiming about.
   Only above the stacking breakpoint -- once the grid is one column, sticky
   would pin the exhibit over the specs. */
@media (min-width: 981px) {
  .ent-exhibit,
  .ent-demo-copy {
    position: sticky;
    /* clears the 64px sticky header, plus air */
    top: 88px;
  }
}

/* the spec list: term + one sentence, hairline-separated. A spec sheet, not
   a feature grid. */
.ent-specs { margin: 0; }

.ent-spec {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.ent-spec:first-child { border-top: 0; padding-top: 0; }

.ent-spec dt {
  font-family: var(--ent-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ent-spec dd {
  margin: 5px 0 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* the status line under a chapter heading (Institute OS) */

.ent-note-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42em;
}

/* the batch console exhibit (Institute OS) */

.ent-console {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--ent-shadow-lift);
  overflow: hidden;
}

.ent-console-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.92rem;
}

.ent-console-sub { font-weight: 500; font-size: 0.78rem; color: var(--muted); }

.ent-console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.ent-console-cell { min-width: 0; }

.ent-console-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.ent-console-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--tint);
}

.ent-console-foot b { color: var(--ink); }

/* exhibits (shared frame) */

.ent-exhibit { margin: 0; min-width: 0; }

/* The summary strip an exhibit ends on: label/value pairs that give the
   panel a base and carry the one or two numbers the exhibit implies. */
.ent-exhibit-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  background: var(--tint);
  font-size: 0.78rem;
  color: var(--muted);
}

.ent-exhibit-foot b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

/* small pill buttons used inside exhibits -- decorative, aria-hidden */
.ent-btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 5px 11px;
}

.ent-btn.is-approve {
  color: var(--brand);
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.ent-btn.is-reject { color: #a4442e; }

@media (prefers-color-scheme: dark) {
  body.ent .ent-btn.is-reject { color: #d98a75; }
}

/* the review-queue exhibit */

.ent-queue {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--ent-shadow-lift);
  overflow: hidden;
}

.ent-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.92rem;
}

.ent-queue-sort {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}

.ent-queue-item { padding: 16px 18px; }

.ent-queue-item.is-ghost {
  border-top: 1px solid var(--line);
  opacity: 0.55;
}

.ent-queue-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.ent-conf {
  font-size: 0.75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin-left: auto;
}

.ent-conf.is-low { color: #a4442e; }

@media (prefers-color-scheme: dark) {
  body.ent .ent-conf.is-low { color: #d98a75; }
}

.ent-queue-stem {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

.ent-queue-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* the exam-room exhibit */

.ent-exam {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--ent-shadow-lift);
  overflow: hidden;
}

.ent-exam-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 650;
}

.ent-exam-timer {
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}

.ent-exam-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 18px 0;
  border-bottom: 1px solid var(--line);
}

.ent-exam-tabs span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.ent-exam-tabs .is-on {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.ent-exam-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px 18px;
}

.ent-exam-stem {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

.ent-exam-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.ent-exam-palette {
  display: grid;
  grid-template-columns: repeat(5, 16px);
  gap: 5px;
}

.ent-exam-palette i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: var(--tint);
}

.ent-exam-palette i.is-done { background: var(--brand-soft); border-color: var(--brand-line); }
.ent-exam-palette i.is-mark { background: var(--warn, #e8c36a); border-color: transparent; opacity: 0.75; }
.ent-exam-palette i.is-cur { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }

.ent-exam-legend {
  margin: 10px 0 0;
  font-size: 0.7rem;
  color: var(--muted);
  max-width: 9em;
}

/* the batch-report exhibit */

.ent-insight {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--ent-shadow-lift);
  padding: 16px 18px;
}

.ent-insight-head {
  font-size: 0.92rem;
  font-weight: 650;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.ent-insight-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
}

.ent-insight-name { font-size: 0.86rem; color: var(--ink-2); }

.ent-insight-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--tint);
  overflow: hidden;
}

.ent-insight-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
  opacity: 0.85;
}

.ent-insight-val {
  font-size: 0.82rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ent-insight-note {
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* the audit-trail exhibit */

.ent-audit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--ent-shadow-lift);
  padding: 8px 18px;
  font-variant-numeric: tabular-nums;
}

.ent-audit-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.ent-audit-row:first-child { border-top: 0; }

.ent-audit-when { color: var(--muted); }

.ent-audit-what {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  color: var(--ink);
}

.ent-audit-who { margin-left: auto; color: var(--muted); font-size: 0.78rem; }

/* ------------------------------------------------ the product matrix */

.ent-platform,
.ent-programme,
.ent-faq { border-top: 1px solid var(--line); }

.ent-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(28px, 4vw, 48px);
  align-items: start;
}

.ent-product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--ent-shadow-card);
  padding: clamp(20px, 2.6vw, 30px);
}

/* the shipping product carries the accent edge -- the eye should land on
   what the institute can have this month */
.ent-product-live {
  border-color: var(--brand-line);
  box-shadow: var(--ent-shadow-lift);
}

.ent-product-head {
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.ent-product-name {
  font-family: var(--ent-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

.ent-product-sub {
  margin: 3px 0 0;
  font-size: 0.88rem;
  color: var(--brand);
  font-weight: 600;
}

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

.ent-mod {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.ent-mod-name {
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--ink-2);
  min-width: 0;
}

.ent-mod-status {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 3px 9px;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.ent-mod-status.is-live {
  color: var(--brand);
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.ent-mod-status.is-building {
  color: var(--ink-2);
  border-color: var(--line-2);
  background: var(--tint);
}

.ent-product-note {
  margin: 16px 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------- a week, as a list */

.ent-week-list { margin-top: clamp(28px, 4vw, 48px); }

.ent-week-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-top: 1px solid var(--line-2);
}

.ent-week-row:last-child { border-bottom: 1px solid var(--line-2); }

.ent-week-day {
  margin: 0;
  font-family: var(--ent-serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ent-week-line {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.ent-week-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ent-week-product {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------------------------------------------------------- pull quote */

.ent-quote { text-align: center; }

.ent-quote-body {
  margin: 0 auto;
  /* rem, not em: the blockquote inherits the 16px body size, so an em measure
     here resolves against that and not against the display size on the <p>
     inside it -- which collapsed this to a 320px column. */
  max-width: 46rem;
}

.ent-quote-body p {
  margin: 0;
  font-family: var(--ent-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

.ent-quote-attrib {
  margin: 22px 0 0;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ----------------------------------------- the founding programme steps */

.ent-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(28px, 4vw, 48px);
}

.ent-step { border-top: 2px solid var(--brand-line); padding-top: 16px; }

.ent-step-num {
  font-family: var(--ent-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 4px;
  line-height: 1;
}

.ent-step-title {
  font-family: var(--ent-serif);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}

.ent-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ----------------------------------------------------------------- FAQ */

.ent-faq-list {
  max-width: 46em;
  margin-top: clamp(24px, 3vw, 40px);
}

.ent-faq-item { border-top: 1px solid var(--line); }

.ent-faq-item:last-child { border-bottom: 1px solid var(--line); }

.ent-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  font-family: var(--ent-serif);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ent-faq-item summary::-webkit-details-marker { display: none; }

.ent-faq-item summary::after {
  content: "+";
  color: var(--brand);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
  flex: 0 0 auto;
}

.ent-faq-item[open] summary::after { content: "\2212"; }

.ent-faq-item p {
  margin: 0 0 18px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 40em;
}

/* ---------------------------------------------------------------- demo */

.ent-demo { background: var(--tint); border-top: 1px solid var(--line); }

.ent-demo-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.ent-demo-points li {
  font-size: 0.96rem;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}

.ent-demo-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 10px;
  height: 2px;
  background: var(--brand);
}

.ent-demo-band {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

/* the demo-request form */

.ent-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--ent-shadow-lift);
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 14px;
}

.ent-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ent-field { display: grid; gap: 5px; min-width: 0; }

.ent-field-label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
}

.ent-field-label em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.ent-form input,
.ent-form select,
.ent-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 9px 12px;
  width: 100%;
  box-sizing: border-box;
}

.ent-form textarea { resize: vertical; }

.ent-form input:focus-visible,
.ent-form select:focus-visible,
.ent-form textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

/* honeypot: removed from layout and pointer/tab reach, still in the DOM for
   bots that fill every field */
.ent-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ent-form-error {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #a4442e;
}

@media (prefers-color-scheme: dark) {
  body.ent .ent-form-error { color: #d98a75; }
}

.ent-form-submit { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 650; }

.ent-form-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 32em;
}

/* the thanks page */

.ent-thanks { min-height: 45vh; }

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

.ent-footer { border-top: 1px solid var(--line); }

.ent-footer-in {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 34px;
  flex-wrap: wrap;
}

.ent-footer-nav { display: flex; gap: 18px; margin-left: auto; }

.ent-footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.ent-footer-nav a:hover { color: var(--ink); }

.ent-footer-copy {
  width: 100%;
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* --------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .ent-hero-grid { grid-template-columns: 1fr; }
  .ent-hero-figure { max-width: 620px; }
  .ent-facts { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .ent-chapter-grid { grid-template-columns: 1fr; }
  .ent-chapter-flip .ent-specs { order: 1; }
  .ent-chapter-flip .ent-exhibit { order: 2; }
  .ent-exhibit { max-width: 620px; }
  .ent-products { grid-template-columns: 1fr; }
  .ent-product { max-width: 620px; }
  .ent-steps { grid-template-columns: 1fr; }
  .ent-step { max-width: 620px; }
  .ent-demo-band { grid-template-columns: 1fr; }
  .ent-form { max-width: 620px; }
}

@media (max-width: 760px) {
  .ent-nav, .ent-header-demo, .ent-header-signin { display: none; }
  .ent-nav-mobile { display: block; }
  .ent-wrap { padding: 0 20px; }
}

@media (max-width: 520px) {
  .ent-split { grid-template-columns: 1fr; }
  .ent-facts { grid-template-columns: 1fr; }
  .ent-fact dd { max-width: none; }
  .ent-exam-body { grid-template-columns: 1fr; }
  .ent-exam-legend { max-width: none; }
  .ent-mod { flex-wrap: wrap; gap: 4px 10px; }
  .ent-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .ent-week-row { grid-template-columns: 1fr; gap: 8px; }
  .ent-week-meta { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  body.ent *, body.ent *::before, body.ent *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .ent-header, .ent-footer, .ent-cta { display: none; }
  body.ent { background: #fff; }
}
