@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* Precision Tech design tokens — used by the SCAILE journey page (see DESIGN.md) */
:root {
  --sc-slate: #0F172A;
  --sc-purple: #7C3AED;
  --sc-cyan: #06B6D4;
  --sc-cyan-bright: #4cd7f6;
  --sc-border: #E2E8F0;
}

/* Hanken Grotesk headings — scoped to the SCAILE journey page only */
.md-typeset:has(.sc-journey) h1,
.md-typeset:has(.sc-journey) h2 {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ============================================================
   SCAILE roadmap / journey timeline
   Theme-aware (uses Material CSS variables) — works in light + dark.
   ============================================================ */

.sc-roadmap {
  position: relative;
  margin: 2rem 0 2.5rem;
  padding: 0;
}

/* the vertical track */
.sc-roadmap::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--md-accent-fg-color),
    var(--md-primary-fg-color)
  );
  opacity: 0.35;
}

.sc-milestone {
  position: relative;
  padding: 0 0 1.4rem 3rem;
}
.sc-milestone:last-child { padding-bottom: 0; }

/* the node / dot */
.sc-milestone__dot {
  position: absolute;
  left: 0.3rem;
  top: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--md-accent-fg-color);
  /* ring masks the track behind the dot */
  box-shadow: 0 0 0 4px var(--md-default-bg-color),
              0 0 0 5px color-mix(in srgb, var(--md-accent-fg-color) 45%, transparent);
}
.sc-milestone.is-locked  .sc-milestone__dot { background: #16a34a; box-shadow: 0 0 0 4px var(--md-default-bg-color), 0 0 0 5px rgba(22,163,74,.45); }
.sc-milestone.is-pending .sc-milestone__dot { background: #d97706; box-shadow: 0 0 0 4px var(--md-default-bg-color), 0 0 0 5px rgba(217,119,6,.45); }
.sc-milestone.is-beyond  .sc-milestone__dot { background: var(--md-primary-fg-color); box-shadow: 0 0 0 4px var(--md-default-bg-color), 0 0 0 5px rgba(127,127,127,.4); }

/* the card */
.sc-milestone__card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.65rem;
  background: var(--md-code-bg-color);
  padding: 0.8rem 1rem 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.sc-milestone__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--md-accent-fg-color);
}
.sc-milestone.is-pending .sc-milestone__card { border-style: dashed; }

.sc-milestone__phase {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--md-accent-fg-color);
  margin-bottom: 0.2rem;
}
.sc-milestone__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  color: var(--md-default-fg-color);
}
.sc-milestone__card p { margin: 0.2rem 0; }
.sc-milestone__card ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.sc-milestone__card li { margin: 0.15rem 0; }

/* badges */
.sc-badge {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.55rem;
  border-radius: 1rem;
  border: 1px solid transparent;
}
.sc-badge--refine  { color: #4f46e5; background: rgba(79, 70, 229, 0.12); border-color: rgba(79, 70, 229, 0.35); }
.sc-badge--locked  { color: #16a34a; background: rgba(22, 163, 74, 0.12); border-color: rgba(22, 163, 74, 0.40); }
.sc-badge--pending { color: #d97706; background: rgba(217, 119, 6, 0.12); border-color: rgba(217, 119, 6, 0.40); }

/* legend */
.sc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  color: var(--md-default-fg-color--light);
}
.sc-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.sc-legend i {
  width: 0.7rem; height: 0.7rem; border-radius: 50%; display: inline-block;
}
.sc-legend .dot-track   { background: var(--md-accent-fg-color); }
.sc-legend .dot-locked  { background: #16a34a; }
.sc-legend .dot-pending { background: #d97706; }

/* tighten on small screens */
@media screen and (max-width: 44.9375em) {
  .sc-milestone { padding-left: 2.5rem; }
  .sc-roadmap::before { left: 0.85rem; }
  .sc-milestone__dot { left: 0.1rem; }
}

/* ============================================================
   Team grid (who-is-who) — swap avatar src for real headshots later
   ============================================================ */
.sc-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0 1rem;
}
.sc-team__card {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;              /* info column fills the full card height */
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.75rem;
  background: var(--md-code-bg-color);
  padding: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.sc-team__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--md-accent-fg-color);
}
.sc-team__avatar {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  align-self: flex-start;            /* avatar pinned to the top */
  box-shadow: 0 0 0 1px var(--md-default-fg-color--lightest);
}
.sc-team__info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sc-team__role {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-accent-fg-color);
}
.sc-team__name { font-weight: 700; line-height: 1.2; margin: 0.05rem 0 0.3rem; }
.sc-team__note { font-size: 0.78rem; color: var(--md-default-fg-color--light); line-height: 1.45; }
.sc-team__li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  margin-top: auto;                  /* pin the action to the bottom; aligns across the row */
  padding-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--md-accent-fg-color);
  text-decoration: none;
}
.sc-team__li:hover { text-decoration: underline; }

/* ============================================================
   SCAILE journey — "Precision Tech" growth roadmap
   Deep slate · electric purple · vibrant cyan · glassmorphism.
   Scoped to the SCAILE journey page via these sc-* classes.
   ============================================================ */
.sc-vision, .sc-goal, .sc-stage, .sc-progress {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

/* Vision — deep-slate → purple hero with a cyan accent (works light + dark) */
.sc-vision {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0F172A 0%, #1a1340 55%, #2a1056 100%);
  color: #fff;
  padding: 1.9rem 1.8rem;
  margin: 1.5rem 0 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}
.sc-vision::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #06B6D4, #7C3AED);
}
.sc-vision::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 70%);
  pointer-events: none;
}
.sc-vision__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #4cd7f6;
}
.sc-vision__text {
  position: relative;
  font-size: 1.45rem; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em;
  margin: 0.55rem 0 0; color: #fff; max-width: 46rem;
}

/* Growth progress rail — cyan → purple, rounded caps */
.sc-progress { margin: 0 0 1.75rem; }
.sc-progress__track {
  position: relative; height: 8px; border-radius: 9999px;
  background: var(--md-default-fg-color--lightest);
}
.sc-progress__fill {
  height: 100%; width: 82%; border-radius: 9999px;
  background: linear-gradient(90deg, #06B6D4, #7C3AED);
}
.sc-progress__today {
  position: absolute; top: -1.55rem; left: 82%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #7C3AED; white-space: nowrap;
}
.sc-progress__today::after {
  content: ""; position: absolute; left: 50%; top: 1.3rem; transform: translateX(-50%);
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: #7C3AED; box-shadow: 0 0 0 3px var(--md-default-bg-color);
}
.sc-progress__ends {
  display: flex; justify-content: space-between; margin-top: 0.45rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--md-default-fg-color--light);
}

/* Goals — glass cards with a cyan→purple accent rail */
.sc-goals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.85rem; margin: 1.25rem 0 1.75rem;
}
.sc-goal {
  position: relative;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--md-default-bg-color) 82%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.sc-goal::before {
  content: ""; position: absolute; left: 0; top: 0.7rem; bottom: 0.7rem; width: 3px;
  border-radius: 9999px; background: linear-gradient(180deg, #06B6D4, #7C3AED);
}
.sc-goal:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
  border-color: color-mix(in srgb, #7C3AED 35%, transparent);
}
.sc-goal__title { font-weight: 700; font-size: 0.95rem; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
.sc-goal__text { font-size: 0.8rem; color: var(--md-default-fg-color--light); line-height: 1.45; margin: 0; }

/* Journey stepper — glass cards, gradient nodes, mono labels */
.sc-journey {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem; margin: 1.75rem 0 1rem;
}
.sc-stage {
  position: relative;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--md-default-bg-color) 82%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 1.35rem 1rem 0.95rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.sc-stage::before {
  content: ""; position: absolute; top: 0; left: 0.9rem; right: 0.9rem; height: 2px;
  border-radius: 9999px; background: linear-gradient(90deg, #06B6D4, #7C3AED); opacity: 0.7;
}
.sc-stage:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, #7C3AED 40%, transparent);
}
.sc-stage__num {
  position: absolute; top: -0.8rem; left: 1rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #06B6D4, #7C3AED);
  box-shadow: 0 0 0 3px var(--md-default-bg-color);
}
.sc-stage.is-now .sc-stage__num {
  background: linear-gradient(135deg, #22d3ee, #06B6D4);
  box-shadow: 0 0 0 3px var(--md-default-bg-color), 0 0 0 4px rgba(6, 182, 212, 0.45), 0 0 18px rgba(6, 182, 212, 0.5);
}
.sc-stage.is-horizon { border-style: dashed; }
.sc-stage.is-horizon .sc-stage__num { background: linear-gradient(135deg, #7C3AED, #2a1056); }
.sc-stage.is-horizon::before { opacity: 0.4; }
.sc-stage__phase {
  display: block; margin-top: 0.3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #7C3AED;
}
.sc-stage.is-now .sc-stage__phase { color: #0891b2; }
.sc-stage__title { font-weight: 700; font-size: 1rem; margin: 0.2rem 0 0.45rem; letter-spacing: -0.01em; }
.sc-stage ul { margin: 0.3rem 0 0; padding-left: 1.05rem; }
.sc-stage li { margin: 0.18rem 0; font-size: 0.82rem; line-height: 1.45; color: var(--md-default-fg-color--light); }
.sc-stage__now {
  display: inline-block; margin-top: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #0891b2; background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.4); border-radius: 9999px;
  padding: 0.14rem 0.6rem;
}

/* Dark-mode contrast tweaks for the brand accents */
[data-md-color-scheme="slate"] .sc-stage__phase,
[data-md-color-scheme="slate"] .sc-progress__today { color: #a78bfa; }
[data-md-color-scheme="slate"] .sc-stage.is-now .sc-stage__phase,
[data-md-color-scheme="slate"] .sc-stage__now { color: #22d3ee; }
[data-md-color-scheme="slate"] .sc-stage__now { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.4); }
