@font-face {
  font-family: "IBM Plex Mono Local";
  src: url("assets/ibm-plex-mono-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f2ec;
  --paper-bright: #faf9f5;
  --ink: #11110f;
  --lime: #a7ff58;
  --lime-deep: #6fd62d;
  --muted: #66645f;
  --soft: #dfdcd4;
  --line: rgba(17, 17, 15, 0.22);
  --mono: "IBM Plex Mono Local", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
code, pre { font-family: var(--mono); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 12px 3.6vw;
  border-bottom: 1px solid var(--ink);
  background: rgba(244, 242, 236, 0.78);
  backdrop-filter: blur(18px) saturate(1.25);
}
.brand { width: 142px; line-height: 0; }
.brand img, .footer-brand img { display: block; width: 100%; height: auto; }
.site-header nav { display: flex; gap: 30px; font-family: var(--mono); font-size: 11px; }
.site-header nav a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.mode-toggle {
  justify-self: end;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}
.mode-toggle b { padding: 4px 6px; background: var(--lime); font-weight: 500; }
.teacher-mode .mode-toggle { color: white; background: var(--ink); }
.teacher-mode .mode-toggle b { color: var(--ink); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
  min-height: calc(100svh - 76px);
  border-bottom: 1px solid var(--ink);
  background: #efefec;
}
.wave-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::before, .hero::after { position: absolute; inset: 0; z-index: 1; pointer-events: none; content: ""; }
.hero::before {
  background:
    linear-gradient(90deg, rgba(244,242,236,.98) 0%, rgba(244,242,236,.89) 37%, rgba(244,242,236,.32) 64%, transparent 82%),
    linear-gradient(180deg, rgba(244,242,236,.18), transparent 38%, rgba(244,242,236,.1));
}
.hero::after { opacity: .44; background: radial-gradient(circle at 53% 46%, transparent 33%, rgba(96,104,111,.18) 100%); mix-blend-mode: multiply; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 10vh 4vw 7vh 4.2vw; }
.eyebrow, .section-index, .route-head, .stage-header > div, .teacher-note > span, .resource-list article > span, .resource-list a > span, .prompt-toolbar, .finish-card > span, .footer-links > span, .footer-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow span { display: inline-block; margin-right: 10px; padding: 5px 8px; background: var(--lime); }
.hero h1 {
  max-width: 970px;
  margin: 5vh 0 3.5vh;
  font-family: var(--serif);
  font-size: clamp(64px, 7.1vw, 118px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.07em;
  text-shadow: -1px 0 rgba(255,72,96,.16), 1px 0 rgba(30,139,255,.16);
}
.hero h1 em { font-style: normal; box-shadow: inset 0 -.12em 0 var(--lime); }
.hero-lead { max-width: 660px; margin: 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 218px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}
.button-dark { color: white; background: var(--ink); }
.button-dark:hover, .button-dark:focus-visible { color: var(--ink); background: var(--lime); }
.text-link { font-size: 12px; text-underline-offset: 5px; }
.hero-route {
  position: relative;
  z-index: 2;
  align-self: center;
  margin: 4vw 4.2vw 4vw 0;
  padding: 24px;
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(17,17,15,.92);
  box-shadow: 0 32px 90px rgba(17,17,15,.24);
  backdrop-filter: blur(18px);
}
.route-head { display: flex; justify-content: space-between; color: #aaa8a2; }
.route-head strong { color: var(--lime); font-weight: 500; }
.hero-route ol { margin: 38px 0 28px; padding: 0; border-top: 1px solid #55544f; list-style: none; }
.hero-route li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #55544f; }
.hero-route li > span, .hero-route li > small { font-family: var(--mono); font-size: 10px; color: #9c9a94; }
.hero-route li > p { margin: 0; font-family: var(--serif); font-size: 21px; }
.route-note { margin: 0; color: #aaa8a2; font-size: 11px; line-height: 1.6; }

.orientation { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.orientation > div { min-height: 150px; padding: 24px 4.2vw; border-right: 1px solid var(--ink); }
.orientation > div:last-child { border-right: 0; background: var(--lime); }
.orientation span { font-family: var(--serif); font-size: 26px; }
.orientation p { max-width: 370px; margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.learning { padding: 11vh 4.2vw 13vh; border-bottom: 1px solid var(--ink); }
.learning-intro { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 8vw; margin-bottom: 8vh; }
.section-index { margin-bottom: 6vh; color: var(--muted); }
.section-index.light { color: rgba(255,255,255,.6); }
.learning h2, .install h2, .community h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 92px); line-height: 1; letter-spacing: -.06em; }
.learning-intro-copy > p { margin: 0; color: var(--muted); line-height: 1.75; }
.course-how { display: grid; grid-template-columns: 180px 1fr; margin: -4vh 0 34px; border: 1px solid var(--ink); background: var(--lime); }
.course-how > strong { display: flex; align-items: center; padding: 18px; border-right: 1px solid var(--ink); font-family: var(--mono); font-size: 10px; }
.course-how ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.course-how li { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 8px; min-height: 72px; padding: 12px; border-right: 1px solid var(--ink); }
.course-how li:last-child { border-right: 0; }
.course-how li b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--lime); background: var(--ink); font-family: var(--mono); font-size: 9px; }
.course-how li span { font-size: 11px; line-height: 1.4; }
.teacher-mode-hint { margin-top: 24px; padding: 16px; color: var(--ink); background: var(--lime); }
.teacher-mode-hint strong, .teacher-mode-hint span { display: block; }
.teacher-mode-hint span { margin-top: 5px; font-size: 12px; line-height: 1.5; }
.teacher-only { display: none !important; }
.teacher-mode .teacher-only { display: block !important; }

.lesson-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); align-items: start; gap: 4vw; }
.lesson-sidebar { position: sticky; top: 104px; border: 1px solid var(--ink); background: rgba(250,249,245,.72); backdrop-filter: blur(12px); }
.lesson-progress { padding: 17px; border-bottom: 1px solid var(--ink); }
.lesson-progress > span { font-family: var(--mono); font-size: 11px; }
.progress-track { height: 7px; margin-top: 12px; border: 1px solid var(--ink); }
.progress-track i { display: block; width: 0; height: 100%; background: var(--lime-deep); transition: width 220ms ease; }
.lesson-nav { margin: 0; padding: 0; list-style: none; }
.lesson-nav li { border-bottom: 1px solid var(--line); }
.lesson-nav button { display: grid; grid-template-columns: 34px 1fr; width: 100%; padding: 15px 14px; border: 0; text-align: left; background: transparent; cursor: pointer; }
.lesson-nav button > span { grid-row: 1 / 3; font-family: var(--mono); font-size: 11px; }
.lesson-nav button strong { font-family: var(--serif); font-size: 19px; }
.lesson-nav button small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.lesson-nav button:hover { background: var(--soft); }
.lesson-nav button[aria-current="step"] { background: var(--lime); }
.lesson-nav button.completed > span::after { display: block; margin-top: 6px; content: "✓"; color: #327400; }
.reset-progress { width: 100%; padding: 14px; border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 9px; cursor: pointer; }

.stage-stack { min-width: 0; }
.lesson-stage { border: 1px solid var(--ink); background: var(--paper-bright); }
.lesson-stage[hidden] { display: none; }
.stage-header { padding: 34px 3.3vw 38px; border-bottom: 1px solid var(--ink); }
.stage-header > div { display: flex; justify-content: space-between; color: var(--muted); }
.stage-header > div b { color: var(--ink); font-weight: 500; }
.stage-header h3 { max-width: 930px; margin: 54px 0 24px; font-family: var(--serif); font-size: clamp(40px, 5vw, 76px); line-height: 1.04; letter-spacing: -.055em; }
.stage-header p { max-width: 720px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.teacher-note { padding: 24px 3.3vw; border-bottom: 1px solid var(--ink); background: var(--lime); }
.teacher-note > span { display: block; margin-bottom: 15px; }
.teacher-note ol { margin: 0 0 18px; padding-left: 22px; }
.teacher-note li { padding: 4px 0; line-height: 1.55; }
.teacher-note > b { font-size: 12px; }

.visual-guide { display: grid; grid-template-columns: minmax(285px, .78fr) minmax(0, 1.22fr); border-bottom: 1px solid var(--ink); }
.guide-copy { display: flex; flex-direction: column; padding: 34px 3.3vw; border-right: 1px solid var(--ink); background: var(--soft); }
.guide-kicker { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .08em; }
.guide-now { margin: 18px 0 0; padding: 16px; color: var(--ink); background: var(--lime); font-size: 13px; line-height: 1.55; }
.guide-now span { display: block; margin-bottom: 7px; font-family: var(--mono); font-size: 9px; }
.guide-copy h4 { max-width: 480px; margin: 28px 0 20px; font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.guide-copy ol { margin: 0; padding: 0; list-style: none; }
.guide-copy li { display: grid; grid-template-columns: 27px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.guide-copy li > b, .mock-result > b, .asset-card > b, .builder-simple b, .score-proof b, .public-link > b, .delivery-files > span:first-child > b, .next-note > b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-family: var(--mono); font-size: 9px; font-style: normal; }
.guide-copy li strong { display: block; padding-top: 3px; font-size: 13px; }
.guide-copy li p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.guide-done { margin: auto 0 0; padding: 24px 0 0; border-top: 1px solid var(--ink); font-size: 12px; line-height: 1.65; }
.guide-done span { display: block; margin-bottom: 7px; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.guide-visual { display: flex; flex-direction: column; min-width: 0; min-height: 500px; margin: 0; padding: 28px; overflow: hidden; color: #f5f3ed; background: #171715; }
.guide-visual figcaption { margin-top: 14px; color: #8e8d87; font-family: var(--mono); font-size: 8px; line-height: 1.5; letter-spacing: .04em; }
.guide-window, .builder-window { display: flex; flex: 1; flex-direction: column; min-width: 0; border: 1px solid #55544f; background: #222220; }
.window-bar, .builder-top { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; border-bottom: 1px solid #55544f; color: #a9a7a0; font-family: var(--mono); font-size: 8px; }
.window-bar span { margin-right: auto; }
.window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #64635e; }

.mock-choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 14px; }
.mock-choice-row span { position: relative; min-height: 54px; padding: 30px 8px 8px; border: 1px solid #55544f; color: #96958e; font-size: 9px; }
.mock-choice-row span.active { border-color: var(--lime); color: var(--ink); background: var(--lime); }
.mock-choice-row span b { position: absolute; top: 7px; left: 8px; font-family: var(--mono); font-size: 9px; }
.mock-fields { display: grid; grid-template-columns: 1.35fr .65fr 1fr; gap: 7px; padding: 0 14px 14px; }
.mock-fields > span { min-width: 0; padding: 12px; border: 1px solid #55544f; }
.mock-fields small, .mock-result small { display: block; margin-bottom: 18px; color: #87867f; font-family: var(--mono); font-size: 7px; }
.mock-fields strong { display: block; font-family: var(--serif); font-size: 14px; line-height: 1.25; }
.mock-result { position: relative; flex: 1; margin: 0 14px 14px; padding: 20px 20px 20px 54px; color: var(--ink); background: #f2f0e9; }
.mock-result > b { position: absolute; top: 18px; left: 18px; }
.mock-result p { max-width: 500px; margin: 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 31px); line-height: 1.2; letter-spacing: -.03em; }

.asset-board { display: grid; flex: 1; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.asset-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 230px; padding: 16px; border: 1px solid #55544f; background: #222220; }
.asset-card.accent { color: var(--ink); background: var(--lime); }
.asset-card.boundary { background: #ece8df; color: var(--ink); }
.asset-card > b { position: absolute; top: 14px; right: 14px; }
.asset-card > span { font-family: var(--mono); font-size: 8px; }
.asset-card strong { margin-top: auto; font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.asset-card small { margin-top: 8px; color: #85847e; font-family: var(--mono); font-size: 7px; }
.asset-line { grid-column: 1 / -1; display: grid; grid-template-columns: 50px 1fr minmax(150px, auto); align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 1px solid #55544f; font-size: 9px; }
.asset-line span { font-family: var(--mono); color: var(--lime); }
.asset-line i { height: 1px; background: #55544f; }
.asset-line.muted { color: #86857e; }
.asset-line.muted span { color: #86857e; text-decoration: line-through; }

.prompt-sheet { display: flex; flex: 1; flex-direction: column; padding: 22px; color: var(--ink); background: #f2f0e9; }
.sheet-head { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 8px; }
.sheet-head b { color: #477400; }
.prompt-sheet > p { display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin: 0; padding: 19px 0; border-bottom: 1px solid #ceccc5; font-family: var(--serif); font-size: 16px; line-height: 1.4; }
.prompt-sheet p i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--lime); font-family: var(--mono); font-size: 9px; font-style: normal; }
.prompt-sheet p small { display: block; margin-bottom: 7px; color: #77756f; font-family: var(--mono); font-size: 7px; }
.sheet-checks { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 20px; }
.sheet-checks span { padding: 7px 9px; background: var(--lime); font-family: var(--mono); font-size: 8px; }

.builder-top { justify-content: space-between; }
.builder-simple { display: grid; flex: 1; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; padding: 26px; }
.builder-simple > div { display: flex; flex-direction: column; min-height: 220px; padding: 18px; border: 1px solid #55544f; }
.builder-simple > i { text-align: center; color: var(--lime); font-family: var(--serif); font-size: 27px; font-style: normal; }
.builder-simple span { margin-top: auto; color: var(--lime); font-family: var(--mono); font-size: 9px; }
.builder-simple strong { margin-top: 12px; font-family: var(--serif); font-size: clamp(17px, 2vw, 24px); line-height: 1.2; }
.builder-result { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 18px 24px; color: var(--ink); background: var(--lime); }
.builder-result span { font-family: var(--mono); font-size: 8px; }
.builder-result strong { font-family: var(--serif); font-size: 17px; line-height: 1.35; }
.device button { margin-top: auto; padding: 11px; border: 0; color: var(--ink); background: var(--lime); font-family: var(--mono); font-size: 8px; }

.device-check { display: grid; flex: 1; grid-template-columns: 1fr 122px; gap: 12px; min-height: 0; }
.device { display: flex; flex-direction: column; min-width: 0; padding: 10px; border: 1px solid #55544f; background: #232321; }
.device > span { padding-bottom: 9px; color: #9b9993; font-family: var(--mono); font-size: 7px; }
.device > div { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 14px; color: var(--ink); background: linear-gradient(145deg, #f0eee8 0 58%, #d1ff75 58%); }
.device small { font-family: var(--mono); font-size: 7px; }
.device strong { max-width: 260px; margin: 18px 0; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 34px); line-height: 1.05; }
.device button { align-self: flex-start; margin-top: 0; color: white; background: var(--ink); }
.device.phone { border-radius: 16px; }
.device.phone > div { padding: 10px; }
.device.phone strong { font-size: 17px; }
.score-proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border: 1px solid #55544f; }
.score-proof span { display: flex; align-items: center; gap: 8px; min-height: 47px; padding: 8px; border-right: 1px solid #55544f; font-family: var(--mono); font-size: 8px; }
.score-proof span:last-child { border-right: 0; }
.score-proof .fix { color: var(--ink); background: var(--lime); }

.delivery-board { display: grid; flex: 1; grid-template-columns: 1fr; gap: 9px; }
.public-link { position: relative; display: grid; grid-template-columns: 1fr auto; align-content: center; min-height: 100px; padding: 18px 18px 18px 58px; border: 1px solid #55544f; background: #222220; }
.public-link > b { position: absolute; top: 18px; left: 18px; }
.public-link span, .next-note span { color: #96958e; font-family: var(--mono); font-size: 7px; }
.public-link strong { grid-column: 1 / -1; margin-top: 10px; font-family: var(--serif); font-size: clamp(16px, 2vw, 24px); word-break: break-all; }
.public-link i { grid-column: 2; grid-row: 1; color: var(--lime); font-family: var(--mono); font-size: 8px; font-style: normal; }
.delivery-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.delivery-files > span { position: relative; display: flex; flex-direction: column; min-height: 135px; padding: 14px; border: 1px solid #55544f; }
.delivery-files > span:first-child > b { position: absolute; top: 11px; right: 11px; }
.delivery-files i { align-self: flex-start; padding: 4px 6px; color: var(--ink); background: #ece8df; font-family: var(--mono); font-size: 7px; font-style: normal; }
.delivery-files strong { margin-top: auto; font-family: var(--serif); font-size: 16px; word-break: break-all; }
.delivery-files small { margin-top: 6px; color: #87867f; font-family: var(--mono); font-size: 7px; }
.next-note { position: relative; min-height: 100px; padding: 18px 18px 18px 58px; color: var(--ink); background: var(--lime); }
.next-note > b { position: absolute; top: 18px; left: 18px; background: var(--ink); color: var(--lime); }
.next-note p { margin: 13px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.25; }

fieldset { margin: 0; min-width: 0; }
.template-picker { display: grid; grid-template-columns: repeat(3, 1fr); padding: 34px 3.3vw; border: 0; border-bottom: 1px solid var(--ink); }
.template-picker legend, .run-checklist legend { width: 100%; padding: 26px 3.3vw 0; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.template-picker label { position: relative; min-height: 170px; padding: 18px; border: 1px solid var(--ink); border-right: 0; cursor: pointer; }
.template-picker label:last-child { border-right: 1px solid var(--ink); }
.template-picker input { position: absolute; top: 15px; right: 15px; accent-color: var(--ink); }
.template-picker label:has(input:checked) { background: var(--lime); }
.template-picker label span { display: flex; flex-direction: column; height: 100%; }
.template-picker b { margin-top: auto; font-family: var(--serif); font-size: 25px; }
.template-picker small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.5; }

.guided-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 3vw; padding: 42px 3.3vw; border-bottom: 1px solid var(--ink); }
.guided-form label > span { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 10px; }
.guided-form input { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: none; background: transparent; font-size: 15px; }
.guided-form input:focus { border-bottom-width: 3px; border-color: var(--lime-deep); }
.guided-form input::placeholder { color: #9a9891; }
.compact-form .full { grid-column: 1 / -1; }
.stage-checkpoint { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding: 24px 3.3vw; border-bottom: 1px solid var(--ink); background: var(--soft); }
.stage-checkpoint strong { font-family: var(--mono); font-size: 10px; }
.stage-checkpoint p { margin: 0; line-height: 1.6; }
.stage-footer { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding-left: 3.3vw; background: var(--ink); color: white; }
.stage-footer > span { font-family: var(--mono); font-size: 10px; color: #aaa8a2; }
.stage-footer button { align-self: stretch; min-width: 260px; padding: 0 24px; border: 0; border-left: 1px solid #5b5a55; background: transparent; color: white; font-family: var(--mono); font-size: 10px; cursor: pointer; }
.stage-footer button:hover, .stage-footer button:focus-visible { color: var(--ink); background: var(--lime); }
.stage-footer .previous-stage { min-width: auto; margin-right: auto; border-left: 0; border-right: 1px solid #5b5a55; }
.stage-footer .next-stage b { margin-left: 18px; color: var(--lime); }
.stage-footer .next-stage:hover b { color: var(--ink); }

.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 38px 3.3vw; border-bottom: 1px solid var(--ink); }
.check-card { position: relative; min-height: 175px; padding: 18px; border: 1px solid var(--ink); border-right: 0; cursor: pointer; }
.check-card:last-child { border-right: 1px solid var(--ink); }
.check-card input { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; accent-color: var(--ink); }
.check-card:has(input:checked) { background: var(--lime); }
.check-card span { display: flex; flex-direction: column; height: 100%; }
.check-card b { margin-top: auto; font-family: var(--serif); font-size: 22px; }
.check-card small { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.resource-block { padding: 46px 3.3vw; border-bottom: 1px solid var(--ink); }
.resource-title { display: grid; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 24px; }
.resource-title span { font-family: var(--serif); font-size: 35px; }
.resource-title p { margin: 0; color: var(--muted); text-align: right; }
.resource-list { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.resource-list article, .resource-list a { display: flex; flex-direction: column; min-height: 285px; padding: 20px; border-right: 1px solid var(--ink); text-decoration: none; }
.resource-list > :last-child { border-right: 0; }
.resource-list a:hover { background: var(--lime); }
.resource-list h4 { margin: 48px 0 15px; font-family: var(--serif); font-size: 28px; }
.resource-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.resource-list b { margin-top: auto; padding-top: 28px; font-family: var(--mono); font-size: 9px; }
.license-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.prompt-card { margin: 42px 3.3vw; border: 1px solid var(--ink); color: #eae8e2; background: var(--ink); }
.prompt-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #55544f; color: #aaa8a2; }
.copy-button { padding: 7px 10px; border: 1px solid currentColor; color: inherit; background: transparent; font-family: var(--mono); font-size: 9px; cursor: pointer; }
.copy-button:hover, .copy-button:focus-visible { color: var(--ink); background: var(--lime); }
.prompt-card pre, .truth-note pre { margin: 0; padding: 24px; white-space: pre-wrap; word-break: break-word; font-size: 11px; line-height: 1.8; }
.generated-card pre { min-height: 340px; }

.prompt-anatomy { display: grid; grid-template-columns: repeat(6, 1fr); padding: 40px 3.3vw; border-bottom: 1px solid var(--ink); }
.prompt-anatomy > div { display: flex; flex-direction: column; min-height: 160px; padding: 14px; border: 1px solid var(--ink); border-right: 0; }
.prompt-anatomy > div:last-child { border-right: 1px solid var(--ink); background: var(--lime); }
.prompt-anatomy span, .prompt-anatomy small { font-family: var(--mono); font-size: 9px; }
.prompt-anatomy b { margin-top: auto; font-family: var(--serif); font-size: 22px; }
.prompt-anatomy small { margin-top: 6px; color: var(--muted); }

.tool-lanes { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.tool-lanes > article { padding: 38px 3.3vw; border-right: 1px solid var(--ink); }
.tool-lanes > article:last-child { border-right: 0; background: #ece9e1; }
.tool-lanes > article > span { display: inline-block; padding: 5px 8px; background: var(--lime); font-family: var(--mono); font-size: 10px; }
.tool-lanes h4 { margin: 36px 0 28px; font-family: var(--serif); font-size: 31px; }
.tool-lanes ol { margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.tool-lanes li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tool-lanes li b { font-family: var(--mono); font-size: 10px; }
.tool-lanes li p { margin: 0; font-size: 13px; line-height: 1.6; }
.run-checklist { padding: 12px 3.3vw 38px; border: 0; border-bottom: 1px solid var(--ink); }
.run-checklist legend { padding-left: 0; padding-right: 0; }
.run-checklist label { display: grid; grid-template-columns: 32px 1fr; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); cursor: pointer; }
.run-checklist input { width: 20px; height: 20px; accent-color: var(--lime-deep); }

.score-board { display: grid; grid-template-columns: 1.2fr .8fr; padding: 36px 3.3vw; color: white; background: var(--ink); }
.score-board > div:first-child { display: flex; flex-direction: column; }
.score-board > div:first-child > span { font-family: var(--mono); font-size: 10px; color: #aaa8a2; }
.score-board strong { margin-top: 18px; font-family: var(--serif); font-size: 58px; }
.score-board strong b { color: var(--lime); font-weight: 400; }
.score-board > p { align-self: center; margin: 0; font-family: var(--serif); font-size: 28px; }
.score-scale { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid #55544f; }
.score-scale span { padding-top: 12px; color: #aaa8a2; font-family: var(--mono); font-size: 9px; }
.score-scale span:last-child { color: var(--lime); }
.rubric-row { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(390px, .8fr); align-items: center; gap: 30px; min-height: 128px; padding: 22px 3.3vw; border-bottom: 1px solid var(--ink); }
.rubric-row > div:first-child span { display: block; margin-bottom: 12px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.rubric-row > div:first-child strong { font-family: var(--serif); font-size: 23px; }
.score-options { display: grid; grid-template-columns: repeat(3, 1fr); }
.score-options label { position: relative; min-height: 66px; border: 1px solid var(--ink); border-right: 0; cursor: pointer; }
.score-options label:last-child { border-right: 1px solid var(--ink); }
.score-options input { position: absolute; opacity: 0; }
.score-options span { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--mono); font-size: 9px; }
.score-options label:has(input:checked) span { color: var(--ink); background: var(--lime); }
.score-advice { background: var(--lime); }

.delivery-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 40px 3.3vw; border-bottom: 1px solid var(--ink); }
.delivery-grid article { display: flex; flex-direction: column; min-height: 240px; padding: 17px; border: 1px solid var(--ink); border-right: 0; }
.delivery-grid article:last-child { border-right: 1px solid var(--ink); background: var(--lime); }
.delivery-grid span { font-family: var(--mono); font-size: 10px; }
.delivery-grid h4 { margin: auto 0 14px; font-family: var(--serif); font-size: 27px; }
.delivery-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.truth-note { margin: 42px 3.3vw; color: #eae8e2; background: var(--ink); }
.truth-note > div { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #55544f; font-family: var(--mono); font-size: 10px; color: #aaa8a2; }
.finish-card { margin: 42px 3.3vw; padding: 34px; border: 1px solid var(--ink); background: var(--lime); }
.finish-card h4 { margin: 70px 0 20px; font-family: var(--serif); font-size: clamp(32px, 4vw, 58px); }
.finish-card p { max-width: 700px; margin: 0; line-height: 1.7; }

.install { padding: 12vh 4.2vw; border-bottom: 1px solid var(--ink); }
.install-card { display: grid; grid-template-columns: 130px 1fr .68fr; min-height: 510px; border: 1px solid var(--ink); }
.install-mark { padding: 22px; border-right: 1px solid var(--ink); background: var(--lime); }
.install-mark img { display: block; width: 100%; }
.install-main { display: flex; flex-direction: column; align-items: flex-start; padding: 36px 3.2vw; border-right: 1px solid var(--ink); }
.install-main .section-index { margin-bottom: auto; }
.install-main h2 { margin: 40px 0 25px; font-size: clamp(44px, 5vw, 78px); }
.install-main p { max-width: 590px; margin: 0 0 30px; color: var(--muted); line-height: 1.7; }
.button-lime { min-width: 280px; background: var(--lime); }
.button-lime:hover { color: white; background: var(--ink); }
.install-steps { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 30px; background: var(--soft); list-style: none; }
.install-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.install-steps span, .install-steps code { font-family: var(--mono); font-size: 10px; }
.install-steps p { margin: 0; line-height: 1.6; }

.community { display: grid; grid-template-columns: 1.25fr .75fr; gap: 7vw; padding: 12vh 4.2vw; color: white; background: var(--ink); }
.community-copy > p { max-width: 680px; margin: 34px 0 0; color: #aaa8a2; line-height: 1.75; }
.social-actions { margin-top: 38px; }
.button-light { color: var(--ink); background: var(--paper); }
.button-light:hover { background: var(--lime); }
.social-actions p { max-width: 450px; margin: 12px 0 0; color: #888782; font-size: 10px; line-height: 1.5; }
.community-qr { align-self: center; padding: 22px; border: 1px solid #55544f; }
.community-qr img { display: block; width: min(100%, 360px); margin: 0 auto; }
.community-qr > div { padding-top: 18px; }
.community-qr strong { font-family: var(--serif); font-size: 25px; }
.community-qr p { margin: 8px 0 0; color: #aaa8a2; font-size: 10px; line-height: 1.6; }

footer { display: grid; grid-template-columns: 1fr .72fr; gap: 8vw; padding: 8vh 4.2vw 3vh; color: white; background: #0b0b0a; }
.footer-brand img { width: 210px; filter: invert(1); }
.footer-brand p { margin: 38px 0 0; font-family: var(--serif); font-size: clamp(25px, 3vw, 43px); }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-links > span { margin-bottom: 14px; color: #777670; }
.footer-links a { color: #d9d7d1; font-size: 12px; text-underline-offset: 5px; }
.footer-meta { grid-column: 1 / -1; margin: 7vh 0 0; padding-top: 16px; border-top: 1px solid #44433f; color: #777670; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; padding: 12px 17px; color: var(--ink); background: var(--lime); font-family: var(--mono); font-size: 10px; opacity: 0; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid #ff5e3a; outline-offset: 3px; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(244,242,236,.96) 0%, rgba(244,242,236,.72) 50%, rgba(244,242,236,.18) 74%); }
  .hero-copy { min-height: 720px; }
  .hero-route { margin: 0 4.2vw 4.2vw; }
  .lesson-layout { grid-template-columns: 230px 1fr; gap: 3vw; }
  .visual-guide { grid-template-columns: 1fr; }
  .guide-copy { border-right: 0; border-bottom: 1px solid var(--ink); }
  .guide-done { margin-top: 24px; }
  .guide-visual { min-height: 470px; }
  .prompt-anatomy { grid-template-columns: repeat(3, 1fr); }
  .prompt-anatomy > div:nth-child(3) { border-right: 1px solid var(--ink); }
  .prompt-anatomy > div:nth-child(-n + 3) { border-bottom: 0; }
  .delivery-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid article:nth-child(2) { border-right: 1px solid var(--ink); }
  .delivery-grid article:nth-child(-n + 2) { border-bottom: 0; }
  .install-card { grid-template-columns: 100px 1fr; }
  .install-main { border-right: 0; }
  .install-steps { grid-column: 1 / -1; border-top: 1px solid var(--ink); }
}

@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 10px 16px; }
  .brand { width: 108px; }
  .mode-toggle { gap: 6px; padding: 7px; }
  .mode-toggle span { display: none; }
  .hero { min-height: auto; }
  .hero-copy { min-height: calc(100svh - 64px); padding: 11vh 18px 48px; }
  .hero h1 { margin: 35px 0 30px; font-size: clamp(51px, 15.5vw, 72px); line-height: .96; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .hero-route { margin: 0 16px 24px; padding: 18px; backdrop-filter: blur(10px); }
  .hero-route li { padding: 13px 0; }
  .hero-route li > p { font-size: 19px; }
  .orientation { grid-template-columns: 1fr; }
  .orientation > div { min-height: 130px; padding: 22px 18px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .orientation > div:last-child { border-bottom: 0; }
  .learning { padding: 10vh 18px; }
  .learning-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 50px; }
  .learning h2, .install h2, .community h2 { font-size: 47px; }
  .section-index { margin-bottom: 50px; }
  .course-how { grid-template-columns: 1fr; margin: 0 0 24px; }
  .course-how > strong { border-right: 0; border-bottom: 1px solid var(--ink); }
  .course-how ol { grid-template-columns: repeat(2, 1fr); }
  .course-how li { border-bottom: 1px solid var(--ink); }
  .course-how li:nth-child(2n) { border-right: 0; }
  .course-how li:nth-last-child(-n + 2) { border-bottom: 0; }
  .lesson-layout { display: block; }
  .lesson-sidebar { position: static; margin-bottom: 22px; }
  .lesson-nav { display: grid; grid-template-columns: repeat(6, minmax(72px, 1fr)); overflow-x: auto; scrollbar-width: thin; }
  .lesson-nav li { border-right: 1px solid var(--line); border-bottom: 0; }
  .lesson-nav button { display: flex; flex-direction: column; min-height: 92px; padding: 12px 10px; }
  .lesson-nav button > span { grid-row: auto; }
  .lesson-nav button strong { margin-top: auto; font-size: 16px; }
  .lesson-nav button small { display: none; }
  .reset-progress { border-top: 1px solid var(--line); }
  .stage-header { padding: 25px 18px 30px; }
  .stage-header h3 { margin: 42px 0 20px; font-size: 43px; }
  .stage-header p { font-size: 15px; }
  .teacher-note { padding: 22px 18px; }
  .guide-copy { padding: 26px 18px; }
  .guide-copy h4 { margin: 24px 0; font-size: 34px; }
  .guide-visual { min-height: 430px; padding: 14px; }
  .mock-choice-row, .mock-fields { gap: 5px; padding-left: 9px; padding-right: 9px; }
  .mock-choice-row span { min-height: 50px; padding-left: 6px; padding-right: 6px; font-size: 7px; }
  .mock-fields { grid-template-columns: 1fr; }
  .mock-fields > span { padding: 9px; }
  .mock-fields small { margin-bottom: 7px; }
  .mock-result { margin: 0 9px 9px; padding: 16px 14px 16px 48px; }
  .mock-result > b { top: 14px; left: 14px; }
  .mock-result p { font-size: 19px; }
  .asset-board { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .asset-card { min-height: 160px; padding: 10px; }
  .asset-card > b { top: 8px; right: 8px; }
  .asset-card strong { font-size: 14px; }
  .asset-card small { font-size: 6px; }
  .asset-line { grid-template-columns: 38px 1fr; gap: 7px; padding: 7px 9px; }
  .asset-line strong { grid-column: 2; font-size: 8px; }
  .prompt-sheet { padding: 16px; }
  .prompt-sheet > p { padding: 14px 0; font-size: 13px; }
  .builder-simple { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .builder-simple > div { min-height: 120px; }
  .builder-simple > i { transform: rotate(90deg); }
  .builder-result { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .device-check { grid-template-columns: 1fr 100px; gap: 7px; }
  .device { padding: 7px; }
  .device > div { padding: 10px; }
  .device strong { font-size: 19px; }
  .device.phone strong { font-size: 14px; }
  .score-proof { grid-template-columns: 1fr; }
  .score-proof span { border-right: 0; border-bottom: 1px solid #55544f; }
  .score-proof span:last-child { border-bottom: 0; }
  .delivery-files { gap: 5px; }
  .delivery-files > span { min-height: 120px; padding: 9px; }
  .delivery-files strong { font-size: 12px; }
  .public-link strong { font-size: 17px; }
  .next-note p { font-size: 17px; }
  .template-picker, .material-grid { grid-template-columns: 1fr; padding: 28px 18px; }
  .template-picker legend, .run-checklist legend { padding-left: 18px; padding-right: 18px; }
  .template-picker label, .check-card { min-height: 145px; border-right: 1px solid var(--ink); border-bottom: 0; }
  .template-picker label:last-child, .check-card:last-child { border-bottom: 1px solid var(--ink); }
  .guided-form { grid-template-columns: 1fr; padding: 32px 18px; }
  .compact-form .full { grid-column: auto; }
  .stage-checkpoint { grid-template-columns: 1fr; gap: 10px; padding: 22px 18px; }
  .stage-footer { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; padding-left: 0; }
  .stage-footer > span { grid-column: 1 / -1; width: 100%; padding: 16px 18px; border-bottom: 1px solid #55544f; }
  .stage-footer button, .stage-footer .previous-stage { align-self: auto; min-width: 0; min-height: 68px; margin: 0; padding: 0 14px; border: 0; border-right: 1px solid #55544f; }
  .stage-footer > span + .next-stage:last-child { grid-column: 1 / -1; }
  .resource-block { padding: 36px 18px; }
  .resource-title { grid-template-columns: 1fr; gap: 10px; }
  .resource-title p { text-align: left; }
  .resource-list { grid-template-columns: 1fr; }
  .resource-list article, .resource-list a { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .resource-list > :last-child { border-bottom: 0; }
  .prompt-card, .truth-note, .finish-card { margin: 32px 18px; }
  .prompt-card pre, .truth-note pre { padding: 18px; font-size: 10px; }
  .prompt-anatomy { grid-template-columns: repeat(2, 1fr); padding: 30px 18px; }
  .prompt-anatomy > div { min-height: 135px; }
  .prompt-anatomy > div:nth-child(3) { border-right: 0; }
  .prompt-anatomy > div:nth-child(2n) { border-right: 1px solid var(--ink); }
  .prompt-anatomy > div:nth-child(-n + 4) { border-bottom: 0; }
  .tool-lanes { grid-template-columns: 1fr; }
  .tool-lanes > article { padding: 32px 18px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .run-checklist { padding: 8px 18px 30px; }
  .run-checklist legend { padding-left: 0; padding-right: 0; }
  .score-board { grid-template-columns: 1fr; padding: 30px 18px; }
  .score-board > p { margin-top: 20px; }
  .score-scale { gap: 6px; }
  .rubric-row { grid-template-columns: 1fr; gap: 18px; padding: 24px 18px; }
  .score-options { width: 100%; }
  .delivery-grid { grid-template-columns: 1fr; padding: 30px 18px; }
  .delivery-grid article, .delivery-grid article:nth-child(2) { min-height: 200px; border-right: 1px solid var(--ink); border-bottom: 0; }
  .delivery-grid article:last-child { border-bottom: 1px solid var(--ink); }
  .finish-card h4 { margin-top: 50px; }
  .install { padding: 10vh 18px; }
  .install-card { grid-template-columns: 72px 1fr; }
  .install-mark { padding: 14px 10px; }
  .install-main { padding: 26px 18px; }
  .install-main .section-index { margin-bottom: 42px; }
  .button-lime { min-width: 0; }
  .community { grid-template-columns: 1fr; padding: 10vh 18px; }
  .community-qr { margin-top: 25px; }
  footer { grid-template-columns: 1fr; padding: 9vh 18px 3vh; }
  .footer-links { margin-top: 35px; }
  .footer-meta { grid-column: auto; }
}

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