/* ==========================================================================
   EduScale — design system

   A conventional, production-style education platform interface.

     surface    #F8FAFC page · #FFFFFF panels · #EAF0FF light-blue bands
     ink        #17233D navy headings · #475569 body · #64748B secondary
     brand      #4F7DF3 blue for everything interactive
     status     #45B98A strong · #F4B942 needs practice · #D95757 gap

   Status colour never carries meaning alone: every indicator ships with a
   written label and, where one exists, a number.
   ========================================================================== */

:root {
  /* ---- surfaces ------------------------------------------------------ */
  --bg: #f8fafc;
  --white: #ffffff;
  --blue-light: #eaf0ff;
  --blue-light-2: #dce7ff;

  /* ---- ink ----------------------------------------------------------- */
  --navy: #17233d;
  --navy-soft: #2a3855;
  --body: #475569;
  --muted: #64748b;

  /* ---- brand --------------------------------------------------------- */
  --blue: #4f7df3;
  --blue-dark: #3a63d0;
  --blue-line: #c7d7fb;
  --blue-on-dark: #9fbcfc;

  /* ---- status -------------------------------------------------------- */
  --green: #45b98a;
  --green-ink: #2b7a5b;
  --green-tint: #e8f6f0;
  --green-line: #c2e5d6;

  --yellow: #f4b942;
  --yellow-ink: #8a6413;
  --yellow-tint: #fdf4e3;
  --yellow-line: #f3ddaf;

  --red: #d95757;
  --red-ink: #b23f3f;
  --red-tint: #fbebeb;
  --red-line: #f2cfcf;

  /* ---- lines --------------------------------------------------------- */
  --line: #e2e8f0;
  --line-soft: #edf2f7;

  /* ---- radii · moderate, pills only for tags -------------------------- */
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* ---- elevation · used sparingly ------------------------------------ */
  --sh-sm: 0 1px 2px rgba(23, 35, 61, .06);
  --sh: 0 1px 3px rgba(23, 35, 61, .07), 0 6px 18px -10px rgba(23, 35, 61, .16);
  --sh-lg: 0 2px 6px rgba(23, 35, 61, .07), 0 20px 44px -22px rgba(23, 35, 61, .26);

  --max: 1152px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Aliases so status colours written inline in the pages keep resolving. */
  --slate: #64748b;
  --ink: #17233d;
  --teal: #2b7a5b;
  --teal-fill: #45b98a;
  --amber-fill: #f4b942;
  --yellow-fill: #f4b942;
  --coral: #b23f3f;
  --coral-fill: #d95757;
  --violet-fill: #4f7df3;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

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

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(1.95rem, 1.5rem + 1.6vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.028em;
}

h2 {
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

h3 { font-size: 1rem; }
h4 { font-size: .9rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

strong { color: var(--navy); font-weight: 600; }

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

.muted { color: var(--muted); }
.small { font-size: .875rem; }

.lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
}

.proto-note { font-size: .8125rem; color: var(--muted); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
  background: var(--bg);
}

.section--tight { padding: 40px 0; }

/* the page alternates between two surfaces only */
.section--white,
.section--alt,
.section--teal,
.section--yellow,
.section--lavender { background: var(--white); }

.section--blue { background: var(--blue-light); }

/* on the light-blue band, tints that match it have to become white */
.section--blue .step { border-top-color: var(--blue-line); }
.section--blue .step--active { border-top-color: var(--blue); }
.section--blue .step__icon { background: var(--white); }
.section--blue .subject-pill { border-color: var(--blue-line); }
.section--blue .card { border-color: var(--blue-line); }

.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, .76);
}
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: #fff; }

.section--white + .section--white,
.section--alt + .section--alt,
.section--white + .section--alt,
.section--alt + .section--white { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2-1 { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.grid--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }

/* ---- section headings ----------------------------------------------- */

.section-head { max-width: 640px; margin-bottom: 30px; }

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 { margin-bottom: 10px; }

.section-head p {
  margin: 0;
  font-size: .9375rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav.is-scrolled { box-shadow: var(--sh-sm); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--blue);
  flex: none;
}

/* a small status tag beside the wordmark */
.tag-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 3px 9px;
  border: 1px solid var(--blue-line);
  border-radius: var(--r-pill);
  background: var(--blue-light);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue-dark);
  white-space: nowrap;
}

.tag-soon i {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  animation: soon-pulse 2.6s ease-in-out infinite;
}

@keyframes soon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 125, 243, .45); }
  70% { box-shadow: 0 0 0 5px rgba(79, 125, 243, 0); }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--body);
}

.nav__links a:hover { color: var(--navy); background: var(--bg); }
.nav__links a.is-active { color: var(--navy); font-weight: 600; }

.nav__toggle {
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS · BADGES · STATUS MARKS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); color: #fff; }

.btn--ghost { background: var(--white); border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--blue-line); background: var(--blue-light); color: var(--navy); }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-light); color: var(--navy); }

.btn--lg { padding: 11px 20px; font-size: .9375rem; }
.btn--sm { padding: 7px 14px; font-size: .875rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.badge--info { background: var(--blue-light); border-color: var(--blue-line); color: var(--blue-dark); }
.badge--good { background: var(--green-tint); border-color: var(--green-line); color: var(--green-ink); }
.badge--warn { background: var(--yellow-tint); border-color: var(--yellow-line); color: var(--yellow-ink); }
.badge--crit { background: var(--red-tint); border-color: var(--red-line); color: var(--red-ink); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.dot--good { background: var(--green); }
.dot--warn { background: var(--yellow); }
.dot--crit { background: var(--red); }

.ico {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-sm);
  background: var(--blue-light);
  color: var(--blue-dark);
  flex: none;
}
.ico--good { background: var(--green-tint); color: var(--green-ink); }

.num-chip {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-sm);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .75rem;
  font-weight: 700;
  flex: none;
}

.tick-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tick-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .9375rem;
}

.avatar { border-radius: var(--r); object-fit: cover; }

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.card--pad-lg { padding: 24px; }
.card--raised { box-shadow: var(--sh); }
.card--flat { background: var(--bg); }
.card h3 { margin-bottom: 8px; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  padding: 72px 0 80px;
  background: var(--navy);
  overflow: hidden;
}

/* the photograph is the whole hero background, not a framed card */
.hero__bg { position: absolute; inset: 0; z-index: -1; }

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 55%;
  /* the source is cool and flat; warm it slightly so it does not read grey */
  filter: saturate(1.18) contrast(1.06) brightness(1.05);
}

/* a navy scrim, heaviest where the copy sits */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(68% 72% at 79% 44%, rgba(9, 17, 34, .5), transparent 66%),
    linear-gradient(90deg,
      rgba(13, 22, 41, .95) 0%,
      rgba(13, 22, 41, .9) 26%,
      rgba(16, 26, 47, .7) 42%,
      rgba(20, 31, 55, .36) 56%,
      rgba(23, 35, 61, .16) 72%,
      rgba(23, 35, 61, .1) 100%),
    linear-gradient(0deg, rgba(20, 31, 55, .44) 0%, rgba(23, 35, 61, 0) 38%),
    radial-gradient(90% 70% at 88% 6%, rgba(79, 125, 243, .2), transparent 62%);
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue-on-dark);
}

.hero h1 { color: #fff; }

.mark-you {
  position: relative;
  white-space: nowrap;
  color: var(--blue-on-dark);
}

.mark-you::after {
  content: "";
  position: absolute;
  left: 0;
  right: .08em;
  bottom: .04em;
  height: .12em;
  border-radius: 2px;
  background: var(--blue);
}

.hero .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.hero__copy { max-width: 560px; }

.hero__copy h1 { margin-bottom: 20px; }

.hero__copy .lead {
  margin-bottom: 30px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero__actions:first-child { margin-top: 0; }

/* a short, factual line under the buttons instead of decorative badges */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: rgba(255, 255, 255, .74);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__facts svg { color: var(--green); flex: none; }

/* ---- the stage: the analysis running over the photograph -------------- */

.hero__art { position: relative; z-index: 1; }

.stage {
  position: relative;
  margin: 0;
  aspect-ratio: 660 / 500;
}

/* the links from her head out to each panel */
.stage__wires {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s var(--ease) .2s;
}

.is-in .stage__wires { opacity: 1; }

.wire {
  fill: none;
  stroke: rgba(196, 216, 255, .95);
  stroke-width: 1.9;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(79, 125, 243, .75)) drop-shadow(0 1px 2px rgba(9, 17, 34, .5));
}

/* one packet of data travelling each link */
.wire-dot {
  fill: #fff;
  filter: drop-shadow(0 0 6px rgba(79, 125, 243, .95));
  offset-path: path("M64 358C80 300 100 190 145 122");
  offset-rotate: 0deg;
  animation: wire-dot 2.8s var(--ease) infinite;
}

.wire-dot--b {
  offset-path: path("M64 358C170 372 280 396 396 414");
  animation-delay: .9s;
}

.wire-dot--c {
  offset-path: path("M64 358C80 396 102 428 132 452");
  animation-delay: 1.8s;
}

@keyframes wire-dot {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  86% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.wire-hub {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 10px rgba(79, 125, 243, .9)) drop-shadow(0 2px 5px rgba(9, 17, 34, .5));
}

.wire-hub-pulse {
  fill: none;
  stroke: rgba(150, 185, 255, .95);
  stroke-width: 1.8;
  transform-origin: 64px 358px;
  animation: hub-pulse 2.8s var(--ease) infinite;
}

@keyframes hub-pulse {
  0% { transform: scale(.55); opacity: .9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---- floating panels -------------------------------------------------- */

.panel {
  position: absolute;
  z-index: 4;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 2px rgba(9, 17, 34, .18),
    0 10px 20px -8px rgba(9, 17, 34, .3),
    0 28px 54px -20px rgba(9, 17, 34, .5);
  opacity: 0;
  transform: translateY(10px) scale(.985);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.is-in .panel:not(.panel--seq),
.panel--seq.is-on { opacity: 1; transform: none; }

.panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.panel__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  background: var(--blue);
  color: #fff;
  flex: none;
}

.panel__title {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy);
}

.panel__sub {
  margin: 0 0 9px;
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
}

.panel__sub [data-concept-count] { color: var(--navy); font-weight: 700; }

.panel__foot {
  margin: 8px 0 0;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 1 · the concept analysis panel */

.panel--analysis {
  left: 22%;
  top: 0;
  width: 46%;
  min-width: 212px;
  overflow: hidden;
  transition-delay: .15s;
}

/* a light sweep down the panel while the check is running */
.panel--analysis::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(79, 125, 243, .14) 48%, transparent 100%);
  transform: translateY(-100%);
}

.is-scanning .panel--analysis::after { animation: panel-scan 2.8s var(--ease) infinite; }

.crows { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }

.crow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border-radius: var(--r-sm);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  opacity: .62;
  transform: translateX(-3px);
  transition: opacity .45s var(--ease), transform .45s var(--ease),
              color .45s var(--ease), background-color .45s var(--ease);
}

.crow + .crow::before {
  content: "";
  position: absolute;
  left: 31px;
  right: 6px;
  top: -1px;
  height: 1px;
  background: var(--line-soft);
}

.crow.is-gap::before,
.crow.is-gap + .crow::before { display: none; }

.crow__tick {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  flex: none;
  background: #e8edf5;
  color: transparent;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

.crow.is-on { opacity: 1; transform: none; }
.crow.is-done { color: var(--navy); }
.crow.is-done .crow__tick { background: var(--green); color: #fff; }

.crow.is-gap {
  background: var(--red-tint);
  color: var(--red-ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--red-line);
}
.crow.is-gap .crow__tick { background: var(--red); color: #fff; }
.crow.is-gap .crow__name { color: var(--red-ink); }

/* the live status line at the foot of the panel */
.panel--analysis .demo__status {
  align-items: flex-start;
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  font-size: .6875rem;
  line-height: 1.4;
}

.panel--analysis .demo__status-dots { margin-top: 5px; }

/* 2 · the overall accuracy panel */

.panel--progress {
  right: 0;
  top: 6%;
  width: 30%;
  min-width: 170px;
  transition-delay: .35s;
}

.mini-metrics { display: flex; align-items: center; gap: 12px; }

.mini-donut { position: relative; width: 58px; height: 58px; flex: none; }
.mini-donut svg { transform: rotate(-90deg); }

.mini-donut__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
}

.spark { display: flex; align-items: flex-end; gap: 4px; height: 42px; }

.spark i {
  width: 7px;
  height: var(--h, 40%);
  border-radius: 2px 2px 1px 1px;
  background: var(--blue-light-2);
  transform-origin: bottom;
  animation: bar-rise .9s var(--ease) both;
}

.spark i:nth-child(2) { animation-delay: .07s; }
.spark i:nth-child(3) { animation-delay: .14s; }
.spark i:nth-child(4) { animation-delay: .21s; }
.spark i:nth-child(5) { animation-delay: .28s; }
.spark i:nth-child(6) { animation-delay: .35s; }
.spark i.is-peak { background: var(--blue); }

/* 3 · the gap it finds */

.panel--gap {
  right: 2%;
  top: 71%;
  width: 38%;
  min-width: 186px;
  border-color: var(--red-line);
  background: var(--red-tint);
  transition-delay: .1s;
}

.panel--gap .panel__icon { background: var(--red); color: #fff; }
.panel--gap .panel__title { color: var(--red-ink); }
.panel--gap .gap-name {
  margin: 4px 0 0;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
}
.panel--gap .gap-note { margin: 0; font-size: .6875rem; font-weight: 600; color: var(--red-ink); }

/* 4 · the plan that comes out of it */

.panel--plan {
  left: 20%;
  bottom: 2%;
  width: 40%;
  min-width: 188px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition-delay: .5s;
}

.panel--plan .panel__icon { background: var(--navy); color: #fff; }

.panel--plan p {
  margin: 0;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  animation: typing 1.4s ease-in-out infinite;
}

.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
.is-ready .typing { display: none; }

/* the live status line */
.demo__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.demo__status-dots { display: inline-flex; gap: 3px; }

.demo__status-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  animation: typing 1.4s ease-in-out infinite;
}

.demo__status-dots i:nth-child(2) { animation-delay: .18s; }
.demo__status-dots i:nth-child(3) { animation-delay: .36s; }

.is-ready .demo__status { color: var(--green-ink); }
.is-ready .demo__status-dots i { background: var(--green); animation: none; }

@keyframes panel-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(240%); opacity: 0; }
}

@keyframes bar-rise {
  from { transform: scaleY(.15); opacity: .3; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes typing {
  0%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* ==========================================================================
   HOW IT WORKS  ·  three plain steps, no boxes
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

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

.step__num {
  margin-bottom: 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.step__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: var(--r);
  background: var(--blue-light);
  color: var(--blue-dark);
}

.step h3 { margin-bottom: 6px; font-size: 1.0625rem; }

.step p { margin: 0; font-size: .9375rem; color: var(--muted); }

.step--active { border-top-color: var(--blue); }

/* ==========================================================================
   COMPARE  ·  a subject label against a concept-level result
   ========================================================================== */

.compare { display: grid; gap: 14px; align-items: start; }

.compare__panel {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}

.compare__panel--bad { background: var(--bg); }

.compare__panel--good { border-color: var(--blue-line); background: var(--blue-light); }

.compare__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare__tag--bad { color: var(--muted); }
.compare__tag--good { color: var(--blue-dark); }

.compare__quote {
  margin: 0 0 7px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.compare__panel p:last-child { margin-bottom: 0; }

/* ==========================================================================
   LEARNING FLOW  ·  the chain of concepts, and where it breaks
   ========================================================================== */

.chain {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 26px;
}

.chain__node {
  position: relative;
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease);
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.chain__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--muted);
}

.chain__body { min-width: 0; }

.chain__name {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--navy);
}

.chain__status { font-size: .8125rem; color: var(--muted); }

.chain__node:hover { border-color: var(--blue-line); box-shadow: var(--sh-sm); }
.chain__node.is-gap:hover { border-color: var(--red); }

.chain__node.is-done .chain__icon { background: var(--green-tint); color: var(--green-ink); }
.chain__node.is-done .chain__status { color: var(--green-ink); }

.chain__node.is-gap {
  border-color: var(--red-line);
  background: var(--red-tint);
  box-shadow: 0 1px 2px rgba(217, 87, 87, .12), 0 8px 20px -12px rgba(217, 87, 87, .5);
}
.chain__node.is-gap .chain__icon { background: #fff; color: var(--red-ink); }
.chain__node.is-gap .chain__name { color: var(--red-ink); }
.chain__node.is-gap .chain__status { color: var(--red-ink); font-weight: 600; }

.chain__node.is-blocked { background: var(--bg); border-style: dashed; }
.chain__node.is-blocked .chain__name { color: var(--muted); }

.chain__tag {
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--red);
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---- the connectors: solid while the chain holds, broken after the gap ---- */

.chain__arrow {
  position: relative;
  flex: 0 0 34px;
  align-self: center;
  height: 2px;
  background: var(--line);
}

.chain__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}

/* the link out of the gap is severed: the next topic cannot be reached */
.chain__arrow--break {
  background: none;
  border-top: 2px dashed var(--red-line);
  height: 0;
}

.chain__arrow--break::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(45deg, transparent 44%, var(--red) 44%, var(--red) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--red) 44%, var(--red) 56%, transparent 56%);
}

.chain__arrow--break::after {
  border-top-color: var(--red-line);
  border-right-color: var(--red-line);
}

.path-note {
  margin: 16px 0 0;
  font-size: .9375rem;
  color: var(--muted);
}

/* ==========================================================================
   SUBJECTS
   ========================================================================== */

.subject-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--navy);
}

.subject-pill__icon { color: var(--blue); display: inline-flex; }

.subject-pill { transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.subject-pill:not(.subject-pill--more):hover { border-color: var(--blue-line); background: var(--blue-light); }

.subject-pill--more {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
  font-weight: 400;
}

/* ==========================================================================
   PHOTOGRAPHY
   ========================================================================== */

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shot__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy);
  border-top: 1px solid var(--line);
}

.figure-plain {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.figure-plain img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ==========================================================================
   DATA  ·  bars, columns, gauges, progress, legends
   ========================================================================== */

.chart { display: grid; gap: 11px; }

.bar-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  font-size: .875rem;
}

.bar-row__label { color: var(--navy); font-weight: 500; }

.bar-row__track {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  overflow: hidden;
}

.bar-row__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--blue);
  transition: width 1s var(--ease);
}

.bar-row__fill.is-good { background: var(--green); }
.bar-row__fill.is-warn { background: var(--yellow); }
.bar-row__fill.is-crit { background: var(--red); }

.bar-row__value {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.progress {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--blue);
  transition: width 1s var(--ease);
}

.progress span.is-coral { background: var(--red); }

/* ---- weekly columns --------------------------------------------------- */

.cols {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: 132px;
  padding-top: 8px;
}

.col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
}

.col__bar {
  display: block;
  width: 100%;
  height: 0;
  min-height: 4px;
  border-radius: var(--r-sm) var(--r-sm) 2px 2px;
  background: var(--blue-light-2);
  transition: height .9s var(--ease);
}

.col__bar.is-peak { background: var(--blue); }

.col__label {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
}

/* ---- gauge ------------------------------------------------------------ */

.gauge {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  flex: none;
}

.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.gauge__arc { transition: stroke-dashoffset 1.1s var(--ease); }

.gauge__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.gauge__value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.gauge__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.score-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.score-hero > *:last-child { flex: 1 1 340px; min-width: 0; }

/* ---- legend ----------------------------------------------------------- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: .8125rem;
  color: var(--muted);
}

.legend__item { display: inline-flex; align-items: center; gap: 7px; }

.legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 20px;
  font-size: .8125rem;
  color: var(--muted);
}

/* ---- stats ------------------------------------------------------------ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.stat__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
}

.stat__value {
  margin: 6px 0 3px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.stat__note { margin: 0; font-size: .8125rem; color: var(--muted); }

/* ---- table ------------------------------------------------------------ */

.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

table.data th,
table.data td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

table.data th {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

table.data td { color: var(--body); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }

.table-toggle { margin-top: 20px; }

.table-toggle summary {
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
}

/* ---- timeline --------------------------------------------------------- */

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

.timeline li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9375rem;
}

.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }

.timeline__dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.timeline__dot.is-good { background: var(--green); }
.timeline__dot.is-warn { background: var(--yellow); }
.timeline__dot.is-crit { background: var(--red); }

.timeline .when { font-size: .8125rem; color: var(--muted); white-space: nowrap; }

/* ---- tooltip ---------------------------------------------------------- */

.tip {
  position: fixed;
  z-index: 90;
  transform: translate(-50%, calc(-100% - 10px));
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s var(--ease);
}

.tip.is-visible { opacity: 1; }

/* ==========================================================================
   PAGE HEAD  (assessment · analysis · focus · dashboard)
   ========================================================================== */

.page-head {
  padding: 38px 0 42px;
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
}

.page-head h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
  color: #fff;
}

.page-head p { margin: 0; max-width: 620px; font-size: 1.0625rem; color: rgba(255, 255, 255, .7); }

.page-head .eyebrow { color: var(--blue-on-dark); }

.page-head__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 32px;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: .8125rem;
}

.flow__item {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-weight: 500;
}

.flow__item {
  border-color: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .68);
}

.flow__item.is-current {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 600;
}

a.flow__item.is-done { color: #fff; }
a.flow__item:hover { border-color: rgba(255, 255, 255, .45); color: #fff; }

.flow__sep { color: rgba(255, 255, 255, .3); }

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-grid { display: grid; gap: 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
}

.select-wrap { position: relative; }

.select-wrap > svg {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.select-wrap select,
.select-wrap input[type="text"] {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  font-family: inherit;
  font-size: .9375rem;
  color: var(--navy);
  appearance: none;
}

.select-wrap select:focus,
.select-wrap input[type="text"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 125, 243, .16);
}

.hint { margin: 7px 0 0; font-size: .8125rem; color: var(--muted); }

/* ---- type-or-pick menu ------------------------------------------------ */

.combo__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 232px;
  margin: 0;
  padding: 5px;
  overflow-y: auto;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  display: none;
}

.combo.is-open .combo__menu { display: block; }

.combo__option {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  color: var(--navy);
  cursor: pointer;
}

.combo__option:hover,
.combo__option.is-active { background: var(--blue-light); }

.combo__empty {
  padding: 8px 10px;
  font-size: .875rem;
  color: var(--muted);
}

/* ---- choice chips ----------------------------------------------------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}

.chip:hover { border-color: var(--blue-line); }

.chip.is-active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 600;
}

/* ---- selection summary ------------------------------------------------ */

.summary-card {
  background: var(--navy);
  border-color: var(--navy);
  color: rgba(255, 255, 255, .72);
}

.summary-card h3 { color: #fff; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: .9375rem;
}

.summary-row span { color: rgba(255, 255, 255, .66); }
.summary-row strong { color: #fff; font-weight: 600; }

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   ANALYSIS
   ========================================================================== */

.review {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-chip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  cursor: default;
}

.review-chip.is-right { border-color: var(--green-line); background: var(--green-tint); color: var(--green-ink); }
.review-chip.is-wrong { border-color: var(--red-line); background: var(--red-tint); color: var(--red-ink); }

.ai-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--blue-line);
  border-radius: var(--r-lg);
  background: var(--blue-light);
}

.ai-note__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--blue);
  flex: none;
}

.ai-note h3 { margin-bottom: 8px; }
.ai-note em { color: var(--navy); font-style: normal; font-weight: 500; }

.concept-map {
  max-width: 780px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.concept-map svg { display: block; width: 100%; max-width: 700px; height: auto; margin: 0 auto; }

/* ---- category columns ------------------------------------------------- */

.cat {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  border-top: 3px solid var(--muted);
}

.cat--good { border-top-color: var(--green); }
.cat--warn { border-top-color: var(--yellow); }
.cat--crit { border-top-color: var(--red); }

.cat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cat__head h3 { margin: 0; }

.cat__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--muted);
  flex: none;
}

.cat--good .cat__icon { background: var(--green-tint); color: var(--green-ink); }
.cat--warn .cat__icon { background: var(--yellow-tint); color: var(--yellow-ink); }
.cat--crit .cat__icon { background: var(--red-tint); color: var(--red-ink); }

.cat__count { margin: 0 0 16px; font-size: .875rem; color: var(--muted); }

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

.topic-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9375rem;
  color: var(--navy);
}

.topic-list li:last-child { border-bottom: 0; }

.topic-list .pct {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

/* ==========================================================================
   FOCUS PLAN
   ========================================================================== */

.priority {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: var(--r-lg);
}

.priority--high { border-left-color: var(--red); }
.priority--medium { border-left-color: var(--yellow); }
.priority--low { border-left-color: var(--green); }

.priority__num {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.priority__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.priority__meta h3 { margin: 0; }

.priority__body p { margin: 0; font-size: .9375rem; }

.priority__side { text-align: right; }

.priority__side .pct {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.priority__side .cap {
  font-size: .75rem;
  color: var(--muted);
}

/* ---- learning journey -------------------------------------------------- */

.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.journey__node { padding-top: 18px; border-top: 2px solid var(--line); }

.journey__node.is-active { border-top-color: var(--blue); }

.journey__dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: var(--r);
  background: var(--bg);
  color: var(--muted);
}

.journey__node.is-active .journey__dot { background: var(--blue-light); color: var(--blue-dark); }

.journey__node h4 { margin-bottom: 6px; font-size: .9375rem; }

.journey__node p { margin: 0; font-size: .875rem; color: var(--muted); }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */

.play-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.play {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.play__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--blue-light);
  color: var(--blue-dark);
  flex: none;
}

.play__value { font-size: 1rem; font-weight: 700; color: var(--navy); }
.play__label { font-size: .8125rem; color: var(--muted); }

.next-card {
  position: relative;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--navy);
  color: rgba(255, 255, 255, .74);
  overflow: hidden;
}

.next-card h3 { color: #fff; }
.next-card p { font-size: .9375rem; margin-bottom: 20px; }
.next-card .badge { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); color: #fff; }

.next-card__motif {
  position: absolute;
  right: -46px;
  bottom: -46px;
  opacity: .08;
  pointer-events: none;
}

/* ---- badges earned ---------------------------------------------------- */

.awards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.award {
  padding: 16px 12px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.award__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: var(--r);
  background: var(--yellow-tint);
  color: var(--yellow-ink);
}

.award__name { font-size: .9375rem; font-weight: 600; color: var(--navy); }
.award__note { font-size: .75rem; color: var(--muted); }

.award.is-locked { background: var(--bg); }
.award.is-locked .award__icon { background: var(--line-soft); color: var(--muted); }
.award.is-locked .award__name { color: var(--muted); }

/* ---- empty state ------------------------------------------------------ */

.empty {
  padding: 22px 20px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

.empty__art { margin: 0 auto 16px; }
.empty h3 { margin-bottom: 6px; }
.empty p { font-size: .875rem; color: var(--muted); margin-bottom: 18px; }

/* ==========================================================================
   CALL TO ACTION BAND
   ========================================================================== */

.cta {
  padding: 56px 0;
  background: var(--navy);
}

.cta__inner { max-width: 660px; margin: 0 auto; text-align: center; }

.cta h2 { color: #fff; margin-bottom: 14px; }

.cta p {
  margin: 0 0 22px;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .72);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }

.cta__note { margin: 22px 0 0; font-size: .8125rem; color: rgba(255, 255, 255, .5); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding: 40px 0 22px;
  background: var(--navy);
  color: rgba(255, 255, 255, .66);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer__brand { max-width: 300px; }

.footer__brand .brand { margin-bottom: 14px; color: #fff; }
.footer__brand .brand:hover { color: #fff; }

.footer__brand p { margin: 0; font-size: .875rem; color: rgba(255, 255, 255, .6); }

.footer__col h4 {
  margin-bottom: 14px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.footer__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  font-size: .875rem;
  color: rgba(255, 255, 255, .66);
}

.footer__links a:hover { color: #fff; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
}

.footer .proto-note { color: rgba(255, 255, 255, .45); }

/* ==========================================================================
   MOTION
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1020px) {
  .hero__inner { gap: 40px; }
  .panel__title { font-size: .78rem; }
  .crow { font-size: .72rem; }
  .bar-row { grid-template-columns: 140px minmax(0, 1fr) 42px; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh);
  }

  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 11px 12px; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__inner { position: relative; }

  .hero { padding: 48px 0 64px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero__copy { max-width: none; }
  /* the panels stack as cards over the photograph */
  .stage { aspect-ratio: auto; display: grid; gap: 12px; }
  .stage__wires { display: none; }
  .panel {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    min-width: 0;
    opacity: 1;
    transform: none;
    box-shadow: var(--sh);
  }
  .panel--analysis,
  .panel--progress,
  .panel--gap,
  .panel--plan { width: 100%; }
  .panel__title { font-size: .875rem; }
  .crow { font-size: .8125rem; }

  .section { padding: 48px 0; }
  .section--tight { padding: 34px 0; }

  .grid--2, .grid--3, .grid--2-1, .grid--1-2 { grid-template-columns: minmax(0, 1fr); }

  .steps, .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

  .chain { flex-direction: column; align-items: stretch; }
  .chain__arrow {
    flex: 0 0 26px;
    align-self: center;
    width: 2px;
    height: 26px;
    background: var(--line);
  }
  .chain__arrow::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
  .chain__arrow--break {
    width: 0;
    height: 32px;
    background: none;
    border-top: 0;
    border-left: 2px dashed var(--red-line);
  }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-hero { gap: 28px; }
}

@media (max-width: 900px) and (min-width: 620px) {
  .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .panel--analysis { grid-row: span 2; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }

  .section { padding: 40px 0; }
  .steps, .journey { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .play-row { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .awards { grid-template-columns: minmax(0, 1fr); }

  .bar-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas: "label value" "track track";
    gap: 6px 12px;
  }
  .bar-row__label { grid-area: label; }
  .bar-row__value { grid-area: value; }
  .bar-row__track { grid-area: track; }

  .priority { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .priority__side { text-align: left; }
  .priority__num { font-size: 1.1rem; }

  .hero__actions .btn { width: 100%; }
  .cta__actions .btn { width: 100%; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cols { gap: 6px; height: 140px; }
}

/* number spans animated by the script keep a fixed width while counting */
.count { font-variant-numeric: tabular-nums; }
.play__body { min-width: 0; }
