/* =========================================================================
   Ungodly AI Overhaul — Two Point Campus · Install Guide
   by StixsworldHD (StixsmasterHD4k)

   Design: "The Injection Chain"
   Palette grounded in Two Point Campus's own UI (cyan) and the CAMPUS
   logo (amber), on a deep near-black "memory space", with a coral danger
   accent drawn from the brand's skull mark.
   Type: Chakra Petch (display) · IBM Plex Sans (body) · JetBrains Mono (code)
   ========================================================================= */

:root {
  /* surfaces */
  --void:      #0a0d12;
  --void-2:    #0c1119;
  --surface:   #121821;
  --surface-2: #19212e;
  --surface-3: #222c3c;
  --line:      rgba(124,146,178,0.14);
  --line-2:    rgba(124,146,178,0.24);

  /* accents */
  --cyan:      #34e0d0;
  --cyan-dim:  #82d8ce;
  --cyan-deep: #14b3a6;
  --amber:     #f5b53d;
  --amber-dim: #d99a1f;
  --coral:     #ff5c5c;
  --mint:      #5ee6a8;

  /* ink */
  --ink:     #e9eef5;
  --ink-2:   #c3cedb;
  --muted:   #8a98ac;
  --muted-2: #6a7688;

  /* type */
  --f-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --f-body:    'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* metrics */
  --wrap: 1100px;
  --nav-h: 64px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -22px rgba(0,0,0,0.8);
  --shadow-lg: 0 40px 90px -30px rgba(0,0,0,0.85);
}

/* ---- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--void);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(52,224,208,0.10), transparent 60%),
    radial-gradient(900px 560px at 8% 4%, rgba(245,181,61,0.07), transparent 58%),
    linear-gradient(180deg, var(--void-2), var(--void) 320px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-dim); }
code, pre, kbd { font-family: var(--f-mono); }

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

.skip {
  position: absolute; left: 12px; top: -120px;
  background: var(--cyan); color: #04201d; font-weight: 700;
  padding: 10px 16px; border-radius: 8px; z-index: 200;
  font-family: var(--f-display); transition: top .18s ease;
}
.skip:focus { top: 12px; }

:where(p, li, dd, .prose, .step__text, .callout__text, .hero__intro) code {
  font-size: 0.86em;
  background: rgba(52,224,208,0.09);
  border: 1px solid rgba(52,224,208,0.16);
  color: var(--cyan-dim);
  padding: 0.08em 0.42em; border-radius: 6px; white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--steps { max-width: 980px; }
.wrap--narrow { max-width: 860px; }

/* =========================================================================
   TOP BAR / NAV
   ========================================================================= */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,13,18,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1240px; margin-inline: auto; height: var(--nav-h);
  padding-inline: 22px; display: flex; align-items: center; gap: 18px;
}
.wordmark { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark__mark { display: grid; place-items: center; flex: none; }
.wordmark__title {
  display: block; font-family: var(--f-display); font-weight: 700;
  font-size: 15.5px; letter-spacing: 0.2px; line-height: 1.05;
}
.wordmark__sub {
  display: block; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.5px; color: var(--muted); text-transform: uppercase;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 9px;
  color: var(--muted); font-weight: 500; font-size: 14px; letter-spacing: 0.1px;
  transition: color .16s ease, background .16s ease;
}
.nav__link:hover { color: var(--ink); background: rgba(124,146,178,0.08); }
.nav__link.is-active { color: var(--ink); background: rgba(52,224,208,0.10); }
.nav__phase {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  color: var(--amber); letter-spacing: 0.5px;
  padding: 2px 5px; border-radius: 5px; background: rgba(245,181,61,0.12);
}
.navtoggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  cursor: pointer; padding: 0;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.navtoggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s ease; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .navtoggle { display: flex; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10,13,18,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-2); padding: 12px 16px 18px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 13px 14px; font-size: 15.5px; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.main { display: block; }
.hero { padding: 60px 0 30px; }
.hero__grid {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 24px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 1.3px; text-transform: uppercase; color: var(--cyan-dim);
  margin: 0 0 22px; padding: 6px 12px; border-radius: 999px;
  background: rgba(52,224,208,0.07); border: 1px solid rgba(52,224,208,0.18);
}
.eyebrow__pip {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none;
  box-shadow: 0 0 0 0 rgba(52,224,208,0.6); animation: pip 2.4s ease-in-out infinite;
}
@keyframes pip {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,224,208,0.55); }
  50% { box-shadow: 0 0 0 6px rgba(52,224,208,0); }
}
.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.7rem, 6vw, 4.3rem); line-height: 0.98;
  letter-spacing: -0.5px; color: var(--ink); margin: 0 0 14px; text-wrap: balance;
}
.hero__game {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem); color: var(--ink-2);
  margin: 0 0 6px; letter-spacing: 0.2px;
}
.hero__divider { color: var(--cyan); margin-inline: 8px; }
.hero__sub { color: var(--cyan-dim); }
.hero__by { font-size: 14px; color: var(--muted); margin: 0 0 26px; font-family: var(--f-mono); }
.hero__by strong { color: var(--amber); font-weight: 500; }
.hero__alt { color: var(--muted-2); }
.hero__intro { font-size: 17px; color: var(--ink-2); max-width: 46ch; margin: 0 0 30px; }
.hero__intro strong { color: var(--ink); font-weight: 600; }
.hero__intro em { color: var(--cyan-dim); font-style: normal; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 11px; letter-spacing: 0.2px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { transition: transform .18s ease; }
.btn--primary {
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  color: #042320; box-shadow: 0 14px 30px -12px rgba(52,224,208,0.6);
}
.btn--primary:hover { color: #042320; transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(52,224,208,0.7); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--ink); border-color: var(--cyan); background: var(--surface-3); transform: translateY(-2px); }

/* ---- the chain (hero + signature) ------------------------------------- */
.hero__chain { position: relative; }
.chainwrap {
  background: linear-gradient(180deg, rgba(25,33,46,0.9), rgba(18,24,33,0.92));
  border: 1px solid var(--line-2); border-radius: 18px;
  padding: 26px 26px 22px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.chainwrap::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(124,146,178,0.04) 27px 28px);
  pointer-events: none; opacity: 0.5;
}
.chainwrap__head {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--cyan-dim); margin: 0 0 4px;
}
.chainwrap__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chainwrap__sub { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.chainwrap__foot { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; font-style: italic; }

.chain { list-style: none; margin: 0; padding: 0; position: relative; }
.chain__node {
  position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 14px;
  padding-bottom: 17px; opacity: 0; transform: translateX(-6px);
  animation: chainIn .5s ease forwards; animation-delay: calc(var(--i) * 95ms + 120ms);
}
@keyframes chainIn { to { opacity: 1; transform: translateX(0); } }
.chain__dot {
  position: relative; z-index: 2;
  width: 13px; height: 13px; margin: 6px auto 0; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--cyan-deep);
  box-shadow: 0 0 0 4px rgba(20,179,166,0.10);
}
.chain__dot--target {
  width: 16px; height: 16px; margin-top: 4px;
  border-color: var(--amber); background: var(--amber);
  box-shadow: 0 0 0 5px rgba(245,181,61,0.16), 0 0 18px rgba(245,181,61,0.5);
}
.chain__link {
  position: absolute; left: 12px; top: 19px; bottom: -1px; width: 2px;
  background: linear-gradient(180deg, var(--cyan-deep), rgba(20,179,166,0.25)); overflow: hidden;
}
.chain__link::after {
  content: ""; position: absolute; left: -1px; right: -1px; height: 22px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  animation: flow 2.6s linear infinite; animation-delay: calc(var(--i) * 120ms);
}
@keyframes flow {
  0% { transform: translateY(-24px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}
.chain__body { padding-top: 2px; min-width: 0; }
.chain__label {
  display: block; font-family: var(--f-mono); font-weight: 700; font-size: 13.5px;
  color: var(--ink); letter-spacing: 0.1px;
}
.chain__node.is-target .chain__label { color: var(--amber); }
.chain__note { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.chain--mini {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px 4px; margin: 8px 0 4px;
}
.chain--mini .chain__node { animation: none; opacity: 1; transform: none; padding-bottom: 14px; }
.chain--mini .chain__link::after { animation: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .chain__node { animation: none; opacity: 1; transform: none; }
  .chain__link::after { animation: none; opacity: 0; }
  .eyebrow__pip { animation: none; }
}

/* =========================================================================
   SECTION SCAFFOLD
   ========================================================================= */
.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band--alt { background: linear-gradient(180deg, rgba(18,24,33,0.5), rgba(12,17,25,0.2)); }
.sec__head { max-width: 62ch; margin: 0 auto 40px; text-align: center; }
.sec__head--left { margin-inline: 0; text-align: left; max-width: 64ch; }
.sec__eyebrow {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber); margin: 0 0 12px;
}
.sec__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.08;
  color: var(--ink); margin: 0 0 14px; letter-spacing: -0.3px; text-wrap: balance;
}
.sec__lede { font-size: 16.5px; color: var(--muted); margin: 0; }
.sec__head:not(.sec__head--left) .sec__lede { margin-inline: auto; }

/* =========================================================================
   PAYLOAD CARDS (overview)
   ========================================================================= */
.payloads { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.payload {
  position: relative; display: flex; gap: 18px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 26px;
  transition: transform .16s ease, border-color .18s ease, box-shadow .2s ease;
}
.payload:hover { transform: translateY(-3px); border-color: rgba(52,224,208,0.4); box-shadow: var(--shadow); }
.payload--accent { border-color: rgba(245,181,61,0.3); }
.payload--accent:hover { border-color: rgba(245,181,61,0.55); }
.payload__rank { flex: none; }
.payload__rank span {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  font-family: var(--f-display); font-weight: 700; font-size: 18px;
  color: var(--cyan); background: rgba(52,224,208,0.10); border: 1px solid rgba(52,224,208,0.22);
}
.payload--accent .payload__rank span { color: var(--amber); background: rgba(245,181,61,0.10); border-color: rgba(245,181,61,0.24); }
.payload__body { min-width: 0; }
.payload__name {
  font-family: var(--f-display); font-weight: 600; font-size: 18px;
  color: var(--ink); margin: 2px 0 6px; line-height: 1.2;
}
.payload__file { font-family: var(--f-mono); font-size: 12px; color: var(--muted-2); margin: 0 0 14px; word-break: break-all; }
.payload__desc { font-size: 14.5px; color: var(--ink-2); margin: 0 0 18px; }
.payload__desc strong { color: var(--ink); font-weight: 600; }
.payload__facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.payload__facts li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.payload__facts span { color: var(--muted); }
.payload__facts b { color: var(--ink); font-weight: 600; font-family: var(--f-mono); font-size: 12px; }
.payload__go { font-family: var(--f-display); font-weight: 600; font-size: 14px; }

.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.req { display: flex; gap: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.req__n {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  font-family: var(--f-display); font-weight: 700; font-size: 15px;
  color: var(--amber); background: rgba(245,181,61,0.10); border: 1px solid rgba(245,181,61,0.2);
}
.req__title { font-family: var(--f-display); font-weight: 600; font-size: 15.5px; color: var(--ink); margin: 4px 0 6px; }
.req p { font-size: 14px; color: var(--muted); margin: 0; }
.req strong { color: var(--ink-2); }

.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.phase__link {
  display: flex; align-items: center; gap: 22px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 22px 26px; color: var(--ink-2);
  transition: transform .15s ease, border-color .18s ease, background .18s ease;
}
.phase__link:hover { transform: translateX(4px); border-color: var(--cyan); background: var(--surface-2); color: var(--ink-2); }
.phase__num { font-family: var(--f-display); font-weight: 700; font-size: 30px; color: var(--cyan); opacity: 0.85; flex: none; width: 46px; }
.phase__title { display: block; font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--ink); margin-bottom: 3px; }
.phase__desc { display: block; font-size: 14px; color: var(--muted); }
.phase__main { flex: 1; min-width: 0; }
.phase__go { font-size: 22px; color: var(--cyan); flex: none; transition: transform .18s ease; }
.phase__link:hover .phase__go { transform: translateX(4px); }

/* =========================================================================
   PAGE HEADER (step pages)
   ========================================================================= */
.phead { padding: 54px 0 8px; border-bottom: 1px solid var(--line); }
.phead__phase {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); margin: 0 0 16px;
}
.phead__num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; color: #052320; background: var(--cyan);
}
.phead__num--plain { background: rgba(245,181,61,0.16); color: var(--amber); }
.phead__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.02;
  color: var(--ink); margin: 0 0 16px; letter-spacing: -0.4px;
}
.phead__lede { font-size: 17px; color: var(--ink-2); max-width: 64ch; margin: 0 0 22px; }
.phead__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line-2); padding: 7px 13px; border-radius: 999px;
}
.chip b { color: var(--cyan-dim); font-weight: 500; margin-right: 5px; }

/* =========================================================================
   STEP (the injection spine)
   ========================================================================= */
.steps { padding: 40px 0 8px; position: relative; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; position: relative; }
.step__spine { position: relative; }
.step__spine::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: -8px; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--line-2), var(--line-2) 40px, var(--line) 100%);
}
.step:last-child .step__spine::before { background: linear-gradient(180deg, var(--line-2), transparent 88%); }
.step__node {
  position: relative; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; margin: 2px auto 0; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 0 0 5px var(--void);
}
.step__num { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--cyan); }
.step__content { padding-bottom: 46px; min-width: 0; padding-top: 2px; }
.step__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--ink); margin: 4px 0 14px; letter-spacing: -0.2px;
}
.step__text { font-size: 16px; color: var(--ink-2); }
.step__text > :first-child { margin-top: 0; }
.step__text > :last-child { margin-bottom: 0; }
.step__text p { margin: 0 0 14px; }
.step__text strong { color: var(--ink); font-weight: 600; }
.step__text em { color: var(--cyan-dim); font-style: normal; }

.ol, .ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.ol { counter-reset: olc; }
.ol > li { position: relative; padding-left: 38px; margin-bottom: 11px; font-size: 15.5px; counter-increment: olc; }
.ol > li::before {
  content: counter(olc); position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  color: var(--amber); background: rgba(245,181,61,0.1); border: 1px solid rgba(245,181,61,0.2);
}
.ul > li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 15.5px; }
.ul > li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px;
  border-radius: 2px; transform: rotate(45deg); background: var(--cyan);
}
.ul > li strong { color: var(--ink); font-weight: 600; }

/* =========================================================================
   CODE / PATH BLOCKS
   ========================================================================= */
.code {
  background: #0b0f16; border: 1px solid var(--line-2); border-radius: 11px;
  overflow: hidden; margin: 0 0 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.code__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 8px 14px; background: rgba(124,146,178,0.05); border-bottom: 1px solid var(--line);
}
.code__label {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}
.code__copy {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--muted);
  background: transparent; border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 7px;
  cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.code__copy:hover { color: var(--cyan); border-color: var(--cyan); }
.code__copy.is-done { color: var(--mint); border-color: var(--mint); }
.code__pre { margin: 0; padding: 15px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.code__pre code { color: var(--cyan-dim); white-space: pre; background: none; border: 0; padding: 0; }

/* =========================================================================
   CALLOUTS
   ========================================================================= */
.callout {
  display: flex; gap: 14px; background: var(--surface);
  border: 1px solid var(--line-2); border-left: 3px solid var(--muted);
  border-radius: 11px; padding: 17px 19px; margin: 18px 0;
}
.callout__icon { flex: none; margin-top: 1px; }
.callout__title { margin: 0 0 5px; font-family: var(--f-display); font-weight: 600; font-size: 15.5px; color: var(--ink); line-height: 1.35; }
.callout__kicker {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-right: 9px; vertical-align: 1px;
}
.callout__text { font-size: 14.5px; color: var(--ink-2); }
.callout__text > :first-child { margin-top: 0; }
.callout__text > :last-child { margin-bottom: 0; }
.callout__text p { margin: 0 0 9px; }
.callout--info    { border-left-color: var(--cyan); }
.callout--info .callout__icon, .callout--info .callout__kicker { color: var(--cyan); }
.callout--tip     { border-left-color: var(--amber); }
.callout--tip .callout__icon, .callout--tip .callout__kicker { color: var(--amber); }
.callout--caution { border-left-color: var(--amber); background: rgba(245,181,61,0.05); }
.callout--caution .callout__icon, .callout--caution .callout__kicker { color: var(--amber); }
.callout--danger  { border-left-color: var(--coral); background: rgba(255,92,92,0.05); }
.callout--danger .callout__icon, .callout--danger .callout__kicker { color: var(--coral); }
.callout--success { border-left-color: var(--mint); background: rgba(94,230,168,0.05); }
.callout--success .callout__icon, .callout--success .callout__kicker { color: var(--mint); }

.check { list-style: none; margin: 6px 0 0; padding: 0; }
.check li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 14.5px; color: var(--ink-2); }
.check li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 4px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ee6a8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-11'/%3E%3C/svg%3E") center/12px no-repeat,
    rgba(94,230,168,0.12);
  border: 1px solid rgba(94,230,168,0.3);
}

/* =========================================================================
   FILE TREE
   ========================================================================= */
.tree, .tree__sub { list-style: none; margin: 0 0 16px; padding: 0; }
.tree {
  background: #0b0f16; border: 1px solid var(--line-2); border-radius: 11px;
  padding: 14px 16px; font-family: var(--f-mono); font-size: 13px;
}
.tree__sub { margin: 0; padding-left: 19px; border-left: 1px solid var(--line); margin-left: 7px; }
.tree__item { margin: 3px 0; }
.tree__row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.tree__i { flex: none; }
.tree__i--dir { color: var(--amber); }
.tree__i--file { color: var(--muted); }
.tree__item--dir > .tree__row > .tree__name { color: var(--ink); font-weight: 700; }
.tree__name { color: var(--ink-2); }
.tree__note { color: var(--muted-2); font-size: 11.5px; margin-left: auto; padding-left: 14px; text-align: right; }

/* =========================================================================
   SCREENSHOT FIGURE + ZOOM HINT
   ========================================================================= */
.shot { margin: 4px 0 18px; }
.shot__btn {
  display: block; width: 100%; padding: 0; cursor: zoom-in;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  overflow: hidden; position: relative;
  transition: border-color .18s ease, box-shadow .2s ease, transform .16s ease;
}
.shot__btn:hover { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-2px); }
.shot__img { width: 100%; height: auto; display: block; }
.shot__zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  color: var(--ink); background: rgba(10,13,18,0.82); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 8px;
  opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease;
}
.shot__zoom svg { color: var(--cyan); }
.shot__btn:hover .shot__zoom, .shot__btn:focus-visible .shot__zoom { opacity: 1; transform: translateY(0); }
.shot__cap { font-size: 13px; color: var(--muted); margin: 11px 2px 0; line-height: 1.55; }
@media (hover: none) { .shot__zoom { opacity: 1; transform: none; } }

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.lb {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(5,7,11,0.92); backdrop-filter: blur(8px);
  padding: clamp(16px, 4vw, 56px); opacity: 0; transition: opacity .2s ease;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb__img {
  max-width: min(1600px, 94vw); max-height: 82vh; width: auto; height: auto;
  border-radius: 10px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  transform: scale(0.97); transition: transform .2s ease;
}
.lb.is-open .lb__img { transform: scale(1); }
.lb__cap { font-size: 13.5px; color: var(--ink-2); text-align: center; max-width: 70ch; line-height: 1.55; font-family: var(--f-body); }
.lb__close {
  position: absolute; top: 18px; right: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.lb__close:hover { color: var(--coral); border-color: var(--coral); }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); background: rgba(25,33,46,0.7); border: 1px solid var(--line-2); backdrop-filter: blur(6px);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.lb__nav:hover { color: var(--cyan); border-color: var(--cyan); background: var(--surface-2); }
.lb__nav--prev { left: clamp(10px, 2.5vw, 30px); }
.lb__nav--next { right: clamp(10px, 2.5vw, 30px); }
.lb__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
  background: rgba(25,33,46,0.6); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
}
@media (prefers-reduced-motion: reduce) {
  .lb, .lb__img { transition: none; }
  .lb__img { transform: none; }
}
@media (max-width: 640px) {
  .lb__nav { width: 42px; height: 42px; }
  .lb__img { max-height: 74vh; }
}

/* =========================================================================
   CONFIGURE PAGE
   ========================================================================= */
.csec { padding: 48px 0; border-bottom: 1px solid var(--line); }
.csec:last-of-type { border-bottom: 0; }
.prose { font-size: 16px; color: var(--ink-2); max-width: 70ch; margin: 0 0 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--cyan-dim); font-style: normal; }

.tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 18px; }
.tabcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; transition: border-color .16s ease, transform .15s ease; }
.tabcard:hover { border-color: rgba(52,224,208,0.35); transform: translateY(-2px); }
.tabcard__name { display: flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--ink); margin: 0 0 7px; }
.tabcard__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none; }
.tabcard__desc { font-size: 13.5px; color: var(--muted); margin: 0; }

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 6px 0 22px; }
.mode { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 16px 18px; }
.mode__name { display: block; font-family: var(--f-mono); font-weight: 700; font-size: 14px; color: var(--amber); margin-bottom: 6px; }
.mode__desc { display: block; font-size: 13.5px; color: var(--ink-2); }

.deflist { margin: 0 0 8px; display: grid; gap: 12px; }
.def { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.def dt { font-family: var(--f-display); font-weight: 600; font-size: 15.5px; color: var(--ink); margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
.def dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.def__tag {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--cyan-dim); background: rgba(52,224,208,0.1);
  border: 1px solid rgba(52,224,208,0.2); padding: 2px 7px; border-radius: 5px;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.capsule { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; transition: border-color .16s ease, transform .15s ease; }
.capsule:hover { border-color: rgba(245,181,61,0.35); transform: translateY(-2px); }
.capsule__h { font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--ink); margin: 0 0 9px; }
.capsule p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* =========================================================================
   TROUBLESHOOTING — FIX ACCORDION
   ========================================================================= */
.fixgroup { margin: 36px 0; }
.fixgroup__title {
  font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: var(--ink);
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 11px;
}
.fixgroup__title::before { content: ""; width: 4px; height: 20px; border-radius: 3px; background: var(--cyan); }

.fix { background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; margin-bottom: 12px; overflow: hidden; transition: border-color .16s ease; }
.fix[open] { border-color: rgba(52,224,208,0.32); }
.fix__q {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  padding: 18px 20px; font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--ink);
  transition: background .15s ease;
}
.fix__q::-webkit-details-marker { display: none; }
.fix__q:hover { background: rgba(124,146,178,0.05); }
.fix__qtext { flex: 1; min-width: 0; }
.fix__tag {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--amber); background: rgba(245,181,61,0.1);
  border: 1px solid rgba(245,181,61,0.2); padding: 3px 8px; border-radius: 5px; flex: none;
}
.fix__chev { flex: none; color: var(--muted); transition: transform .22s ease, color .15s ease; display: grid; place-items: center; }
.fix[open] .fix__chev { transform: rotate(180deg); color: var(--cyan); }
.fix__a { padding: 0 20px 20px; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 16px; }
.fix__a > :first-child { margin-top: 0; }
.fix__a > :last-child { margin-bottom: 0; }
.fix__a p { margin: 0 0 12px; }
.fix__a strong { color: var(--ink); font-weight: 600; }

/* =========================================================================
   NEXT-UP BAND
   ========================================================================= */
.nextup .wrap { text-align: center; max-width: 720px; }
.nextup__kick {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--mint); margin: 0 0 12px;
}
.nextup__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--ink); margin: 0 0 12px; letter-spacing: -0.3px; }
.nextup__lede { font-size: 16px; color: var(--muted); margin: 0 auto 26px; max-width: 56ch; }

/* =========================================================================
   PAGER
   ========================================================================= */
.pager { max-width: var(--wrap); margin: 0 auto; padding: 30px 24px 8px; display: flex; gap: 16px; justify-content: space-between; }
.pager__slot { flex: 1; }
.pager__btn {
  flex: 1; max-width: 340px; display: flex; flex-direction: column; gap: 5px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 16px 20px; transition: transform .15s ease, border-color .18s ease, background .18s ease;
}
.pager__btn--next { align-items: flex-end; text-align: right; margin-left: auto; }
.pager__btn:hover { border-color: var(--cyan); background: var(--surface-2); transform: translateY(-2px); }
.pager__kick { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.5px; }
.pager__title { display: flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.pager__phase { font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--amber); background: rgba(245,181,61,0.1); padding: 2px 6px; border-radius: 5px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.sitefoot { border-top: 1px solid var(--line-2); margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(12,17,25,0.6)); }
.sitefoot__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 40px 24px;
  display: flex; gap: 30px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
}
.sitefoot__brand { display: flex; align-items: center; gap: 13px; }
.sitefoot__mark { flex: none; }
.sitefoot__title { font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 3px; }
.sitefoot__by { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); margin: 0; }
.sitefoot__by strong { color: var(--amber); font-weight: 500; }
.sitefoot__alt { color: var(--muted-2); }
.sitefoot__meta { max-width: 50ch; }
.sitefoot__meta p { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.sitefoot__sub { font-size: 12px; color: var(--muted-2); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sitefoot__count { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); color: var(--cyan-dim); }
.sitefoot__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: pip 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .sitefoot__dot { animation: none; } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .hero { padding: 44px 0 20px; }
  .payloads { grid-template-columns: 1fr; }
  .reqs { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .band { padding: 48px 0; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
  .step__node { width: 36px; height: 36px; border-radius: 10px; }
  .step__num { font-size: 14px; }
  .step__content { padding-bottom: 36px; }
  .phase__link { gap: 14px; padding: 18px 18px; }
  .phase__num { font-size: 24px; width: 34px; }
  .payload { flex-direction: column; gap: 14px; }
  .payload__facts { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .pager__btn { max-width: none; }
  .pager__btn--next { align-items: flex-start; text-align: left; }
  .sitefoot__inner { flex-direction: column; gap: 22px; }
  .tree__note { display: none; }
  .code__pre { font-size: 12.5px; }
}
@media (max-width: 420px) {
  .wrap, .hero__grid { padding-inline: 18px; }
  .chainwrap { padding: 20px 18px 18px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

/* print */
@media print {
  .topbar, .navtoggle, .pager, .nextup, .hero__cta, .shot__zoom, .lb { display: none !important; }
  body { background: #fff; color: #111; }
  .step__text, .prose, .callout__text { color: #222; }
}

/* =========================================================================
   DOWNLOAD BUTTON
   ========================================================================= */
.dl {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  background: linear-gradient(180deg, rgba(52,224,208,0.08), rgba(52,224,208,0.03));
  border: 1px solid rgba(52,224,208,0.28); border-radius: 11px;
  padding: 14px 18px; color: var(--ink);
  transition: transform .15s ease, border-color .18s ease, box-shadow .2s ease, background .18s ease;
}
.dl:hover {
  color: var(--ink); transform: translateY(-2px);
  border-color: var(--cyan); box-shadow: 0 16px 34px -18px rgba(52,224,208,0.6);
  background: linear-gradient(180deg, rgba(52,224,208,0.12), rgba(52,224,208,0.05));
}
.dl__icon {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; color: #052320; background: var(--cyan);
}
.dl__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl__label { font-family: var(--f-display); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.dl__file { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); word-break: break-all; }
.dl__size {
  flex: none; font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--cyan-dim);
  background: rgba(52,224,208,0.1); border: 1px solid rgba(52,224,208,0.2);
  padding: 5px 11px; border-radius: 999px;
}
@media (max-width: 480px) {
  .dl { gap: 11px; padding: 12px 13px; }
  .dl__size { display: none; }
}

/* =========================================================================
   "PREPARED FOR TWO POINT CAMPUS" ACCENTS
   ========================================================================= */
.payload__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.4px; color: var(--amber);
  background: rgba(245,181,61,0.1); border: 1px solid rgba(245,181,61,0.28);
  padding: 5px 11px; border-radius: 999px;
  margin: 0 0 12px;
}
.payload__badge svg { flex: none; }

.chip--accent {
  color: #2a1c02; background: var(--amber); border-color: var(--amber);
}
.chip--accent b { color: #4a3304; }
