/* ═══════════════════════════════════════════════════════
   COS Builder — Bella Pivo Brand
   bellapivo.com
   ═══════════════════════════════════════════════════════ */

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

:root {
  /* Brand palette */
  --bg:           #27272b;
  --bg-raised:    #2f2f34;
  --bg-card:      #323238;
  --bg-inset:     #1e1e22;
  --border:       #3e3e45;
  --border-hover: #55555e;

  --text:         #dfdcdf;
  --text-dim:     #a09da0;
  --text-xdim:    #6a686a;

  --accent:       #6a30fe;
  --accent-mid:   #9f4cfd;
  --accent-soft:  rgba(106, 48, 254, 0.12);
  --accent-glow:  rgba(106, 48, 254, 0.3);
  --pink:         #e16be6;
  --pink-soft:    rgba(225, 107, 230, 0.12);
  --pink-glow:    rgba(225, 107, 230, 0.25);
  --green:        #34d399;
  --green-soft:   rgba(52, 211, 153, 0.1);

  --gradient:     linear-gradient(135deg, #6a30fe, #e16be6);
  --gradient-subtle: linear-gradient(135deg, rgba(106,48,254,0.15), rgba(225,107,230,0.1));

  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;

  --font:         'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --mono:         'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.2);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.3);
  --shadow-glow:  0 0 40px var(--accent-glow);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100dvh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Progress Track ─────────────────────────────────── */
.progress-track {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 4px;
  background: var(--bg-inset);
  z-index: 200;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

/* ── Nav Strip (dots) ───────────────────────────────── */
.nav-strip {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.nav-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
}

.nav-dot:hover { background: var(--text-dim); transform: scale(1.2); }

.nav-dot.active {
  background: var(--accent-mid);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.5);
}

/* ── Site Footer Link ──────────────────────────────── */
.site-footer-link {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--text-xdim);
  letter-spacing: 0.08em;
  font-weight: 500;
  z-index: 200;
  font-family: var(--font);
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(30, 30, 34, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.site-footer-link:hover {
  color: var(--accent-mid);
  border-color: var(--accent-mid);
  text-decoration: none;
  background: rgba(106, 48, 254, 0.1);
}

/* ── Deck & Slides ──────────────────────────────────── */
.deck {
  width: 100%;
  height: 100dvh;
  position: relative;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100dvh;
  display: flex;
  align-items: safe center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow-y: auto;
  padding: 40px 80px 52px 48px;
}

/* When content overflows viewport, start from top instead of centering */
@supports not (align-items: safe center) {
  .slide { align-items: flex-start; }
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Inner wrappers */
.slide-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.slide-inner.center-layout {
  text-align: center;
  max-width: 800px;
}

.slide-inner.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

h4 { font-size: 0.92rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-mid);
  margin-bottom: 12px;
  padding: 5px 14px;
  background: var(--accent-soft);
  border-radius: 20px;
  border: 1px solid rgba(159, 76, 253, 0.2);
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 20px;
}

.byline {
  color: var(--text-xdim);
  font-size: 0.82rem;
  margin-bottom: 32px;
}

.caption {
  color: var(--text-xdim);
  font-size: 0.78rem;
  margin-top: 12px;
  margin-bottom: 16px;
}

.sub-heading {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 18px;
  color: var(--text);
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn:active { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1.5px solid var(--border);
}

.btn.ghost:hover {
  border-color: var(--accent-mid);
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.btn.large { padding: 16px 44px; font-size: 1.05rem; }

.btn.full { width: 100%; justify-content: center; }

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.add-btn {
  background: transparent;
  color: var(--accent-mid);
  border: 1.5px dashed var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: all 0.3s ease;
}

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

/* ── Slide Nav (bottom bar) ─────────────────────────── */
.slide-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  grid-column: 1 / -1;
}

/* ── Path Cards ─────────────────────────────────────── */
.path-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 32px auto;
  max-width: 860px;
}

.path-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  cursor: pointer;
  transition: all 0.35s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
}

.path-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.path-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-glow);
}

.path-icon { font-size: 2.2rem; }
.path-card strong { font-family: var(--font); font-size: 1.05rem; }
.path-desc { color: var(--text-dim); font-size: 0.82rem; line-height: 1.5; }

.pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent-mid);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--font);
}

.pill.soft {
  background: var(--pink-soft);
  color: var(--pink);
}

/* ── Card Grids ─────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Flip Cards ─────────────────────────────────────── */
.flip-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  min-height: 140px;
  overflow: hidden;
}

.flip-card:hover { border-color: var(--accent-mid); }
.flip-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.flip-front, .flip-back { transition: all 0.4s ease; }

.flip-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.flip-front p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }

.flip-back {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 24px;
  display: flex; align-items: center;
  opacity: 0;
  background: var(--gradient-subtle);
  border-radius: var(--radius);
}

.flip-back p { color: var(--text); font-size: 0.84rem; line-height: 1.6; }

.flip-card.flipped .flip-front { opacity: 0; }
.flip-card.flipped .flip-back { opacity: 1; }
.flip-card.flipped { border-color: var(--accent); box-shadow: var(--shadow-glow); }

/* ── Compare Columns ───────────────────────────────── */
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 16px;
  margin: 24px 0;
}

.compare-col {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.compare-col.featured {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-glow);
}

.compare-label {
  display: block;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-xdim);
  margin-bottom: 8px;
}

.compare-label.highlight { color: var(--accent-mid); }

.compare-col h3 { font-size: 1rem; margin-bottom: 12px; }

.compare-col ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.compare-col li {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 4px 0 4px 16px;
  position: relative;
}

.compare-col li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-xdim);
}

.compare-col.featured li { color: var(--text); }
.compare-col.featured li::before { color: var(--accent-mid); }

.compare-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font);
}

.compare-tag.accent { color: var(--accent-mid); }

/* ── Terminal Demo ──────────────────────────────────── */
.term-wrap {
  margin: 24px auto;
  max-width: 680px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
}

.term-wrap.wide { max-width: 780px; }

.term-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.term-title { margin-left: 10px; font-size: 0.72rem; color: var(--text-xdim); font-family: var(--font); }

.term-body {
  padding: 18px 20px;
  background: var(--bg-inset);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
}

.term-row { display: flex; align-items: baseline; gap: 10px; }
.term-row.out { display: block; }
.t-prompt { color: var(--accent-mid); font-weight: 500; white-space: nowrap; }
.t-cmd { color: var(--text); }
.t-note { color: var(--text-xdim); font-size: 0.7rem; margin-left: 8px; }
.t-out { color: var(--text-dim); }
.t-out.dim { color: var(--text-xdim); }
.t-out.bright { color: var(--green); }

/* ── Block Cards ────────────────────────────────────── */
.block-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all 0.3s ease;
}

.block-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.block-num {
  width: 28px; height: 28px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  color: white;
  margin-bottom: 12px;
  font-family: var(--font);
}

.block-card h3 {
  font-family: var(--mono);
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--text);
}

.block-card p { color: var(--text-dim); font-size: 0.78rem; line-height: 1.55; margin-bottom: 10px; }

/* ── Forms ───────────────────────────────────────────── */
.field-label {
  display: block;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  margin-top: 14px;
  letter-spacing: 0.03em;
}

.field {
  width: 100%;
  background: var(--bg-inset);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all 0.3s ease;
  resize: vertical;
}

.field:focus {
  outline: none;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field.mono { font-family: var(--mono); font-size: 0.8rem; line-height: 1.7; }

::placeholder { color: var(--text-xdim); }

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a686a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

/* ── Checklist ──────────────────────────────────────── */
.checks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.chk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-inset);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text-dim);
}

.chk:hover { border-color: var(--border-hover); color: var(--text); }

.chk:has(input:checked) {
  border-color: rgba(159, 76, 253, 0.3);
  background: var(--accent-soft);
  color: var(--text);
}

.chk input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent-mid);
  cursor: pointer;
  flex-shrink: 0;
}

.chk span { line-height: 1.3; }

/* ── People Rows ────────────────────────────────────── */
.person-row {
  display: grid;
  grid-template-columns: 1fr 1fr 100px;
  gap: 6px;
  margin-bottom: 6px;
}

.person-row .field { font-size: 0.82rem; padding: 10px 12px; }

/* ── Preview Pane ───────────────────────────────────── */
.col-preview { position: sticky; top: 20px; }

.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-inset);
  border: 1.5px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.preview-pane {
  background: #1a1a1f;
  border: 1.5px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--green);
  overflow-y: auto;
  max-height: 50vh;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ── Code Rows ──────────────────────────────────────── */
.code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-inset);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 8px;
}

.code-row code {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  word-break: break-all;
}

.code-row.small { padding: 8px 12px; }
.code-row.small code { font-size: 0.72rem; }

.copy-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.copy-btn:hover { border-color: var(--accent-mid); color: var(--accent-mid); }
.copy-btn.copied { border-color: var(--green); color: var(--green); }

/* ── MCP Grid ───────────────────────────────────────── */
.mcp-grid .mcp-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
}

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

.mcp-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 24px var(--accent-glow);
}

.mcp-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 12px;
  color: var(--accent-mid);
  font-weight: 700;
  font-size: 0.9rem;
}

.mcp-ico { font-size: 1.8rem; margin-bottom: 4px; }
.mcp-card strong { font-family: var(--font); font-size: 0.85rem; }
.mcp-card span:last-child { color: var(--text-dim); font-size: 0.72rem; line-height: 1.4; }

/* ── Timeline Card (Daily Structure) ────────────────── */
.timeline-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tl-section {
  padding-left: 20px;
  border-left: 3px solid var(--border);
  position: relative;
}

.tl-section::before {
  content: '';
  position: absolute;
  left: -7px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent-mid);
}

.tl-section.sun::before { background: #fbbf24; }
.tl-section.fire::before { background: var(--pink); }
.tl-section.moon::before { background: #818cf8; }

.tl-label {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tl-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-items span {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 5px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-xs);
}

.tl-items span.active {
  color: var(--text);
  background: var(--accent-soft);
}

/* ── Setup Steps ────────────────────────────────────── */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 24px auto;
  counter-reset: step-counter;
  padding: 0;
}

.steps li {
  counter-increment: step-counter;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  padding-left: 60px;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 28px; height: 28px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.steps li strong { font-family: var(--font); display: block; margin-bottom: 6px; }
.steps li p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 6px; }
.steps li .note { font-size: 0.75rem; color: var(--text-xdim); font-style: italic; margin-top: 6px; }

/* ── Callouts ───────────────────────────────────────── */
.callout-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }

.callout {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.callout strong { color: var(--text); font-family: var(--font); }
.callout code { font-family: var(--mono); color: var(--green); font-size: 0.78rem; }
.callout ol { padding-left: 18px; margin-top: 6px; }
.callout li { margin-bottom: 4px; line-height: 1.5; }

.callout.green {
  background: var(--green-soft);
  border-color: rgba(52, 211, 153, 0.2);
  color: var(--green);
}

.callout.green strong { color: var(--green); }

/* ── Session Loop ──────────────────────────────────── */
.session-loop {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-inset);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.session-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.session-step {
  flex: 1;
  max-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.session-step strong {
  display: block;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 4px;
}

.session-step span {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.session-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.session-arrow {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  color: var(--text-xdim);
  flex-shrink: 0;
  padding: 0 2px;
}

@media (max-width: 768px) {
  .session-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .session-step {
    max-width: 100%;
  }
  .session-arrow {
    justify-content: center;
    transform: rotate(90deg);
    font-size: 1rem;
    padding: 2px 0;
  }
  .session-loop {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .session-step {
    padding: 12px 10px;
    gap: 10px;
  }
  .session-num {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  .session-step strong { font-size: 0.82rem; }
  .session-step span { font-size: 0.74rem; }
}

/* ── Chips ──────────────────────────────────────────── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  justify-content: center;
}

.chip {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 9px 18px;
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.chip:hover { border-color: var(--accent-mid); color: var(--text); }

/* ── Routine Builder ────────────────────────────────── */
.routine-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.routine-tab {
  padding: 10px 12px;
  background: var(--bg-inset);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-family: var(--font-body);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.routine-tab:hover { border-color: var(--border-hover); color: var(--text); }

.routine-tab.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-mid);
  font-weight: 600;
}

.copy-prompt-btn {
  margin-top: 12px;
  background: var(--accent-soft);
  color: var(--accent-mid);
  border: 1.5px solid rgba(159, 76, 253, 0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 12px;
}

.copy-prompt-btn:hover { background: rgba(106, 48, 254, 0.18); }

/* ── Instruction List (MCP Guide) ───────────────────── */
.instruction-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
  margin: 24px auto;
}

.instruction-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}

.instruction-ico { font-size: 1.5rem; margin-top: 2px; flex-shrink: 0; }
.instruction-row strong { font-family: var(--font); display: block; margin-bottom: 6px; }

/* ── Recap Area ─────────────────────────────────────── */
.recap-area {
  max-width: 700px;
  margin: 0 auto 24px;
  text-align: left;
}

.recap-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}

.recap-card h4 { margin-bottom: 12px; font-size: 0.88rem; }

.recap-pre {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--green);
  white-space: pre;
}

/* ── Timeline Simple ────────────────────────────────── */
.timeline-simple {
  max-width: 480px;
  margin: 0 auto 28px;
  text-align: left;
}

.timeline-simple p {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-dim);
}

.timeline-simple strong { color: var(--text); font-family: var(--font); }

/* ── Credits ────────────────────────────────────────── */
.credits {
  margin-top: 32px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.credits a { color: var(--accent-mid); }

.legal {
  font-size: 0.62rem;
  color: var(--text-xdim);
  max-width: 500px;
  margin: 8px auto 0;
  line-height: 1.5;
}

/* ── Beginner-only visibility ───────────────────────── */
.beginner-only { display: none; }
body.level-beginner .beginner-only { display: block; }

/* ── Background texture ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(106, 48, 254, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(225, 107, 230, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

.slide { z-index: 1; }
.progress-track, .nav-strip, .site-footer-link { z-index: 200; }

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

/* ── Tablet ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .slide { padding: 36px 32px 48px 28px; }
  .slide-inner { max-width: 900px; }
  .slide-inner.two-col { gap: 28px; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .compare-row { grid-template-columns: 1fr 1fr 1.3fr; }
  .routine-tabs { grid-template-columns: repeat(2, 1fr); }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .mcp-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .file-export-box { padding: 20px; }
}

/* ── Small tablet / large phone ─────────────────────── */
@media (max-width: 768px) {
  .slide { padding: 28px 20px 52px 20px; }

  .slide-inner.two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .col-preview { position: static; }

  .path-row { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; gap: 12px; }

  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-4 { grid-template-columns: 1fr 1fr; }

  .compare-row { grid-template-columns: 1fr; gap: 12px; }
  .compare-col.featured { order: -1; }

  .routine-tabs { grid-template-columns: repeat(2, 1fr); }
  .skill-grid { grid-template-columns: 1fr 1fr; }

  .nav-strip { display: none; }

  .person-row { grid-template-columns: 1fr 1fr 80px; }

  .recap-area.cols-2 { grid-template-columns: 1fr; }
  .card-grid.cols-2.recap-area { grid-template-columns: 1fr; }

  .chip-row { justify-content: flex-start; }

  h1 { margin-bottom: 16px; }
  .lead { margin-bottom: 16px; max-width: 100%; }

  .celebration-banner { flex-direction: column; text-align: center; gap: 10px; padding: 16px; }

  .file-export-box { padding: 18px; }
  .file-export-header { flex-direction: column; gap: 8px; }

  .cta-box { padding: 22px 18px; }
  .cta-links { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-links a { justify-content: center; }

  .callout { font-size: 0.8rem; padding: 12px 14px; }
  .callout ul { font-size: 0.78rem; }

  .steps { gap: 12px; }
  .steps li { padding: 16px 16px 16px 52px; }

  .builder-header { flex-direction: column; text-align: center; gap: 8px; }
  .skill-builder-panel { padding: 18px; }

  .site-footer-link { bottom: 10px; font-size: 0.6rem; padding: 3px 12px; }
}

/* ── Phone ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .slide { padding: 20px 14px 48px 14px; }

  h1 { font-size: 1.6rem; line-height: 1.15; }
  h2 { font-size: 1.2rem; }
  .lead { font-size: 0.92rem; }

  .card-grid.cols-2,
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .card-grid.cols-2.recap-area { grid-template-columns: 1fr; }

  .compare-row { grid-template-columns: 1fr; }

  .routine-tabs { grid-template-columns: repeat(2, 1fr); }
  .skill-grid { grid-template-columns: 1fr; }

  .path-row { gap: 10px; }
  .path-card { padding: 18px 16px; }

  .person-row { grid-template-columns: 1fr; gap: 4px; }

  .btn { padding: 12px 20px; font-size: 0.85rem; }
  .btn.large { padding: 14px 28px; font-size: 0.92rem; }
  .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-row .btn { width: 100%; justify-content: center; }

  .slide-nav {
    flex-direction: column;
    gap: 8px;
  }
  .slide-nav .btn { width: 100%; justify-content: center; }

  .term-wrap { margin: 16px auto; }
  .term-body { padding: 14px 10px; font-size: 0.68rem; line-height: 1.7; }
  .term-body .t-note { display: none; }
  .term-row { flex-wrap: wrap; }

  .steps li { padding-left: 48px; padding-right: 14px; }
  .steps li::before { left: 12px; top: 18px; width: 24px; height: 24px; font-size: 0.7rem; }
  .steps li strong { font-size: 0.88rem; }
  .steps li p { font-size: 0.78rem; }

  .code-row { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 10px; }
  .code-row code { font-size: 0.68rem; word-break: break-all; }
  .copy-btn { align-self: flex-end; }

  .instruction-row { flex-direction: column; gap: 8px; }

  .recap-card { padding: 14px; }
  .recap-pre { font-size: 0.65rem; line-height: 1.6; }

  .flip-card { min-height: 110px; padding: 16px; }
  .flip-icon { font-size: 1.3rem; margin-bottom: 6px; }

  .eyebrow { font-size: 0.62rem; padding: 4px 10px; }
  .byline { font-size: 0.75rem; }

  .phase-preview { font-size: 0.72rem; gap: 6px; margin-bottom: 20px; }
  .phase-tag { font-size: 0.65rem; padding: 3px 10px; }

  .preview-bar { font-size: 0.68rem; padding: 8px 12px; }
  .preview-pane { font-size: 0.65rem; padding: 12px; max-height: 35vh; }

  .field { font-size: 0.82rem; padding: 10px 12px; }
  .field-label { font-size: 0.7rem; }

  .chk { padding: 8px 10px; font-size: 0.78rem; }
  .chk input[type="checkbox"] { width: 14px; height: 14px; }

  .mcp-card { padding: 14px 10px; }
  .mcp-ico { font-size: 1.4rem; }
  .mcp-card strong { font-size: 0.78rem; }
  .mcp-card span:last-child { font-size: 0.68rem; }

  .file-export-box { padding: 16px; margin-bottom: 16px; }
  .file-export-header > span { font-size: 1.3rem; }
  .file-export-header strong { font-size: 0.88rem; }
  .file-export-actions { flex-direction: column; gap: 8px; }
  .file-export-actions .btn { width: 100%; justify-content: center; }

  .celebration-banner { padding: 12px; }
  .celebration-ico { font-size: 1.5rem; }
  .celebration-banner strong { font-size: 0.88rem; }
  .celebration-banner span { font-size: 0.78rem; }

  .cta-box { padding: 18px 14px; margin-top: 24px; }
  .cta-box h3 { font-size: 0.95rem; }
  .cta-box p { font-size: 0.82rem; }

  .timeline-simple p { font-size: 0.82rem; padding: 8px 0; }

  .chip { font-size: 0.75rem; padding: 7px 14px; }
  .sub-heading { font-size: 0.85rem; }

  .credits { font-size: 0.75rem; margin-top: 24px; }
  .legal { font-size: 0.58rem; }

  .skill-card { padding: 14px; }
  .skill-card strong { font-size: 0.85rem; }
  .skill-card .skill-desc { font-size: 0.72rem; }

  .site-footer-link { bottom: 8px; font-size: 0.58rem; padding: 3px 10px; }
}

/* ── Very small phones ─────────────────────────────── */
@media (max-width: 360px) {
  .slide { padding: 16px 10px 44px 10px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  .btn { padding: 10px 16px; font-size: 0.8rem; }
  .steps li { padding-left: 42px; }
  .term-body { font-size: 0.62rem; padding: 10px 8px; }
}

/* ── Skill Cards ────────────────────────────────────── */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.skill-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.skill-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.skill-card .skill-ico { font-size: 1.4rem; }
.skill-card strong { font-family: var(--font); font-size: 0.92rem; }
.skill-card .skill-desc { color: var(--text-dim); font-size: 0.78rem; line-height: 1.5; }
.skill-card .skill-cmd { font-family: var(--mono); font-size: 0.72rem; color: var(--accent-mid); }

/* ── Phase Preview (hero) ──────────────────────────── */
.phase-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.phase-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.phase-tag.accent {
  background: var(--accent-soft);
  border-color: rgba(159, 76, 253, 0.3);
  color: var(--accent-mid);
}

/* ── Skip Link ──────────────────────────────────────── */
.skip-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-xdim);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link:hover { color: var(--text-dim); }

/* ── Error callout ──────────────────────────────────── */
.callout.warning {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.callout.warning strong { color: #fbbf24; }

/* ── Celebration Banner ─────────────────────────────── */
.celebration-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--green-soft);
  border: 1.5px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius);
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease;
}

.celebration-ico { font-size: 2rem; }
.celebration-banner strong { font-family: var(--font); color: var(--green); display: block; font-size: 1rem; }
.celebration-banner span { color: var(--text-dim); font-size: 0.84rem; }

/* ── Skill Builder Panel ───────────────────────────── */
.skill-builder-panel {
  margin-top: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  animation: fadeUp 0.3s ease;
}

.builder-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.builder-header span:first-child { font-size: 1.8rem; }
.builder-header strong { font-family: var(--font); font-size: 1.05rem; display: block; }
.builder-cmd {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-mid);
}

.skill-prompt-output {
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Skills Summary ────────────────────────────────── */
.skills-summary {
  margin-top: 20px;
  animation: fadeUp 0.3s ease;
}

/* ── File Export Box ───────────────────────────────── */
.file-export-box {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 0 30px var(--accent-glow);
}

.file-export-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.file-export-header > span { font-size: 1.6rem; }
.file-export-header strong { font-family: var(--mono); font-size: 1rem; color: var(--green); display: block; }
.file-export-sub { font-size: 0.78rem; color: var(--text-dim); }

.file-export-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.file-export-hint {
  font-size: 0.75rem;
  color: var(--text-xdim);
  margin-top: 10px;
  transition: color 0.3s ease;
}

/* ── CTA Box ───────────────────────────────────────── */
.cta-box {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--gradient-subtle);
  border: 1.5px solid rgba(159, 76, 253, 0.25);
  border-radius: var(--radius);
  text-align: center;
}

.cta-box h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.cta-box p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.cta-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 0.82rem;
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-links a:hover {
  border-color: var(--accent-mid);
  background: var(--accent-soft);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Support Box ────────────────────────────────────── */
.support-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.support-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.support-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 12px;
}

.support-text strong {
  color: var(--text);
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 24px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.support-btn.venmo {
  background: var(--gradient);
  color: #fff;
  border: none;
}

.support-btn.venmo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.support-btn.consult {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.support-btn.consult:hover {
  border-color: var(--accent-mid);
  color: var(--text);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .support-box {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
  .support-links {
    flex-direction: column;
  }
  .support-btn {
    text-align: center;
    width: 100%;
  }
}

/* ── Solo back button (path slide) ─────────────────── */
.back-btn-solo {
  margin-top: 16px;
  align-self: center;
}

/* ── Gate Message ───────────────────────────────────── */
.gate-msg {
  text-align: center;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pink);
  background: var(--pink-soft);
  border: 1px solid rgba(225, 107, 230, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.gate-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Focus visible for accessibility ────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}

button:focus:not(:focus-visible) { outline: none; }

/* ── Skip nav for screen readers ───────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .slide { transition: opacity 0.2s ease !important; transform: none !important; }
  .slide.active { transform: none !important; }
}

/* ── Smooth entrance animations ─────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide.active .eyebrow { animation: fadeUp 0.5s ease both; }
.slide.active h1,
.slide.active h2 { animation: fadeUp 0.5s ease 0.1s both; }
.slide.active .lead,
.slide.active p:not(.flip-front p):not(.flip-back p):not(.tl-items span) { animation: fadeUp 0.5s ease 0.15s both; }
.slide.active .btn:not(.slide-nav .btn) { animation: fadeUp 0.5s ease 0.25s both; }
