:root {
  --bg: #ffffff;
  --surface: #f6f6f4;
  --surface-2: #eeeeea;
  --surface-elev: rgba(255, 255, 255, 0.94);
  --ink: #080808;
  --blue: #2600ff;
  --blue-bright: #2600ff;
  --blue-soft: rgba(38, 0, 255, 0.12);
  --blue-faint: rgba(38, 0, 255, 0.05);
  --green: #0a8754;
  --line: rgba(8, 8, 8, 0.18);
  --line-soft: rgba(8, 8, 8, 0.09);
  --muted: #5e5e58;
  --font: "Arial Narrow", "Helvetica Neue Condensed", "Aptos Narrow", "Liberation Sans Narrow", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #0b0b0b;
  --surface: #121212;
  --surface-2: #181818;
  --surface-elev: rgba(11, 11, 11, 0.94);
  --ink: #f7f7f2;
  --blue: #2600ff;
  --blue-bright: #4422ff;
  --blue-soft: rgba(38, 0, 255, 0.22);
  --blue-faint: rgba(38, 0, 255, 0.08);
  --green: #47e0a3;
  --line: rgba(255, 255, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.1);
  --muted: #a6a6a0;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-stretch: condensed;
  font-weight: 400;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

button,
input,
a {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

/* =========================================================
   TOP MINIMAL BAR (FIXED, NEVER SCROLLS AWAY)
   ========================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 54px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--surface-elev);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wordmark {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.quiet-button {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 1px;
  background: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.18s, color 0.18s, border-color 0.18s;
}

.quiet-button:hover {
  opacity: 1;
  color: var(--blue-bright);
  border-bottom-color: var(--blue-bright);
}

/* =========================================================
   PAGE CONTAINER
   ========================================================= */
.guide-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 84px 24px 120px;
}

/* =========================================================
   SECTION 0: LEAD MAGNET INTRO
   ========================================================= */
.lead-intro {
  margin-bottom: 50px;
}

.lead-p {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.48;
  color: var(--ink);
}

.lead-p strong {
  font-weight: 700;
}

.th32-brand-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: opacity 0.18s;
}

.th32-brand-link:hover {
  opacity: 0.75;
}

.lead-p-sub {
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 22px;
}

/* 8 STUDENT WORKS: 4x2 on desktop, 2x4 on mobile */
.student-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 34px;
}

.stu-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.2s, box-shadow 0.22s;
}

.stu-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(38, 0, 255, 0.25);
}

.stu-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.stu-index {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 6px;
  background: rgba(11, 11, 11, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: background-color 0.2s, border-color 0.2s;
}

.stu-card:hover .stu-index {
  background: var(--blue);
  border-color: var(--blue);
}

.stu-play-indicator {
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: rgba(11, 11, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 10px;
  opacity: 0.75;
  transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
}

.stu-card:hover .stu-play-indicator {
  opacity: 1;
  background: var(--blue);
  border-color: var(--blue);
}

/* Callout block for early list registration */
.early-list-block {
  margin: 28px 0 44px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.early-list-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.early-list-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.early-list-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}

.early-list-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.instruction-divider {
  padding-top: 36px;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}

.instruction-divider h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* =========================================================
   SEQUENTIAL VERTICAL STEPS (01 — 05)
   ========================================================= */
.step-section {
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* Clean stacked step header */
.step-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-number {
  font-size: 34px;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.step-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}

.step-lead-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.step-lead-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   STEP 01: 3 MINI CARDS (Chrome, Notion, Figma)
   ========================================================= */
.connectors-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.conn-mini-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s, border-color 0.18s;
}

.conn-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

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

.conn-icon-box {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.conn-icon-box svg {
  width: 24px;
  height: 24px;
  display: block;
}

.conn-mini-top b {
  font-size: 17px;
  line-height: 1.15;
  font-weight: 700;
}

.conn-mini-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--muted);
}

.notion-icon-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font: 700 17px Georgia, serif;
}

/* =========================================================
   STEP 02: 2 ACTION BULLETS + FOLDER TREE
   ========================================================= */
.step-actions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-action-item {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: center;
  transition: border-color 0.16s, transform 0.16s;
}

.step-action-item:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.step-action-num {
  width: 28px;
  height: 28px;
  border: 1px solid var(--blue);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-action-item b {
  display: block;
  font-size: 16.5px;
  line-height: 1.2;
}

.step-action-item p {
  margin: 3px 0 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.38;
}

.micro-folder-tree {
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.micro-folder-tree b {
  color: var(--ink);
}

.micro-folder-tree .sb-row {
  color: var(--blue);
}

/* =========================================================
   STEP 03: 2 TOGGLE CHIPS
   ========================================================= */
.checkbox-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.toggle-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s, background-color 0.18s, transform 0.16s;
}

.toggle-chip:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.toggle-chip.is-active {
  border-color: var(--blue);
  background: var(--blue-faint);
}

.toggle-box-ui {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.toggle-chip.is-active .toggle-box-ui {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.toggle-chip-copy b {
  display: block;
  font-size: 16.5px;
  line-height: 1.2;
}

.toggle-chip-copy span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.35;
}

/* =========================================================
   PROMPT TERMINAL BLOCKS (Steps 3 & 4)
   ========================================================= */
.prompt-container {
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.prompt-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prompt-badge {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.prompt-badge b {
  color: var(--blue);
}

.copy-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.copy-button.copied {
  background: var(--green);
  border-color: var(--green);
  color: #0b0b0b;
}

.prompt-box-text {
  margin: 0;
  padding: 18px 20px;
  height: 300px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  background: var(--surface);
}

.prompt-highlight {
  display: block;
  margin: 6px 0;
  padding: 6px 10px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
}

/* =========================================================
   STEP 05: USE CASES (3 Horizontal Cards)
   ========================================================= */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.use-case-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.18s, transform 0.18s;
}

.use-case-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.use-case-card span {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.use-case-card p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.44;
  color: var(--ink);
}

.copy-case-btn {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.use-case-card:hover .copy-case-btn {
  border-color: var(--blue);
  color: var(--blue);
}

/* =========================================================
   LIGHTBOX MODAL
   ========================================================= */
.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox-card {
  position: relative;
  z-index: 2;
  width: min(92vw, 560px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
}

.lightbox-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.lightbox-head button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 13.5px;
  text-transform: uppercase;
}

.lightbox-head button:hover {
  color: var(--blue);
}

.lightbox-stage {
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}

.lightbox-stage video {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  outline: none;
}

.lightbox-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

/* Responsive */
@media (max-width: 860px) {
  .student-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }

  .connectors-row,
  .use-cases-grid,
  .checkbox-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 16px;
  }

  .guide-shell {
    padding: 74px 16px 80px;
  }

  .lead-p {
    font-size: 18px;
  }

  .step-header h3 {
    font-size: 21px;
  }

  .step-number {
    font-size: 30px;
  }

  .step-lead-text {
    font-size: 16px;
  }
}
