/* ==================== SHARED ELEMENTS ==================== */

.breadcrumb-sep {
  color: var(--text);
  margin: 0 0.3em;
  font-weight: 400;
}

.section-label {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.1em;
  margin-top: 0.3em;
}

.section-label-abs {
  position: absolute;
  top: 1.2em;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  margin: 0;
}

.subtitle {
  font-size: 0.5em;
  color: var(--text-muted);
  margin-top: -0.3em;
  margin-bottom: 0.8em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.insight {
  font-size: 0.75em;
  color: var(--text-muted);
  margin-top: 1.5em;
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: 0.8em;
  text-align: left;
}

/* ==================== TITLE SLIDE ==================== */

.title-slide {
  text-align: left;
}

.title-label {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
}

.title-slide h1 {
  font-size: 3em;
  line-height: 1.05;
  margin-bottom: 0.5em;
}

.title-meta {
  font-size: 0.85em;
  color: var(--text-muted);
}

/* ==================== REASONS LIST (Slide 2) ==================== */

.reasons-list {
  display: flex;
  flex-direction: column;
  margin-top: 1.5em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.reason-item {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  text-align: left;
  padding: 0.8em 0.5em;
  border-bottom: 1px solid var(--border);
}

.reason-item:first-child {
  border-top: 1px solid var(--border);
}

.reason-number {
  font-family: var(--font-title);
  font-size: 1.3em;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  min-width: 1.5em;
}

.reason-title {
  font-size: 0.7em;
  font-weight: 600;
  margin: 0;
}

.reason-desc {
  font-size: 0.5em;
  color: var(--text-muted);
  margin: 0.4em 0 0;
}

/* ==================== FLOW DIAGRAMS ==================== */

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 1.5em 0;
}

.flow-step {
  text-align: center;
  padding: 0.8em 1em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 120px;
}

.flow-icon { font-size: 1.5em; margin-bottom: 0.3em; }
.flow-label { font-size: 0.65em; margin: 0; line-height: 1.4; }
.flow-arrow { font-size: 1.2em; color: var(--primary); }

.flow-step-plain {
  text-align: center;
  padding: 0.4em 0.8em;
  min-width: 100px;
}

/* ==================== CODE BLOCKS ==================== */

.code-block {
  text-align: left;
  margin-top: 1em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.two-col .code-block {
  max-width: none;
}

.code-block.small pre { font-size: 0.48em; }

/* ==================== STYLED OUTPUT PREVIEW ==================== */

.output-preview {
  max-width: 700px;
  margin: 1em auto 0;
  text-align: left;
}

.fake-yaml {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6em 1em;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.55em;
}

.fake-yaml p {
  margin: 0.25em 0;
  line-height: 1.5;
}

.yaml-key {
  color: var(--primary);
  font-weight: 500;
}

.yaml-divider {
  height: 1px;
  background: var(--border);
  margin: 0.6em 0;
}

.code-title {
  font-size: 0.6em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3em;
  font-family: 'SF Mono', monospace;
}

/* ==================== TWO COLUMN ==================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  text-align: left;
}

.col-title {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5em;
}

/* ==================== SESSION PROBLEM ==================== */

.problem-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1.5em;
}

.session-box {
  padding: 1.2em 1.5em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: left;
  min-width: 280px;
}

.session-box.faded {
  opacity: 0.5;
  border-style: dashed;
}

.session-title {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5em;
}

.session-content {
  font-size: 0.7em;
  line-height: 1.8;
  margin: 0;
}

.session-gap {
  text-align: center;
}

.gap-text {
  font-size: 0.7em;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==================== FEATURE GRID ==================== */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8em;
  margin-top: 1em;
}

.feature-card {
  padding: 1em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: left;
}

.feature-title {
  font-size: 0.8em;
  font-weight: 600;
  margin: 0 0 0.3em;
}

.feature-desc {
  font-size: 0.65em;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==================== LOAD CONTEXT ==================== */

.load-context-flow {
  margin-top: 1.5em;
}

.lc-sources {
  display: flex;
  gap: 0.6em;
  justify-content: center;
  flex-wrap: wrap;
}

.lc-source {
  padding: 0.5em 1em;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.7em;
}

.lc-arrow {
  font-size: 1.5em;
  color: var(--primary);
  margin: 0.5em 0;
}

.lc-output {
  padding: 1em 1.5em;
  background: var(--surface);
  border-radius: 8px;
  border: 2px solid var(--primary);
  max-width: 600px;
  margin: 0 auto;
}

.lc-output-title {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3em;
}

.lc-output-desc {
  font-size: 0.7em;
  color: var(--text-muted);
  margin: 0;
}

/* ==================== LIFECYCLE DIAGRAM ==================== */

.lifecycle-diagram {
  margin-top: 1.5em;
}

.lifecycle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 0.6em 0;
}

.lc-node {
  padding: 0.5em 1em;
  border-radius: 6px;
  font-size: 0.7em;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 140px;
  text-align: center;
}

.lc-node.transcribe,
.lc-node.load,
.lc-node.save {
  border-color: var(--primary);
  color: var(--primary);
}

.lc-connector {
  color: var(--primary);
  font-size: 0.9em;
}

.lifecycle-divider {
  height: 1px;
  background: var(--border);
  margin: 1em 3em;
}

.lifecycle-loop {
  text-align: center;
  margin-top: 0.5em;
}

/* ==================== SKILL HIGHLIGHTS ==================== */

.skill-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  margin-top: 1em;
}

.skill-point {
  padding: 0.8em 1.2em;
  background: var(--surface);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  text-align: left;
}

.skill-title {
  font-size: 0.85em;
  font-weight: 600;
  margin: 0 0 0.2em;
}

.skill-desc {
  font-size: 0.7em;
  color: var(--text-muted);
  margin: 0;
}

/* ==================== RULES OVERVIEW ==================== */

.rules-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
  margin-top: 1em;
}

.rule-category {
  padding: 0.7em 1em;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  text-align: left;
}

.rule-category:last-child {
  grid-column: 1 / -1;
}

.rule-cat-title {
  font-size: 0.8em;
  font-weight: 600;
  margin: 0 0 0.2em;
  color: var(--primary);
}

.rule-cat-desc {
  font-size: 0.65em;
  color: var(--text-muted);
  margin: 0;
}

/* ==================== TEMPLATE GRID ==================== */

.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6em;
  margin-top: 1em;
}

.template-card {
  padding: 0.6em 0.8em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: left;
}

.template-card:nth-child(4),
.template-card:nth-child(5) {
  grid-column: span 1;
}

.template-name {
  font-size: 0.7em;
  font-weight: 600;
  margin: 0 0 0.1em;
}

.template-tech {
  font-size: 0.55em;
  color: var(--primary);
  margin: 0 0 0.3em;
  font-weight: 500;
}

.template-desc {
  font-size: 0.5em;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ==================== TIPS GRID ==================== */

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
  margin-top: 1em;
}

.tip {
  padding: 0.8em 1em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: left;
}

.tip-title {
  font-size: 0.8em;
  font-weight: 600;
  margin: 0 0 0.3em;
}

.tip-desc {
  font-size: 0.65em;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==================== BEFORE / AFTER ==================== */

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin-top: 1em;
}

.ba-column { text-align: left; }

.ba-label {
  font-size: 0.8em;
  font-weight: 600;
  margin-bottom: 0.6em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--border);
}

.ba-label.bad { color: var(--text-muted); }
.ba-label.good { color: var(--primary); border-color: var(--primary); }

.ba-issues p,
.ba-wins p {
  font-size: 0.7em;
  margin: 0.4em 0;
  padding-left: 1.2em;
  position: relative;
}

.ba-issues p::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #666;
}

.ba-wins p::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ==================== TRADITIONAL FLOW ==================== */

.traditional-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  margin: 1.5em 0;
}

.trad-step {
  padding: 0.6em 1.2em;
  background: var(--surface);
  border-radius: 6px;
  font-size: 0.8em;
  border: 1px solid var(--border);
}

.trad-step.faded {
  opacity: 0.4;
  border-style: dashed;
  text-decoration: line-through;
}

.trad-arrow {
  color: var(--text-muted);
}

.vs-divider {
  margin: 1.2em 0;
  font-size: 0.8em;
  color: var(--text-muted);
}

.claude-flow { text-align: center; }

.claude-step {
  display: inline-block;
  padding: 0.7em 2em;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
}

.claude-flow-desc {
  font-size: 0.75em;
  color: var(--text-muted);
  margin-top: 0.5em;
}

/* ==================== DOC PURPOSE ==================== */

.doc-purpose {
  padding: 0.7em 1em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.doc-purpose p {
  font-size: 0.65em;
  margin: 0.2em 0;
  padding-left: 1em;
  position: relative;
}

.doc-purpose p::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ==================== PARALLEL OUTPUT ==================== */

.parallel-output {
  margin-top: 1em;
}

.output-card {
  padding: 1em 1.5em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: left;
  margin-bottom: 1em;
}

.output-title {
  font-size: 0.7em;
  color: var(--text-muted);
  margin: 0 0 0.3em;
}

.output-quote {
  font-size: 0.85em;
  font-style: italic;
  margin: 0;
}

.output-results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6em;
}

.output-result {
  padding: 0.8em;
  background: var(--surface);
  border-radius: 6px;
  border-top: 2px solid var(--primary);
  text-align: left;
}

.output-result-title {
  font-size: 0.75em;
  font-weight: 600;
  margin: 0 0 0.2em;
}

.output-result p:last-child {
  font-size: 0.65em;
  color: var(--text-muted);
  margin: 0;
}

/* ==================== CREATE DOCS ==================== */

.create-docs-flow {
  margin-top: 1.5em;
}

.cd-inputs {
  display: flex;
  gap: 0.6em;
  justify-content: center;
}

.cd-input {
  padding: 0.5em 1.2em;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.75em;
  font-family: 'SF Mono', monospace;
}

.cd-arrow {
  font-size: 1.5em;
  color: var(--primary);
  margin: 0.5em 0;
}

.cd-output {
  padding: 1em 1.5em;
  background: var(--surface);
  border-radius: 8px;
  border: 2px solid var(--primary);
  max-width: 600px;
  margin: 0 auto;
}

.cd-output-title {
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 0.6em;
}

.cd-pages {
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
}

.cd-pages span {
  padding: 0.3em 0.7em;
  background: var(--surface-light);
  border-radius: 4px;
  font-size: 0.65em;
  border: 1px solid var(--border);
}

/* ==================== DEMO VISUAL ==================== */

.demo-visual { margin-top: 1em; }

.demo-prompt {
  padding: 0.8em 1.5em;
  background: var(--surface);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  font-style: italic;
  font-size: 0.85em;
  margin-bottom: 1em;
  text-align: left;
}

.demo-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.6em;
}

.demo-output {
  padding: 0.8em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
}

.demo-output-icon { font-size: 1.5em; margin-bottom: 0.3em; }

.demo-output-title {
  font-size: 0.75em;
  font-weight: 600;
  margin: 0 0 0.2em;
}

.demo-output-desc {
  font-size: 0.6em;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ==================== COMPACTION ==================== */

.compaction-visual {
  margin: 1.5em 0;
}

.context-bar {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 0.8em auto;
  max-width: 600px;
}

.context-bar span {
  font-size: 0.7em;
  min-width: 140px;
  text-align: right;
  color: var(--text-muted);
}

.context-fill {
  flex: 1;
  height: 24px;
  background: linear-gradient(90deg, var(--primary), #e8764d);
  border-radius: 4px;
}

.context-fill.small {
  max-width: 30%;
  background: linear-gradient(90deg, var(--primary), #c44e2e);
  opacity: 0.6;
}

.compact-event {
  text-align: center;
  font-size: 0.9em;
  margin: 0.8em 0;
}

.lost-items { margin-top: 1.5em; }

.lost-title {
  font-size: 0.75em;
  color: var(--text-muted);
  margin-bottom: 0.5em;
}

.lost-grid {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  flex-wrap: wrap;
}

.lost-grid span {
  padding: 0.3em 0.8em;
  background: var(--surface);
  border-radius: 4px;
  font-size: 0.65em;
  border: 1px solid var(--border);
}

/* ==================== POST COMPACT ==================== */

.post-compact-flow {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  margin-top: 0.6em;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.pc-step {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.6em 1.2em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: left;
}

.pc-num {
  font-family: var(--font-title);
  font-size: 1em;
  font-weight: 700;
  color: var(--primary);
  min-width: 1.5em;
  text-align: center;
  margin: 0;
}

.pc-step p:last-child {
  font-size: 0.6em;
  margin: 0;
}

/* ==================== FILE MAP ==================== */

.file-map {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1em;
  text-align: left;
}

.file-map-group {
  padding: 0.8em 1.2em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.file-map-title {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.5em;
}

.file-map-item {
  font-size: 0.65em;
  margin: 0.3em 0;
}

.file-map-item code {
  color: var(--text);
  font-weight: 500;
}

/* ==================== COMPACTION LIFECYCLE ==================== */

.compaction-lifecycle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  margin-top: 0.4em;
}

.cl-step {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.2em 0.8em;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  min-width: 350px;
}

.cl-num {
  font-family: var(--font-title);
  font-size: 0.8em;
  font-weight: 700;
  color: var(--primary);
  min-width: 1.2em;
  text-align: center;
}

.cl-cmd {
  font-size: 0.6em;
  font-weight: 600;
  margin: 0;
  font-family: 'SF Mono', monospace;
}

.cl-desc {
  font-size: 0.45em;
  color: var(--text-muted);
  margin: 0;
  display: none;
}

.cl-arrow {
  color: var(--primary);
  font-size: 0.55em;
  margin: -0.1em 0;
}

/* ==================== TWEAKS LIST ==================== */

.tweaks-list {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-top: 1em;
}

.tweak {
  padding: 0.7em 1.2em;
  background: var(--surface);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  text-align: left;
}

.tweak-title {
  font-size: 0.8em;
  font-weight: 600;
  margin: 0 0 0.2em;
}

.tweak-desc {
  font-size: 0.65em;
  color: var(--text-muted);
  margin: 0;
}

/* ==================== FULL WORKFLOW ==================== */

.full-workflow {
  margin-top: 1em;
}

.fw-phase {
  padding: 0.6em 1em;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.fw-phase-title {
  font-size: 0.65em;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.3em;
}

.fw-steps {
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap;
}

.fw-steps span {
  font-size: 0.6em;
  padding: 0.2em 0.6em;
  background: var(--surface-light);
  border-radius: 4px;
}

.fw-arrow {
  background: none !important;
  color: var(--primary);
  padding: 0 !important;
}

.fw-connector {
  color: var(--primary);
  font-size: 0.8em;
  margin: 0.2em 0;
}

/* ==================== REPO CARD ==================== */

.repo-card {
  padding: 2em;
  background: var(--surface);
  border-radius: 12px;
  border: 2px solid var(--primary);
  max-width: 650px;
  margin: 1.5em auto 0;
  text-align: center;
}

.repo-icon { font-size: 2.5em; margin-bottom: 0.3em; }

.repo-name {
  font-size: 1em;
  font-weight: 600;
  margin: 0 0 0.2em;
}

.repo-url {
  font-size: 0.8em;
  font-family: 'SF Mono', monospace;
  margin-bottom: 1em;
}

.repo-contents {
  text-align: left;
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
}

.repo-item {
  font-size: 0.65em;
  color: var(--text-muted);
  margin: 0.4em 0;
  padding-left: 1em;
  position: relative;
}

.repo-item::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ==================== SLIDE LINK ==================== */

.slide-link {
  margin-top: 1em;
  font-size: 0.45em;
}

.slide-link a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.slide-link a:hover {
  border-color: var(--primary);
}

/* ==================== LIGHTBOX ==================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5em 3em;
  max-width: 680px;
  width: 90%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.lightbox-close {
  position: absolute;
  top: 1em;
  right: 1.2em;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5em;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover { color: var(--text); }

.lightbox-title {
  font-family: 'SF Mono', monospace;
  font-size: 1.2em;
  color: var(--primary);
  margin: 0 0 0.4em;
}

.lightbox-desc {
  font-size: 0.85em;
  color: var(--text-muted);
  margin: 0 0 1.5em;
  line-height: 1.6;
}

.lightbox-steps {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

.lightbox-steps li {
  font-size: 0.85em;
  line-height: 1.5;
  color: var(--text);
}

.lightbox-steps li strong {
  color: var(--primary);
}

/* ==================== Q&A ==================== */

.qa-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qa-slide h1 {
  font-size: 5em;
}

.qa-subtitle {
  font-size: 1.2em;
  color: var(--text-muted);
}
