/**
 * Hospital in a Box — Design Studio system (ui-ux-pro-max + frontend-design)
 * Accessible & Ethical · Medical Clean typography · deep medical blue / teal / gold
 * Cachebust: 20261031hiab7
 */
:root {
  /* Brand — deep medical blue, teal, white; warm gold / soft green / muted earth */
  --blue-deep: #0a3550;
  --blue: #0f5a82;
  --teal: #0e7490;
  --teal-soft: #14b8a6;
  --teal-bright: #2dd4bf;
  --white: #ffffff;
  --page-bg: #f0f9f8;
  --page-bg-mid: #e6f4f2;
  --ink: #0f2a33;
  --ink-soft: #35515c;
  --muted: #5a717c;
  --gold: #b8860b;
  --gold-soft: #e4c56a;
  --green: #2f8a68;
  --green-soft: #6bb894;
  --earth: #7a6650;
  --line: rgba(14, 116, 144, 0.22);
  --line-soft: rgba(10, 53, 80, 0.1);
  --surface: #ffffff;
  --surface-2: #e8f5f3;
  --surface-dark: #0a3550;
  --good: #2f8a68;
  --warn: #b8860b;
  --risk: #b83a3a;
  --dev: #0e7490;
  --planned: #5a717c;
  --unavailable: #8b5a5a;
  --hero-poster: url("/assets/hiab/hiab-facility-assessment.jpg");

  /* Medical Clean (Design Studio) */
  --font-display: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Noto Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 10px 36px rgba(10, 53, 80, 0.09);
  --shadow-lift: 0 16px 48px rgba(10, 53, 80, 0.14);
  --section-max: 72rem;
  --focus-ring: 3px solid var(--teal-soft);
  --touch: 2.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
}

body.hospital-surface {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(20, 184, 166, 0.14), transparent 55%),
    radial-gradient(900px 480px at 96% 2%, rgba(184, 134, 11, 0.07), transparent 48%),
    radial-gradient(700px 400px at 50% 100%, rgba(15, 90, 130, 0.06), transparent 60%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-mid) 42%, var(--page-bg) 100%);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Soft grid atmosphere (not purple, not cream cliché) */
body.hospital-surface::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(10, 53, 80, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 53, 80, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

body.hospital-surface > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--teal);
}

a:focus-visible,
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.65rem 1.1rem;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  min-height: var(--touch);
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Top bar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.65rem clamp(0.75rem, 2.5vw, 1.5rem) 0;
  padding: 0.7rem clamp(0.85rem, 2.5vw, 1.5rem);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(10, 53, 80, 0.07);
}

.topbar .mark-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 0.3rem 0.55rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.topbar .mark-logo:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.logo-nav {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: min(11.5rem, 42vw);
  object-fit: contain;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.25rem;
  justify-content: flex-end;
  align-items: center;
}

.topbar nav a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.5rem 0.55rem;
  border-radius: 999px;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.topbar nav a:hover,
.topbar nav a[aria-current="page"] {
  color: var(--blue-deep);
  background: rgba(14, 116, 144, 0.1);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  min-height: var(--touch);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-deep);
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .topbar {
    margin: 0.5rem 0.65rem 0;
    border-radius: 14px;
  }
  .topbar nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lift);
  }
  .topbar nav.is-open { display: flex; }
  .topbar nav a {
    font-size: 0.85rem;
    padding: 0.75rem 0.85rem;
    min-height: var(--touch);
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.32);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); }

.btn-ghost {
  background: #fff;
  color: var(--blue-deep);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-outline {
  background: transparent;
  color: var(--blue-deep);
  border-color: rgba(10, 53, 80, 0.32);
}
.btn-outline:hover { background: rgba(10, 53, 80, 0.06); color: var(--blue-deep); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #d4a84a 100%);
  color: #1a1408;
  border-color: transparent;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

/* ——— Status pills ——— */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-pill.available { background: rgba(47, 138, 104, 0.16); color: var(--good); }
.status-pill.dev { background: rgba(14, 116, 144, 0.16); color: var(--dev); }
.status-pill.planned { background: rgba(90, 113, 124, 0.16); color: var(--planned); }
.status-pill.unavailable { background: rgba(184, 58, 58, 0.12); color: var(--risk); }
.status-pill.demo { background: rgba(184, 134, 11, 0.18); color: #7a5c10; }

/* ——— Hero (full-bleed) ——— */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92vh, 54rem);
  margin-top: 0.65rem;
  padding: clamp(5.5rem, 11vw, 8rem) clamp(1.15rem, 4.5vw, 3.25rem) clamp(2.75rem, 5.5vw, 4.25rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 28px 28px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--blue-deep) center / cover no-repeat var(--hero-poster);
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(108deg, rgba(10, 53, 80, 0.94) 0%, rgba(10, 53, 80, 0.78) 38%, rgba(14, 116, 144, 0.42) 72%, rgba(14, 116, 144, 0.22) 100%),
    linear-gradient(0deg, rgba(10, 53, 80, 0.82) 0%, transparent 52%);
}

.hero-copy {
  max-width: 42rem;
  animation: hero-rise 0.7s var(--ease-out) both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.logo-hero {
  height: 3.4rem;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 0.3rem 0.45rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 5.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 15ch;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  line-height: 1.6;
}

.hero .cta-row .btn-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.hero .cta-row .btn-primary:hover {
  background: var(--gold-soft);
  color: #1a1408;
  filter: none;
}
.hero .cta-row .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.hero .cta-row .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: #fff;
}

.hero-links {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  font-size: 0.9rem;
}

.hero-links a { color: var(--gold-soft); font-weight: 500; }
.hero-links a:hover { color: #fff; }

.illust-caption {
  margin-top: 0.95rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
}

/* ——— Page sections ——— */
.page-wrap {
  width: min(100% - 2rem, var(--section-max));
  margin-inline: auto;
  padding: 3rem 0 4.25rem;
}

.section {
  margin-bottom: 3.75rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.section h2,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-deep);
  letter-spacing: -0.025em;
  max-width: 22ch;
  text-wrap: balance;
}

.section-lead {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  max-width: 42rem;
  font-size: 1.06rem;
}

.page-hero {
  padding: 2.75rem 0 1.15rem;
}

.page-hero p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

/* Challenge grid */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
  margin-top: 1.65rem;
  list-style: none;
}

.challenge-grid li {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.challenge-grid li:hover {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-lift);
}

.challenge-grid h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.challenge-grid p { color: var(--ink-soft); font-size: 0.96rem; }

/* Journey ribbon */
.journey-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.65rem;
  list-style: none;
  align-items: center;
}

.journey-ribbon a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.72rem 1.05rem;
  min-height: var(--touch);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(10, 53, 80, 0.06);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.journey-ribbon a:hover {
  background: var(--blue-deep);
  color: #fff;
  border-color: var(--blue-deep);
}

.journey-ribbon .arrow {
  color: var(--teal);
  font-weight: 700;
  padding: 0 0.15rem;
}

/* Module cards */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.1rem;
  margin-top: 1.65rem;
  list-style: none;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  min-height: 13.75rem;
  transition: transform 0.22s var(--ease-out), border-color 0.2s var(--ease), box-shadow 0.22s var(--ease);
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 116, 144, 0.42);
  box-shadow: var(--shadow-lift);
}

.module-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.module-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.22), rgba(15, 90, 130, 0.14));
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.module-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--blue-deep);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.module-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  flex: 1;
}

.module-card .btn { align-self: flex-start; min-height: 2.55rem; padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Pathways */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
  list-style: none;
}

.pathway-grid a {
  display: block;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #fff 0%, var(--surface-2) 100%);
  border: 1px solid var(--line-soft);
  color: var(--blue-deep);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pathway-grid a:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--shadow);
}

.pathway-grid span {
  display: block;
  margin-top: 0.4rem;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Final CTA band */
.cta-band {
  margin-top: 2.25rem;
  padding: 2.25rem clamp(1.25rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 280px at 90% 10%, rgba(228, 197, 106, 0.18), transparent 55%),
    linear-gradient(135deg, var(--blue-deep) 0%, #0c4f5e 52%, var(--teal) 100%);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.cta-band h2 {
  color: #fff;
  max-width: 18ch;
}

.cta-band p {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: none;
}
.cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Figure / media */
.figure-panel {
  margin-top: 1.65rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: var(--shadow);
}

.figure-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
}

.figure-panel figcaption {
  padding: 0.8rem 1.1rem 1.05rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Content panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow);
}

.panel + .panel { margin-top: 1rem; }

.panel h3 {
  font-family: var(--font-display);
  color: var(--blue-deep);
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
}

.split-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
  margin-top: 1.35rem;
}

.list-clean {
  margin: 0.75rem 0 0 1.1rem;
  color: var(--ink-soft);
}

.list-clean li + li { margin-top: 0.4rem; }

.mock-board .mock-check,
.roadmap-board .roadmap-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.mock-check li,
.roadmap-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.mock-check li:last-child,
.roadmap-list li:last-child { border-bottom: 0; }

.mock-check label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  cursor: default;
}

.mock-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--teal);
}

.roadmap-list {
  counter-reset: hiab-road;
}

.roadmap-list li {
  counter-increment: hiab-road;
}

.roadmap-list li::before {
  content: counter(hiab-road);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.14);
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.honesty-note,
.care-note,
.mono-disclaimer {
  margin-top: 1.3rem;
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(184, 134, 11, 0.1);
  border-left: 4px solid var(--gold);
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.3rem;
  margin: 1.1rem 0 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Dashboard */
.dash-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid rgba(184, 134, 11, 0.32);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.9rem;
  list-style: none;
}

.dash-grid a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 7.75rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line-soft);
  color: var(--blue-deep);
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease-out);
}

.dash-grid a:hover {
  border-color: rgba(14, 116, 144, 0.4);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.dash-grid a span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.demo-table th,
.demo-table td {
  text-align: left;
  padding: 0.72rem 0.65rem;
  border-bottom: 1px solid var(--line-soft);
}

.demo-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Assessment wizard */
.wizard {
  margin-top: 1.65rem;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
  list-style: none;
}

.wizard-steps button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  min-height: 2.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.wizard-steps button.is-active {
  background: var(--blue-deep);
  color: #fff;
}

.wizard-steps button.is-done { color: var(--teal); }

.wizard-pane {
  padding: 1.4rem 1.3rem 1.55rem;
}

.wizard-pane[hidden] { display: none; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.95rem;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

label.field input,
label.field select,
label.field textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 0.85rem;
  min-height: var(--touch);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

label.field input:focus,
label.field select:focus,
label.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
  outline: none;
}

label.field textarea { min-height: 6.5rem; resize: vertical; }

.findings-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.findings-list li {
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.findings-list strong { color: var(--blue-deep); }

.report-preview {
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  background: var(--blue-deep);
  color: #e8f4f3;
  padding: 1.2rem;
  border-radius: var(--radius);
  max-height: 28rem;
  overflow: auto;
}

/* Tables monetisation */
.mono-scroll { overflow-x: auto; margin-top: 1.3rem; }
.mono-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.mono-table th,
.mono-table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.mono-table th {
  background: var(--surface-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2.15rem clamp(1rem, 3vw, 2rem) 2.65rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.8rem 0 1.05rem;
}

.site-footer .integrity {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--earth);
}

/* Reveal motion — one intentional entrance per section */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy { animation: none; }
  .btn:hover,
  .module-card:hover,
  .dash-grid a:hover { transform: none; }
  .hero-media video { display: none; }
}

/* Legacy walkthrough helpers kept for optional deep page */
.walkthrough { width: min(100% - 2rem, var(--section-max)); margin: 2rem auto 3rem; }
.chapter-nav,
.chapter-rail { display: none; }
.accordion { list-style: none; }
.accordion-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 0.65rem;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  text-align: left;
  padding: 1rem 1.1rem;
  min-height: var(--touch);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.accordion-trigger h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue-deep);
}
.accordion-panel-inner { padding: 0 1.1rem 1.1rem; color: var(--ink-soft); }
.equip-grid,
.studio-grid,
.stages,
.explore-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}
.equip-grid li,
.studio-grid li,
.stages li {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.05rem;
}
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1.15rem 0;
  font-weight: 600;
  color: var(--blue-deep);
}
