/* ──────────────────────────────────────────────────────────────
   Cohort — base + landing styles
   ────────────────────────────────────────────────────────────── */

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

/* The [hidden] attribute must always win on app pages: component rules
   below (e.g. .btn's display: inline-flex) would otherwise override it
   and reveal admin-only controls to learners. Scoped to app pages so the
   marketing sheet (.mk) is untouched. */
body:not(.mk) [hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-weight: var(--fw-regular);
  font-size: 17px;
  line-height: 1.55;
  color: var(--clr-dark-blue-text);
  background-color: var(--clr-grey);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
}

/* ── App ↔ marketing bridge ───────────────────────────────────────────────
   The marketing site is a warm cream "document desk"; the app is the real
   version of "cool product screens on a warm desk". Warm the page ground so a
   prospect who clicks "Enter a live world" lands in the same world — while the
   content cards/panels stay crisp white so they pop. Scoped to app pages only
   (the marketing body carries .mk and keeps its own tokens). */
body:not(.mk) {
  --clr-grey: #F1EADD;        /* warm inset / secondary neutral (was cool #F5F5F7) */
  --clr-bg-grey: #E4DBC9;
  background-color: var(--clr-paper, #FBF7EF);
}
body:not(.mk) .admin-shell { background: var(--clr-paper, #FBF7EF); }

img { max-width: 100%; display: block; }

a {
  color: var(--clr-dark-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--clr-dark-blue-text);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: var(--fw-bold);
}
h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: var(--fw-semi-bold); }
p  { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--clr-light-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--br-radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: var(--fw-semi-bold);
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease,
              border-color .15s ease, transform .15s ease,
              box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--clr-dark-blue);
  color: var(--clr-white);
}
.btn--primary:hover {
  background: var(--clr-dark-blue-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn--secondary {
  background: transparent;
  color: var(--clr-dark-blue);
  border-color: var(--clr-dark-blue);
}
.btn--secondary:hover {
  background: var(--clr-bg-light-blue);
  border-color: var(--clr-dark-blue);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-dark-blue-text);
  padding: 0.6rem 0.9rem;
}
.btn--ghost:hover { background: rgba(0, 39, 64, 0.06); }

/* Certificate call-to-action — green so it stands out after passing a quiz. */
.btn--certificate {
  background: #0a7a3f;
  color: var(--clr-white);
}
.btn--certificate:hover {
  background: #086633;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

/* Inline "View certificate" link beneath a completed module card. */
.cert-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.6rem; font-weight: var(--fw-semi-bold); font-size: 0.9rem;
  color: #0a7a3f; text-decoration: none;
}
.cert-link:hover { text-decoration: underline; }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Top navigation ──────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: var(--border-soft);
}
.topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: var(--fw-bold);
  font-size: 1.3rem;
  color: var(--clr-dark-blue-text);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo__mark {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  object-fit: contain;
}
.logo__word {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.15rem;
}
.logo__brand {
  font-weight: var(--fw-bold);
  font-size: 1.15rem;
  color: var(--clr-dark-blue-text);
  letter-spacing: -0.01em;
}
.logo__sub {
  font-weight: var(--fw-semi-bold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-dark-blue);
}
.logo--sm .logo__mark { width: 1.6rem; height: 1.6rem; }
.logo--sm .logo__brand { font-size: 1rem; }
.logo--sm .logo__sub  { font-size: 0.68rem; }
.logo--lg .logo__mark { width: 2.6rem; height: 2.6rem; }
.logo--lg .logo__brand { font-size: 1.45rem; }

.topnav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topnav__links a {
  color: var(--clr-dark-blue-text);
  padding: 0.55rem 0.9rem;
  border-radius: var(--br-radius-sm);
  font-weight: var(--fw-medium);
  font-size: 0.97rem;
}
.topnav__links a:hover {
  background: var(--clr-bg-light-blue);
  text-decoration: none;
}
.topnav__cta { margin-left: 0.4rem; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--clr-dark-blue-text);
}

@media (max-width: 820px) {
  .topnav__links { display: none; }
  .topnav__links.is-open {
    display: flex;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--clr-white);
    padding: 0.75rem;
    border-bottom: var(--border-soft);
    box-shadow: var(--shadow-card);
  }
  .topnav__links.is-open a { padding: 0.9rem 1rem; }
  .menu-toggle { display: inline-flex; }
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 var(--space-section);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--clr-bg-light-blue) 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 30%, var(--clr-med-blue) 0%, transparent 55%),
    var(--clr-grey);
  overflow: hidden;
}
.hero::before {
  /* faint brand watermark, top-right */
  content: "";
  position: absolute;
  top: -10%;
  right: -8%;
  width: clamp(280px, 32vw, 460px);
  height: clamp(280px, 32vw, 460px);
  background: url('/img/logo-mark.svg') no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
@media (max-width: 700px) { .hero::before { opacity: 0.04; right: -20%; top: 5%; } }
.hero__eyebrow {
  display: inline-block;
  background: var(--clr-white);
  color: var(--clr-dark-blue);
  font-weight: var(--fw-semi-bold);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: var(--br-radius-pill);
  border: var(--border-soft);
  margin-bottom: 1.25rem;
}
.hero__title {
  max-width: 22ch;
  margin-bottom: 1rem;
}
.hero__lede {
  max-width: 56ch;
  font-size: 1.15rem;
  color: rgba(0, 39, 64, 0.78);
  margin-bottom: 2rem;
}

.hero__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .hero__cards { grid-template-columns: 1fr; }
}

.cta-card {
  background: var(--clr-white);
  border-radius: var(--br-radius);
  padding: 1.5rem 1.5rem 1.35rem;
  border: var(--border-soft);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 106, 175, 0.25);
  text-decoration: none;
}
.cta-card__statement {
  font-size: 1.15rem;
  font-weight: var(--fw-semi-bold);
  color: var(--clr-dark-blue-text);
  line-height: 1.3;
}
.cta-card__hint {
  font-size: 0.95rem;
  color: rgba(0, 39, 64, 0.65);
  margin: 0;
}
.cta-card__go {
  margin-top: auto;
  padding-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: var(--fw-semi-bold);
  color: var(--clr-dark-blue);
}
.cta-card--primary {
  background: var(--clr-dark-blue);
  border-color: var(--clr-dark-blue);
}
.cta-card--primary .cta-card__statement,
.cta-card--primary .cta-card__hint,
.cta-card--primary .cta-card__go { color: var(--clr-white); }
.cta-card--primary .cta-card__hint { color: rgba(255,255,255,0.85); }

/* ─── Section frame ───────────────────────────────────────── */
.section { padding: var(--space-section) 0; }
.section--tint { background: var(--clr-white); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.section__head p {
  max-width: 50ch;
  margin: 0;
  color: rgba(0, 39, 64, 0.72);
}

/* ─── Module grid ─────────────────────────────────────────── */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 980px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .modules { grid-template-columns: 1fr; } }

.module-card {
  background: var(--clr-white);
  border-radius: var(--br-radius);
  border: var(--border-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 106, 175, 0.25);
  text-decoration: none;
}
.module-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.module-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--br-radius-pill);
  background: var(--clr-bg-light-blue);
  color: var(--clr-dark-blue);
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.module-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark-blue);
  background: var(--clr-bg-light-blue);
  border-radius: var(--br-radius-sm);
  flex-shrink: 0;
}
.module-card__icon svg { width: 1.4rem; height: 1.4rem; }
.module-card:hover .module-card__icon { background: var(--clr-dark-blue); color: var(--clr-white); }
.module-card h3 { margin: 0.25rem 0 0; }
.module-card__summary {
  color: rgba(0, 39, 64, 0.72);
  font-size: 0.97rem;
  margin: 0;
}
.module-card__meta {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(0, 39, 64, 0.62);
}
.module-card__meta strong { color: var(--clr-dark-blue); font-weight: var(--fw-semi-bold); }

/* ─── Journey strip (3 steps) ─────────────────────────────── */
.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 820px) { .journey { grid-template-columns: 1fr; } }
.journey-step {
  background: var(--clr-white);
  border: var(--border-soft);
  border-radius: var(--br-radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  position: relative;
}
.journey-step__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--br-radius-sm);
  background: var(--clr-bg-light-blue);
  color: var(--clr-dark-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.journey-step__icon svg { width: 1.5rem; height: 1.5rem; }
.journey-step__n {
  font-weight: var(--fw-bold);
  font-size: 0.78rem;
  color: var(--clr-dark-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.journey-step h3 { margin-bottom: 0.4rem; }
.journey-step p { margin: 0; color: rgba(0, 39, 64, 0.78); }

/* ─── CTA strip ───────────────────────────────────────────── */
.cta-strip {
  background: var(--clr-dark-blue-text);
  color: var(--clr-white);
  border-radius: var(--br-radius);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-strip h2 { color: var(--clr-white); margin: 0; max-width: 24ch; }
.cta-strip p { color: rgba(255,255,255,0.8); margin: 0.5rem 0 0; max-width: 50ch; }
.cta-strip .btn--primary {
  background: var(--clr-white);
  color: var(--clr-dark-blue);
}
.cta-strip .btn--primary:hover {
  background: var(--clr-bg-light-blue);
  color: var(--clr-dark-blue-text);
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--clr-white);
  border-top: var(--border-soft);
  padding: var(--space-section) 0 2rem;
  color: rgba(0, 39, 64, 0.78);
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-dark-blue);
  margin: 0 0 0.75rem;
}
.footer__block p { margin: 0 0 0.35rem; }
.footer__block .muted { color: rgba(0, 39, 64, 0.55); font-size: 0.88rem; }
.footer__intro p { max-width: 45ch; }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(0, 39, 64, 0.55);
}
.coming-soon {
  display: inline-block;
  background: var(--clr-bg-light-blue);
  color: var(--clr-dark-blue);
  font-size: 0.75rem;
  font-weight: var(--fw-semi-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--br-radius-pill);
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ─── Lucide icon sizing (landing) ─────────────────────────
   Before createIcons() runs the markup is <i data-lucide>; after,
   it's <svg class="lucide">. Size both so there's no flash, and let
   each icon's box scale to the font-size of its container. */
[data-lucide], svg.lucide {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 1.75;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* ─── Split hero ──────────────────────────────────────────── */
.hero--split { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero__aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 78% 8%, rgba(91, 181, 255, 0.30) 0%, transparent 60%),
    radial-gradient(560px 420px at 12% 88%, rgba(0, 106, 175, 0.18) 0%, transparent 60%),
    radial-gradient(500px 380px at 50% 40%, rgba(209, 229, 244, 0.45) 0%, transparent 65%);
  filter: blur(2px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__aurora { animation: aurora-drift 24s ease-in-out infinite alternate; }
  @keyframes aurora-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-1.5%, 1.5%, 0) scale(1.04); }
    100% { transform: translate3d(1.5%, -1%, 0) scale(1.02); }
  }
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__eyebrow-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--clr-dark-blue);
  box-shadow: 0 0 0 0 rgba(0, 106, 175, 0.45);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow-dot { animation: pulse-dot 2.4s ease-out infinite; }
  @keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(0, 106, 175, 0.45); }
    70%  { box-shadow: 0 0 0 7px rgba(0, 106, 175, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 106, 175, 0); }
  }
}
.hero__title-accent {
  display: inline;
  color: var(--clr-dark-blue);
  background: linear-gradient(90deg, var(--clr-dark-blue), var(--clr-light-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}
.hero__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: rgba(0, 39, 64, 0.7);
}
.hero__assurances li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__assurances [data-lucide], .hero__assurances svg { color: var(--clr-dark-blue); font-size: 1.05rem; }

/* ─── Hero product preview ────────────────────────────────── */
.hero__visual { position: relative; }
.preview {
  background: var(--clr-white);
  border: var(--border-soft);
  border-radius: var(--br-radius);
  box-shadow: 0 24px 60px rgba(0, 39, 64, 0.16);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero__visual:hover .preview { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
@media (max-width: 920px) {
  .preview, .hero__visual:hover .preview { transform: none; }
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: var(--clr-bg-light-blue);
  border-bottom: var(--border-soft);
}
.preview__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: rgba(0,39,64,0.18); }
.preview__url {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  font-weight: var(--fw-medium);
  color: rgba(0, 39, 64, 0.55);
  letter-spacing: 0.01em;
}
.preview__body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.9rem; }
.preview__next {
  background: var(--clr-dark-blue-text);
  color: var(--clr-white);
  border-radius: var(--br-radius-sm);
  padding: 1rem 1.1rem;
}
.preview__next-label {
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); font-weight: var(--fw-semi-bold);
}
.preview__next-title { font-size: 1.1rem; font-weight: var(--fw-bold); margin: 0.15rem 0 0.5rem; }
.preview__next-cta {
  display: inline-block;
  font-size: 0.8rem; font-weight: var(--fw-semi-bold);
  color: var(--clr-light-blue);
}
.preview__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.preview__card {
  background: var(--clr-grey);
  border: var(--border-soft);
  border-radius: var(--br-radius-sm);
  padding: 0.8rem;
}
.preview__card--done { background: rgba(10,122,63,0.05); border-color: rgba(10,122,63,0.2); }
.preview__card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.55rem; }
.preview__card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 0.55rem;
  background: var(--clr-bg-light-blue); color: var(--clr-dark-blue);
}
.preview__card-icon [data-lucide], .preview__card-icon svg { font-size: 1.05rem; }
.preview__card--done .preview__card-icon { background: rgba(10,122,63,0.12); color: #0a7a3f; }
.preview__chip {
  font-size: 0.6rem; font-weight: var(--fw-bold); letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.18rem 0.45rem; border-radius: var(--br-radius-pill);
  background: rgba(91,181,255,0.2); color: #0a5da6;
}
.preview__chip--done { background: rgba(10,122,63,0.12); color: #0a7a3f; }
.preview__card-title { font-size: 0.82rem; font-weight: var(--fw-semi-bold); line-height: 1.25; margin-bottom: 0.55rem; }
.preview__pbar { height: 5px; background: var(--clr-bg-grey); border-radius: var(--br-radius-pill); overflow: hidden; }
.preview__pbar span { display: block; height: 100%; background: var(--clr-dark-blue); border-radius: inherit; }
.preview__card--done .preview__pbar span { background: #0a7a3f; }
.preview__badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--clr-white);
  border: var(--border-soft);
  box-shadow: var(--shadow-card);
  border-radius: var(--br-radius-pill);
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem; font-weight: var(--fw-semi-bold);
  color: var(--clr-dark-blue-text);
}
.preview__badge [data-lucide], .preview__badge svg { color: var(--clr-dark-blue); font-size: 1.05rem; }
.preview__badge--a { top: -0.9rem; right: 1.5rem; }
.preview__badge--b { bottom: -0.9rem; left: -0.6rem; }
@media (max-width: 920px) {
  .preview__badge--a { right: 0.5rem; }
  .preview__badge--b { left: 0.5rem; }
}
@media (max-width: 420px) { .preview__badge { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .preview__badge--a { animation: badge-float 5s ease-in-out infinite; }
  .preview__badge--b { animation: badge-float 6s ease-in-out infinite 0.6s; }
  @keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
  }
}

/* ─── Trust band ──────────────────────────────────────────── */
.trust {
  background: var(--clr-white);
  border-top: var(--border-soft);
  border-bottom: var(--border-soft);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 760px) { .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }
.trust__item { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.trust__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; margin-bottom: 0.35rem;
  border-radius: var(--br-radius-sm);
  background: var(--clr-bg-light-blue); color: var(--clr-dark-blue);
}
.trust__icon [data-lucide], .trust__icon svg { font-size: 1.35rem; }
.trust__n {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: var(--fw-bold);
  color: var(--clr-dark-blue-text);
  line-height: 1.1;
}
.trust__l { font-size: 0.88rem; color: rgba(0, 39, 64, 0.62); }

/* ─── Section heads: centered variant + kicker ────────────── */
.section__head--center { text-align: center; flex-direction: column; align-items: center; gap: 0.75rem; }
.section__head--center > div { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.section__head--center p { margin: 0 auto; }
.section__kicker {
  display: inline-block;
  font-size: 0.78rem; font-weight: var(--fw-bold);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clr-dark-blue);
}
.section--cta { padding-top: 0; }

/* ─── Path cards (tiered CTAs) ────────────────────────────── */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }
.path-card {
  position: relative;
  background: var(--clr-white);
  border-radius: var(--br-radius);
  padding: 1.8rem 1.6rem 1.5rem;
  border: var(--border-soft);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.path-card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--clr-dark-blue);
  transform: scaleY(0); transform-origin: top;
  transition: transform .25s ease;
}
.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 106, 175, 0.25);
  text-decoration: none;
}
.path-card:hover::after { transform: scaleY(1); }
.path-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: 0.4rem;
  border-radius: var(--br-radius-sm);
  background: var(--clr-bg-light-blue); color: var(--clr-dark-blue);
  transition: background .18s ease, color .18s ease;
}
.path-card__icon [data-lucide], .path-card__icon svg { font-size: 1.5rem; }
.path-card:hover .path-card__icon { background: var(--clr-dark-blue); color: var(--clr-white); }
.path-card__statement { font-size: 1.2rem; font-weight: var(--fw-semi-bold); color: var(--clr-dark-blue-text); margin: 0; line-height: 1.3; }
.path-card__hint { font-size: 0.95rem; color: rgba(0, 39, 64, 0.65); margin: 0; }
.path-card__go {
  margin-top: auto; padding-top: 0.7rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: var(--fw-semi-bold); color: var(--clr-dark-blue);
}
.path-card__go .arrow { transition: transform .15s ease; }
.path-card:hover .path-card__go .arrow { transform: translateX(3px); }
.path-card--primary { background: var(--clr-dark-blue); border-color: var(--clr-dark-blue); }
.path-card--primary::after { background: var(--clr-light-blue); }
.path-card--primary .path-card__statement,
.path-card--primary .path-card__go { color: var(--clr-white); }
.path-card--primary .path-card__hint { color: rgba(255,255,255,0.82); }
.path-card--primary .path-card__icon { background: rgba(91,181,255,0.22); color: var(--clr-white); }
.path-card--primary:hover .path-card__icon { background: var(--clr-white); color: var(--clr-dark-blue); }

/* ─── Journey connecting line + icon polish ───────────────── */
.journey { position: relative; }
@media (min-width: 821px) {
  .journey::before {
    content: "";
    position: absolute;
    top: 2.4rem; left: 16%; right: 16%; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(0,106,175,0.35) 0 8px, transparent 8px 16px);
    z-index: 0;
  }
}
.journey-step {
  z-index: 1;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.journey-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.journey-step__icon [data-lucide], .journey-step__icon svg { font-size: 1.45rem; }
/* Echo the module-card visual language: faint step-number watermark + icon fill on hover */
.journey-step::after {
  content: attr(data-step);
  position: absolute;
  top: -0.6rem; right: 0.4rem;
  font-size: 5.5rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: rgba(0, 106, 175, 0.05);
  pointer-events: none;
  z-index: 0;
  transition: color .2s ease;
}
.journey-step:hover::after { color: rgba(0, 106, 175, 0.09); }
.journey-step > * { position: relative; z-index: 1; }
.journey-step__icon { transition: background .2s ease, color .2s ease; }
.journey-step:hover .journey-step__icon { background: var(--clr-dark-blue); color: var(--clr-white); }

/* ─── Module card icon (lucide) ───────────────────────────── */
.module-card__icon [data-lucide] { font-size: 1.4rem; }

/* ─── Utilities ───────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════════════════════════════
   APP FOUNDATION LAYER — "the record, being written"
   Product-screen elevation shared by every app + admin page. Everything
   below is scoped to body:not(.mk) so the marketing site (body.mk, which
   also loads this sheet) is untouched. Later sheets (module.css, auth.css,
   admin.css) are beaten on specificity, not load order.
   Tokens: the --app-* block appended to tokens.css.
   ══════════════════════════════════════════════════════════════════ */

/* ─── App typography roles ────────────────────────────────────────
   Schibsted Grotesk = titles & headline numbers · IBM Plex Mono =
   audit labels/metadata · Roboto stays the working body face. */
body:not(.mk) { color: var(--app-text); }
body:not(.mk) h1,
body:not(.mk) h2,
body:not(.mk) h3,
body:not(.mk) h4 { font-family: var(--ff-display); }
body:not(.mk) h1 { font-weight: 800; letter-spacing: -0.025em; }
body:not(.mk) h2 { font-weight: 700; letter-spacing: -0.025em; }
body:not(.mk) h3 { font-weight: 600; letter-spacing: -0.01em; }

/* Wordmark: always Schibsted, everywhere in the app. */
body:not(.mk) .logo__brand {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}
body:not(.mk) .logo__sub {
  font-family: var(--ff-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* Mono eyebrow — the marketing .mk-eyebrow signature, app-side.
   <p class="app-eyebrow">Record details</p> */
body:not(.mk) .app-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-text-dim);
  margin: 0 0 0.75rem;
}
body:not(.mk) .app-eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}
body:not(.mk) .app-eyebrow--blue { color: var(--clr-dark-blue); }
body:not(.mk) .app-eyebrow--chrome { color: var(--app-chrome-text-dim); } /* on ink surfaces */
body:not(.mk) .app-eyebrow--bare::before { display: none; }

/* Mono + numeric utilities (compose onto any element) */
body:not(.mk) .app-mono {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
body:not(.mk) .app-label {          /* mono micro-label: table-header voice */
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 39, 64, 0.55);
}
body:not(.mk) .app-num {            /* headline/KPI number */
  font-family: var(--ff-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--clr-dark-blue-text);
}
body:not(.mk) .tabular { font-variant-numeric: tabular-nums; }

/* ─── Focus rings (accessibility floor) ──────────────────────────── */
body:not(.mk) :focus-visible {
  outline: var(--app-focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
body:not(.mk) .app-top :focus-visible,
body:not(.mk) .admin-side :focus-visible { outline-color: #8FD0FF; } /* legible on ink */

/* ─── Ink chrome: learner top nav (.app-top) ─────────────────────
   Self-sufficient (layout included) so pages that don't load
   module.css — e.g. account.html — get the full treatment. */
body:not(.mk) .app-top {
  background: var(--app-chrome);
  border-bottom: 1px solid var(--app-chrome-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
body:not(.mk) .app-top__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
body:not(.mk) .app-top .logo__brand { color: var(--clr-white); }
body:not(.mk) .app-top .logo__sub,
body:not(.mk) .admin-side .logo__sub { font-size: 0.68rem; color: var(--app-st-blue); }
body:not(.mk) .app-top__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}
body:not(.mk) .app-top__user .who { color: var(--clr-white); font-weight: var(--fw-semi-bold); }
body:not(.mk) .app-top__user .role {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-chrome-text-dim);
}
body:not(.mk) .app-top__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--clr-dark-blue);
  color: var(--clr-white);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
/* Buttons that sit on the ink bar */
body:not(.mk) .app-top .btn--ghost { color: var(--app-chrome-text); }
body:not(.mk) .app-top .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-white);
}
body:not(.mk) .app-top .btn--secondary {
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.35);
}
body:not(.mk) .app-top .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--clr-white);
}

/* ─── Ink chrome: admin sidebar (.admin-side) ────────────────────── */
body:not(.mk) .admin-side {
  background: var(--app-chrome);
  border-right: 1px solid var(--app-chrome-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
body:not(.mk) .admin-side .logo__brand { color: var(--clr-white); }
body:not(.mk) .admin-side .badge {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  background: rgba(91, 181, 255, 0.16);
  color: var(--app-st-blue);
  border-radius: var(--app-r-chip);
}
body:not(.mk) .admin-nav a {
  color: var(--app-chrome-text);
  border-radius: var(--app-r-ctl);
  min-height: 44px;
}
body:not(.mk) .admin-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--clr-white);
}
body:not(.mk) .admin-nav a.is-active,
body:not(.mk) .admin-nav a.is-active:hover {
  background: rgba(91, 181, 255, 0.12);
  color: var(--clr-white);
  /* 2px lit rail via inset shadow so layout holds */
  box-shadow: inset 2px 0 0 var(--app-st-blue);
}
body:not(.mk) .admin-nav .nav-sec {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-chrome-text-dim);
}
body:not(.mk) .admin-nav .nav-sec::before {
  content: "";
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}
body:not(.mk) .admin-nav .nav-div { border-top-color: var(--app-chrome-line); }
body:not(.mk) .admin-side__user { color: var(--app-chrome-text-dim); }
body:not(.mk) .admin-side__user strong { color: var(--clr-white); }
body:not(.mk) .admin-side__user a { color: var(--app-chrome-text); }
body:not(.mk) .admin-side .btn--secondary {
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.35);
}
body:not(.mk) .admin-side .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--clr-white);
}
@media (max-width: 880px) {
  /* Mobile top-bar variant inherits the same ink. */
  body:not(.mk) .admin-side {
    border-right: 0;
    border-bottom: 1px solid var(--app-chrome-line);
  }
}

/* ─── Buttons: product controls, not marketing pills ─────────────── */
body:not(.mk) .btn {
  border-radius: var(--app-r-ctl);
  min-height: 44px;
}
body:not(.mk) .btn--danger {
  background: var(--app-card);
  color: var(--clr-red);
  border-color: rgba(212, 43, 42, 0.4);
}
body:not(.mk) .btn--danger:hover {
  background: rgba(212, 43, 42, 0.08);
  border-color: var(--clr-red);
}

/* ─── Record-card: the app's one card idea ────────────────────────
   White sheet on the warm desk. Compose onto panels, tcards,
   stat-cards, auth-card, blocks. `is-clickable` earns the lift. */
body:not(.mk) .record-card {
  background: var(--app-card);
  border: 1px solid var(--app-hair);
  border-radius: var(--app-r-card);
  box-shadow: var(--app-shadow-1);
}
body:not(.mk) a.record-card,
body:not(.mk) .record-card.is-clickable {
  transition: transform var(--app-dur-fast) var(--app-ease-out),
              box-shadow var(--app-dur-fast) var(--app-ease-out),
              border-color var(--app-dur-fast) var(--app-ease-out);
}
body:not(.mk) a.record-card:hover,
body:not(.mk) .record-card.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--app-shadow-2);
  border-color: rgba(0, 106, 175, 0.25);
  text-decoration: none;
}

/* Hairline rule (between record sections) */
body:not(.mk) .app-rule {
  border: 0;
  border-top: 1px solid var(--app-hair);
  margin: 1.25rem 0;
}

/* ─── Status chips: stamps, not pills. Colour = training state ───── */
body:not(.mk) .pill,
body:not(.mk) .app-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--app-r-chip);
  background: rgba(0, 106, 175, 0.10);
  color: var(--clr-dark-blue);
}
body:not(.mk) .pill::before,
body:not(.mk) .app-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
/* Semantic variants — green=complete, amber=due, red=overdue/danger,
   blue=assigned/in-progress, grey=locked/muted. Nothing else. */
body:not(.mk) .pill--success, body:not(.mk) .app-chip--green {
  background: var(--clr-green-soft); color: var(--clr-green);
}
body:not(.mk) .pill--warn, body:not(.mk) .app-chip--amber {
  background: var(--clr-amber-soft); color: var(--clr-amber);
}
body:not(.mk) .pill--danger, body:not(.mk) .app-chip--red {
  background: rgba(212, 43, 42, 0.10); color: var(--clr-red);
}
body:not(.mk) .app-chip--blue {
  background: rgba(0, 106, 175, 0.10); color: var(--clr-dark-blue);
}
body:not(.mk) .pill--muted, body:not(.mk) .app-chip--grey {
  background: rgba(0, 39, 64, 0.06); color: rgba(0, 39, 64, 0.65);
}
/* Role marker, not a training state: ink stamp, no dot, hairline. */
body:not(.mk) .pill--admin {
  background: transparent;
  color: var(--clr-dark-blue-text);
  box-shadow: inset 0 0 0 1px var(--app-hair);
}
body:not(.mk) .pill--admin::before { display: none; }

/* ─── Tables: the audit ledger (table.data) ───────────────────────── */
body:not(.mk) table.data thead th {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 39, 64, 0.55);
  background: #FAF6EE;
  border-bottom: 1px solid var(--app-hair);
}
body:not(.mk) table.data th,
body:not(.mk) table.data td { border-bottom: 1px solid var(--app-hair); padding: 0.8rem 1.4rem; }
body:not(.mk) table.data { font-size: 0.9rem; }
body:not(.mk) table.data tbody tr:hover { background: rgba(0, 106, 175, 0.04); }
/* Cell utilities — add to numeric/date and record-id cells. */
body:not(.mk) .cell-num {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
body:not(.mk) .cell-id,
body:not(.mk) .cell-mono {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
/* Pagination / result counts: "SHOWING 1–25 OF 471" */
body:not(.mk) .app-count {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: rgba(0, 39, 64, 0.55);
}

/* ─── Filter chips (keep .filter-chip / .is-active JS contract) ──── */
body:not(.mk) .filter-chip {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--app-r-chip);
  border: 1px solid var(--app-hair);
  background: var(--app-card);
  color: rgba(0, 39, 64, 0.65);
  min-height: 44px;
  padding: 0.3rem 0.8rem;
}
body:not(.mk) .filter-chip:hover { background: var(--clr-bg-light-blue); }
body:not(.mk) .filter-chip.is-active {
  background: var(--clr-ink);
  border-color: var(--clr-ink);
  color: var(--clr-white);
}

/* ─── Forms: labelled, 44px, calm ─────────────────────────────────── */
body:not(.mk) .field label {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--fw-semi-bold);
  color: var(--clr-dark-blue-text);
}
body:not(.mk) .field input,
body:not(.mk) .field select,
body:not(.mk) .field textarea {
  min-height: 44px;
  border: 1px solid rgba(0, 39, 64, 0.18);
  border-radius: var(--app-r-ctl);
  background: var(--app-card);
}
body:not(.mk) .field textarea { min-height: 88px; }
body:not(.mk) .field input:focus,
body:not(.mk) .field select:focus,
body:not(.mk) .field textarea:focus {
  outline: none;
  border-color: var(--clr-dark-blue);
  box-shadow: 0 0 0 3px rgba(0, 106, 175, 0.15);
}

/* ─── Progress track (fill contract untouched: JS scaleX) ─────────── */
body:not(.mk) .bar {
  height: 6px;
  background: rgba(0, 39, 64, 0.08);
  border-radius: 3px;
}
/* Mono % label to pair with any bar */
body:not(.mk) .bar-pct {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-dark-blue);
}

/* ─── Alerts: quiet record notes with a semantic rail ─────────────── */
body:not(.mk) .alert {
  border-radius: var(--app-r-ctl);
  border-left-width: 3px;
}

/* ─── Toasts: ink surface, semantic rail, keep .is-visible ────────── */
body:not(.mk) .toast {
  background: var(--app-chrome);
  color: var(--clr-white);
  border-left: 3px solid var(--app-st-green);
  border-radius: var(--app-r-ctl);
  box-shadow: var(--app-shadow-3);
}
body:not(.mk) .toast--error {
  background: var(--app-chrome);
  border-left-color: var(--app-st-red);
}

/* ─── Modals: white record sheet over an ink scrim ────────────────── */
body:not(.mk) .modal { background: rgba(0, 26, 45, 0.5); }
body:not(.mk) .modal__card {
  border-radius: var(--app-r-card);
  border: 1px solid var(--app-hair);
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.mk) .modal:not([hidden]) .modal__card {
    animation: app-modal-in var(--app-dur) var(--app-ease-out);
  }
  @keyframes app-modal-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ─── Dot-grid ground + empty states ──────────────────────────────
   One faint grid behind a hero band or empty state. Use sparingly. */
body:not(.mk) .app-dotgrid {
  background-image: radial-gradient(rgba(0, 39, 64, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(75% 90% at 50% 0%, #000 30%, transparent 100%);
          mask-image: radial-gradient(75% 90% at 50% 0%, #000 30%, transparent 100%);
}
body:not(.mk) .app-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--app-text-dim);
}
body:not(.mk) .app-empty .app-eyebrow {
  display: inline-flex;
  margin-bottom: 0.6rem;
}
body:not(.mk) .app-empty__title {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 1.2rem;
  color: var(--app-text);
  margin: 0 0 1rem;
}

/* ─── Audit seal (gold, sparing: cert / verify / completed) ───────── */
body:not(.mk) .app-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--clr-gold-1) 0%, var(--clr-gold-2) 55%, var(--clr-gold-3) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), var(--app-shadow-1);
  color: var(--clr-gold-3);
}
body:not(.mk) .app-seal [data-lucide],
body:not(.mk) .app-seal svg {
  font-size: 1.2rem;
  color: #5C3D0C; /* ink-dark gold: ≥4.5:1 on the gold ground */
  stroke-width: 2.25;
}
body:not(.mk) .app-seal--lg { width: 64px; height: 64px; }
body:not(.mk) .app-seal--lg [data-lucide],
body:not(.mk) .app-seal--lg svg { font-size: 1.7rem; }

/* ─── Reduced motion: instant, never gated ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body:not(.mk) *,
  body:not(.mk) *::before,
  body:not(.mk) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
