/* ─────────────────────────────────────────────
   PM AGENT KIT WORKBOOK · SOFT STUDIO
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:            #F6F5F1;
  --bg-card:       #FFFFFF;
  --bg-sidebar:    #FFFFFF;
  --bg-hover:      #F0EFE9;
  --bg-input:      #F0EFE9;
  --border:        rgba(28,25,23,.07);
  --border-strong: rgba(28,25,23,.12);
  --text:          #1C1917;
  --text-soft:     #57534E;
  --text-faint:    #A8A29E;
  --accent:        #4A7C59;
  --accent-soft:   rgba(74,124,89,.10);
  --accent-hover:  #3A6347;
  --amber:         #A67C52;
  --amber-soft:    rgba(166,124,82,.10);
  --shadow-sm:     0 1px 2px rgba(28,25,23,.04);
  --shadow-md:     0 2px 8px rgba(28,25,23,.05), 0 1px 2px rgba(28,25,23,.03);
  --shadow-lg:     0 4px 16px rgba(28,25,23,.06), 0 2px 4px rgba(28,25,23,.03);
  --radius:        10px;
  --radius-sm:     6px;
  --sans:          "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:          "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --sidebar-w:     224px;
  --topbar-h:      56px;
  color-scheme:    light;
}

[data-theme="dark"] {
  --bg:            #1A1714;
  --bg-card:       #221F1B;
  --bg-sidebar:    #1E1B18;
  --bg-hover:      #2A2622;
  --bg-input:      #2A2622;
  --border:        rgba(237,233,228,.07);
  --border-strong: rgba(237,233,228,.12);
  --text:          #EDE9E4;
  --text-soft:     #A8A29E;
  --text-faint:    #6B6560;
  --accent:        #5E9A6E;
  --accent-soft:   rgba(74,124,89,.15);
  --accent-hover:  #72B07F;
  --amber:         #C49B6A;
  --amber-soft:    rgba(196,155,106,.12);
  --shadow-sm:     0 1px 2px rgba(0,0,0,.16);
  --shadow-md:     0 2px 8px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.12);
  --shadow-lg:     0 4px 16px rgba(0,0,0,.22), 0 2px 4px rgba(0,0,0,.14);
  color-scheme:    dark;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

::selection { background: var(--accent-soft); color: var(--accent); }

/* ── topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(246,245,241,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  transition: background .3s ease;
}

[data-theme="dark"] .topbar {
  background: rgba(26,23,20,.88);
}

.topbar-menu {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 16px;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.topbar-menu:hover {
  background: var(--bg-hover);
  border-color: var(--text-faint);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.topbar-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.topbar-logo .sub {
  font-weight: 400;
  color: var(--text-faint);
  font-size: 13px;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 16px;
  transition: border-color .15s, color .15s, background .15s;
}

.theme-toggle:hover {
  border-color: var(--text-faint);
  color: var(--text-soft);
  background: var(--bg-hover);
}

/* ── mobile sidebar overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(28,25,23,.4);
  backdrop-filter: blur(2px);
}

body.sidebar-open .sidebar-overlay { display: block; }

/* ── inner-page two-column layout ── */
.layer { position: relative; }

.page {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--topbar-h));
}

/* ── sidebar ── */
.sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 16px 10px 24px;
  display: flex;
  flex-direction: column;
  transition: background .3s ease;
  z-index: 95;
}

.sidebar::-webkit-scrollbar { width: 0; }

/* hide old terminal path element */
.sidebar-path { display: none; }

.sidebar-section {
  margin-bottom: 4px;
}

.sidebar-section a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: background .12s, color .12s;
}

.sidebar-section a:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.sidebar-section a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 10px;
}

.sidebar-week {
  margin-bottom: 2px;
}

.sidebar-week-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 10px 4px;
}

.sidebar-days {
  display: flex;
  flex-direction: column;
}

.sidebar-days a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  transition: background .12s, color .12s;
}

.sidebar-days a:hover {
  background: var(--bg-hover);
  color: var(--text-soft);
}

.sidebar-days a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.sidebar-days a .day-n {
  font-family: var(--mono);
  font-size: 11px;
  width: 18px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.sidebar-days a .day-s {
  font-family: var(--mono);
  font-size: 11px;
  opacity: .7;
}

.sidebar-days a.capstone { color: var(--amber); }
.sidebar-days a.capstone[aria-current="page"] { color: var(--amber); }
.sidebar-days a.capstone:hover { color: var(--amber); }

/* ── main content (inner pages) ── */
.main {
  padding: 40px 48px 80px;
  max-width: 900px;
}

/* home page: full-width main, no inner-page max-width cap */
.home-main {
  max-width: none;
  padding: 0;
  min-width: 0;
}

/* ── inner-page header ── */
.page-header {
  margin-bottom: 48px;
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.capstone-eyebrow::before { background: var(--amber); }

.capstone-tag {
  color: var(--amber);
  border: 1px solid var(--amber-soft);
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  letter-spacing: .08em;
}

.page-title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 14px;
}

.page-sub {
  font-size: 14px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-sub .glyph {
  font-family: var(--mono);
  color: var(--accent);
}

.page-sub code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-soft);
  background: none;
  border: none;
  padding: 0;
}

/* ── section primitive (inner pages) ── */
.section {
  padding-top: 44px;
}

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

.sec-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-label::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.sec-headline {
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.sec-headline .accent { color: var(--accent); }

/* ── body text ── */
.body-text p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-soft);
  margin-bottom: 1em;
}

.body-text p:last-child { margin-bottom: 0; }
.body-text strong { color: var(--text); font-weight: 600; }
.body-text em { font-style: italic; }

.body-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

.body-text a:hover { background: var(--accent-soft); }

.body-text code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

.body-text ul, .body-text ol {
  padding-left: 1.4rem;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-soft);
  margin-bottom: 1em;
}

.body-text li { margin-bottom: .3em; }
.body-text li strong { color: var(--text); font-weight: 600; }
.body-text li code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

/* ── about two-col grid ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.about-grid .sec-label { margin-bottom: 10px; }
.about-grid .sec-headline { margin-bottom: 0; }

/* ── prompt blocks ── */
.prompt-group { margin-top: 20px; }
.prompt-group + .prompt-group { margin-top: 14px; }

.prompt-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.prompt-pane-bar {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg-hover);
  border-left: 3px solid var(--accent);
}

.prompt-pane-bar .pane-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: .04em;
}

pre.prompt-block {
  font-family: var(--mono);
  background: var(--bg-card);
  padding: 18px 20px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
}

.prompt-block-wrapper { position: relative; }

.copy-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── reflection list ── */
.reflection-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.reflection-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s;
}

.reflection-list li:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.reflection-list li .r-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}

/* ── day footer nav ── */
.day-nav {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.day-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}

.day-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-md);
}

.day-nav .nav-spacer { flex: 1; }

.day-nav a .arr {
  color: var(--text-faint);
  transition: transform .15s, color .15s;
}

.day-nav a:hover .arr { color: var(--accent); }
.day-nav a.nav-next:hover .arr { transform: translateX(2px); }
.day-nav a.nav-prev:hover .arr { transform: translateX(-2px); }

.day-nav .nav-index a {
  border: none;
  background: none;
  box-shadow: none;
  font-size: 12px;
  color: var(--text-faint);
  padding: 9px 4px;
}

.day-nav .nav-index a:hover {
  color: var(--accent);
  background: none;
  border: none;
  box-shadow: none;
}

/* ── step panes ── */
.step-pane {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.step-pane-bar {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-hover);
}

.step-pane-bar .step-id {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .04em;
}

.step-pane-bar .step-id.pink { color: var(--amber); }

.step-pane-bar .step-arrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

.step-pane-bar .step-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: .04em;
}

.step-pane-bar .pane-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
}

.step-pane-body {
  padding: 20px 22px 24px;
}

.step-pane-body h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 10px;
}

.step-pane-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.step-pane-body p:last-child { margin-bottom: 0; }

/* ── callout ── */
.callout {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.callout code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 1px 5px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

/* ── note spec ── */
.note-spec {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  line-height: 2;
  box-shadow: var(--shadow-sm);
}

.note-spec .k {
  color: var(--text-faint);
  display: inline-block;
  width: 21ch;
  vertical-align: top;
}

.note-spec .v { color: var(--accent); }
.note-spec .v.off { color: var(--text-faint); }

/* ── spec table ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-table thead tr { background: var(--bg-hover); }

.spec-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-strong);
}

.spec-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}

.spec-table tr:last-child td { border-bottom: none; }

.spec-table td:first-child {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}

/* ── note-spec mobile fix ── */
@media (max-width: 600px) {
  .note-spec > div { display: flex; }
  .note-spec .k { flex-shrink: 0; }
  .note-spec .v { flex: 1; }
}

/* ── stakeholder table ── */
.stakeholder-table-wrap { margin-top: 20px; }

@media (max-width: 600px) {
  .stakeholder-table thead { display: none; }
  .stakeholder-table tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }
  .stakeholder-table tr:last-child { border-bottom: none; }
  .stakeholder-table td {
    display: block;
    border: none;
    padding: 0;
    white-space: normal;
  }
  .stakeholder-table td:first-child {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
  }
  .stakeholder-table td:nth-child(2) {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--text-faint);
    white-space: normal;
    margin-bottom: 6px;
  }
  .stakeholder-table td:nth-child(3) {
    font-size: 13px;
    line-height: 1.55;
  }
}

/* ── spec-table mobile card view ── */
@media (max-width: 600px) {
  .spec-table thead { display: none; }
  .spec-table tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }
  .spec-table tr:last-child { border-bottom: none; }
  .spec-table td {
    display: block;
    border: none;
    padding: 0;
    white-space: normal;
  }
  .spec-table td:first-child {
    white-space: normal;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .spec-table td:last-child {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-soft);
  }
}

.spec-table td code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

/* ── persona pane ── */
.persona-pane {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.persona-pane-bar {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  gap: 8px;
}

.persona-pane-bar .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: .04em;
}

.persona-pane-body { padding: 20px 22px 24px; }

.persona-pane-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.persona-pane-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.persona-pane-body p:last-child { margin-bottom: 0; }
.persona-pane-body strong { color: var(--text); font-weight: 600; }

/* ── metric strip ── */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.metric-cell {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}

.metric-cell:last-child { border-right: none; }

.metric-cell .mk {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.metric-cell .mv {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}

/* ── inline code & base link ── */
code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }

/* ── shared buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, filter .12s, background .15s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-1px); opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196,101,74,.22);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(196,101,74,.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  box-shadow: var(--shadow-sm);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ── inner-page footer ── */
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px 36px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-faint);
  gap: 20px;
  flex-wrap: wrap;
}

.page-footer .left { display: flex; gap: 16px; align-items: center; }
.page-footer .pulse-mini { display: none; }
.page-footer a { color: var(--text-soft); text-decoration: none; }
.page-footer a:hover { color: var(--accent); opacity: 1; }

/* ═══════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════ */

.home-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* hero */
.hero {
  padding: 64px 0 48px;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 18px;
  animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .05s;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 54ch;
  margin-bottom: 28px;
  animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .12s;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .19s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 64px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.stat-card .s-val {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.025em;
  color: var(--text);
  line-height: 1.1;
}

.stat-card .s-val .unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
  margin-left: 3px;
}

.stat-card .s-val.accent { color: var(--accent); }

.stat-card .s-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 4px;
}

/* section heads */
.home-sec-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-sec-label::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.home-sec-headline {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.home-sec-headline .accent { color: var(--accent); }

/* about */
.home-about {
  margin-bottom: 64px;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.home-about-grid .home-sec-label { margin-bottom: 10px; }
.home-about-grid .home-sec-headline { margin-bottom: 0; }

.home-about-body p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-soft);
  margin-bottom: 1em;
}

.home-about-body p:last-child { margin-bottom: 0; }
.home-about-body strong { color: var(--text); font-weight: 600; }

.home-about-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

.home-about-body a:hover { background: var(--accent-soft); opacity: 1; }

.home-about-body code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

/* how it works */
.how-section { margin-bottom: 64px; }

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

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}

.how-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.how-card .step-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 14px;
}

.how-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.how-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* curriculum */
.curr-section { margin-bottom: 64px; }

.curr-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.week-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  margin-top: 10px;
}

.week-header:first-child { margin-top: 0; }

.week-header .wh-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.week-header .wh-theme {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.week-header .wh-theme .accent { color: var(--accent); }

.week-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.day-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 130px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  animation: fadeUp .4s cubic-bezier(.2,.7,.2,1) both;
}

.day-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  opacity: 1;
}

.day-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.day-card .dc-num {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
  transition: color .15s;
}

.day-card:hover .dc-num { color: var(--accent); }

.day-card .dc-cat {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 2px 6px;
  background: var(--bg-hover);
  border-radius: 4px;
}

.day-card-bottom { margin-top: auto; }

.day-card .dc-skill {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-soft);
  margin-bottom: 3px;
}

.day-card .dc-title {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-soft);
  transition: color .15s;
}

.day-card:hover .dc-title { color: var(--text); }

.day-card.capstone {
  border-color: var(--amber-soft);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(166,124,82,.04) 100%);
}

.day-card.capstone .dc-num { color: var(--amber); }
.day-card.capstone .dc-cat { background: var(--amber-soft); color: var(--amber); }
.day-card.capstone:hover { border-color: var(--amber); }
.day-card.capstone:hover .dc-num { color: var(--amber); filter: brightness(1.1); }

/* note on form */
.note-section { margin-bottom: 64px; }

.note-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.note-body p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-soft);
  margin-bottom: 1em;
}

.note-body p:last-child { margin-bottom: 0; }
.note-body strong { color: var(--text); font-weight: 600; }

.note-spec-home {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  line-height: 2;
  box-shadow: var(--shadow-sm);
}

.note-spec-home .k { color: var(--text-faint); display: inline-block; width: 13ch; }
.note-spec-home .v { color: var(--accent); }
.note-spec-home .v.off { color: var(--text-faint); }

/* CTA */
.cta-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px 64px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}

.cta-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.cta-block h2 {
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text);
  max-width: 22ch;
  margin: 0 auto 24px;
}

.cta-block h2 .accent { color: var(--accent); }

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-foot {
  font-size: 12px;
  color: var(--text-faint);
}

.cta-foot a { color: var(--accent); }

/* home footer */
.home-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 8px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-faint);
  gap: 16px;
  flex-wrap: wrap;
}

.home-footer .left { display: flex; gap: 16px; align-items: center; }
.home-footer .pulse-mini { display: none; }
.home-footer a { color: var(--text-soft); text-decoration: none; }
.home-footer a:hover { color: var(--accent); opacity: 1; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1000px) {
  .page { grid-template-columns: 1fr; }

  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 80vw);
    height: 100vh;
    z-index: 95;
    box-shadow: var(--shadow-lg);
    padding-top: calc(var(--topbar-h) + 16px);
  }

  body.sidebar-open .sidebar { display: flex; }

  .topbar-menu { display: flex; }

  .main { padding: 32px 24px 56px; }

  .about-grid { grid-template-columns: 1fr; gap: 24px; }

  .home-wrap { padding: 0 20px 64px; }
  .hero { padding: 48px 0 40px; }
  .home-about-grid { grid-template-columns: 1fr; gap: 24px; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .curr-grid { grid-template-columns: repeat(3, 1fr); }
  .note-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .page-footer { padding: 16px 24px 28px; }
}

@media (max-width: 640px) {
  .how-grid { grid-template-columns: 1fr; }
  .curr-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta-block { padding: 40px 24px 48px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .curr-grid { grid-template-columns: 1fr; }
  .day-card { min-height: auto; }
}

@media (max-width: 480px) {
  .main { padding: 24px 16px 48px; }
  .step-pane-body { padding: 16px 14px 20px; }
  .page-footer { gap: 12px; font-size: 12px; }
}
