/* ============================================================================
   codeBoot landing page
   Baked design tokens: "editorial" vibe · light theme · green accent · sans
   typography. (Ported from the Claude Design prototype; the live tweak panel,
   dark mode, and the vibe/density switchers have been resolved away.)
   ========================================================================== */

:root {
  --cb-blue: #1B5FAA;
  --cb-blue-deep: #144A85;
  --cb-blue-soft: #d8e0ec;
  --cb-blue-softer: #ebeff5;
  --accent: #2B7A4B;          /* green accent (persisted final state) */
  --accent-soft: #f4e3d4;
  /* editorial palette */
  --ink: #1A1408;
  --ink-2: #3D3424;
  --ink-3: #7A6F58;
  --paper: #F7F2E8;
  --paper-2: #EFE9DB;
  --rule: #D9D2BF;
  --rule-strong: #B5AB91;
  --ok: #2B7A4B;
  --warn: #B5651D;
  --err: #B4321A;
  /* editorial: Source Serif 4 for both sans + serif slots, JetBrains Mono for code */
  --font-sans: "Source Serif 4", Georgia, serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-serif);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--cb-blue); color: white; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-style: normal; font-weight: 500; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.rule { height: 1px; background: var(--rule); border: 0; }
.rule-strong { height: 1px; background: var(--rule-strong); border: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--rule-strong);
  font-size: 12px; font-family: var(--font-mono);
  color: var(--ink-2); background: var(--paper);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 8px;
  font: 500 15px/1 var(--font-sans);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cb-blue); color: white; }
.btn-primary:hover { background: var(--cb-blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { filter: brightness(0.95); }
.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 10px; }

/* call-to-action helpers */
.cb-hero-cta { text-align: center; margin: 4px 0 44px; }
.cb-cta-row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

section { position: relative; }
.section-pad { padding: 96px 0; }
@media (max-width: 720px) { .section-pad { padding: 56px 0; } }

/* editorial headline treatment */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  font-weight: 400;
}
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; }
h4 { font-weight: 600; }
p { color: var(--ink-2); }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); }

.bg-paper-2 { background: var(--paper-2); }
.bg-cb { background: var(--cb-blue); color: #fff; }
.bg-cb p, .bg-cb .lead { color: rgba(255,255,255,0.85); }
.bg-cb .eyebrow { color: rgba(255,255,255,0.7); }

.kbd {
  font-family: var(--font-mono); font-size: 12px;
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--rule-strong);
  background: var(--paper); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px;
}

/* inline codeBoot button glyphs — expanded from <span data-cb-glyph="…"> by
   main.js into the real codeBoot SVGs. Sized to ride along with the text. */
.cb-glyph { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.22em; flex: none; }
.cb-glyph--play  { color: var(--accent); }
.cb-glyph--step  { color: var(--cb-blue); }
.cb-glyph--pause { color: var(--cb-blue); }
.cb-glyph--stop  { color: var(--err); }
.cb-book-run .cb-glyph { color: currentColor; }   /* white on the blue button */
.cb-book-run { display: inline-flex; align-items: center; gap: 6px; }

/* ============================ NAV ============================ */
.cb-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.cb-nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.cb-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.cb-logo { color: #fff; flex: none; display: block; }   /* block: avoids inline-baseline ride-up. box is currentColor (white) */
.cb-brand .cb-logo { width: 30px; height: 30px; align-self: center; margin-block: auto; filter: drop-shadow(0 1px 2px rgba(20, 40, 80, 0.18)); }
.cb-brand-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.cb-nav-links { display: flex; gap: 22px; margin-left: 18px; }
.cb-nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 6px 2px; position: relative; }
.cb-nav-links a:hover { color: var(--ink); }
.cb-nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.cb-langtoggle { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--font-mono); color: var(--ink-3); }
.cb-langtoggle a { background: transparent; border: 0; cursor: pointer; color: var(--ink-3); font: 500 13px var(--font-mono); padding: 4px 6px; border-radius: 4px; text-decoration: none; }
.cb-langtoggle a:hover { color: var(--ink); }
.cb-langtoggle a.is-on { color: var(--ink); background: var(--paper-2); }
@media (max-width: 880px) { .cb-nav-links { display: none; } }

/* ============================ HERO ============================ */
.cb-hero { padding: 56px 0 80px; }
@media (max-width: 720px) { .cb-hero { padding: 32px 0 56px; } }
/* Hero headline: "codeBoot" wordmark on top, "simply code." sub-tagline under.
   Editorial type contrast — muted italic "simply" + bold blue "code." */
.cb-hero-head { margin: 0 0 56px; text-align: center; }
/* Two-line headline: muted, lighter base text so the bold-italic blue "Boot"
   punches. One sentence per line, no end-of-line periods. */
.cb-hero-tagline {
  display: block;
  font-size: clamp(18px, 3vw, 34px);   /* the line below codeBoot */
  font-weight: 400;          /* less bold */
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-3);       /* less dark */
}
.cb-hero-cb {
  display: inline-block;
  font-style: normal;
  font-weight: 700;
  color: var(--cb-blue);
  font-size: clamp(56px, 12vw, 150px); /* much bigger than the line below */
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 0.12em;
}
.cb-hero-ide-wrap { max-width: 1180px; margin: 0 auto; }
.cb-ide-frame-label {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-3);
  padding: 0 4px 10px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.cb-hero-footnote {
  margin-top: 28px;
  display: flex; gap: 28px;
  justify-content: center; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.cb-hero-foot-item { display: inline-flex; align-items: center; gap: 8px; }
.cb-hero-foot-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rule-strong); }

/* ====================== WHAT IT IS / GRID ====================== */
.cb-what-head { max-width: 1000px; margin-bottom: 56px; }
.cb-feature-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}
@media (max-width: 880px) { .cb-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cb-feature-grid { grid-template-columns: 1fr; } }
.cb-feature {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  transition: background .2s;
}
.cb-feature:hover { background: var(--paper-2); }
.cb-feature-n { color: var(--accent); font-size: 12px; letter-spacing: 0.1em; display: inline-block; margin-bottom: 22px; }
.cb-feature h3 { font-size: 22px; margin-bottom: 10px; }
.cb-feature p { font-size: 15px; line-height: 1.55; }

/* ========================= EXAMPLES ========================= */
.cb-examples-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 48px; align-items: start; }
@media (max-width: 980px) { .cb-examples-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ===================== EXAMPLES CAROUSEL ===================== */
.cb-carousel-head { max-width: 1000px; margin-bottom: 40px; }
.cb-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.cb-carousel-viewport { overflow: hidden; padding: 6px 0 44px; }   /* bottom room for the IDE drop-shadow */
.cb-carousel-track { display: flex; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.cb-carousel-slide { flex: 0 0 100%; min-width: 0; padding: 0 2px; }
.cb-carousel-cap { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 0 4px 4px; }
.cb-carousel-desc { margin: 0 4px 12px; padding: 0; font-size: 14px; color: var(--ink-2); }
.cb-carousel-arrow {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  border: 1px solid var(--rule-strong); background: var(--paper);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink-2); transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.cb-carousel-arrow:hover { background: var(--paper-2); border-color: var(--cb-blue); color: var(--cb-blue); }
.cb-carousel-arrow:active { transform: translateY(1px); }
.cb-carousel-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cb-carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.cb-carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--rule-strong); cursor: pointer; transition: background .15s, transform .15s; }
.cb-carousel-dot.is-on { background: var(--cb-blue); transform: scale(1.3); }
@media (max-width: 720px) {
  .cb-carousel { grid-template-columns: 1fr; }
  .cb-carousel-arrow { display: none; }   /* navigate via the dots on small screens */
}

/* ===================== BY DESIGN (NOT IN) ===================== */
.cb-notin-head { max-width: 1000px; margin-bottom: 48px; }
.cb-notin-grid {
  display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}
@media (max-width: 680px) { .cb-notin-grid { grid-template-columns: 1fr; } }
.cb-notin-card {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.cb-notin-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.cb-notin-x { color: var(--err); font-weight: 700; }
.cb-notin-card h3 {
  font-size: 21px; margin-bottom: 10px;
  text-decoration: line-through;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 2px;
}
.cb-notin-card p { font-size: 15px; line-height: 1.55; }
.cb-notin-note { margin-top: 28px; font-size: 13px; color: var(--ink-3); max-width: 780px; }

/* ========================== LLM ERA ========================== */
.cb-llm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .cb-llm-grid { grid-template-columns: 1fr; gap: 32px; } }
.cb-llm-bullets li { align-items: flex-start; font-size: 15px; }
.cb-llm-bullets li::before { margin-top: 1px; }
.cb-llm-card { background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20, 74, 133, 0.25); }
.cb-llm-card-head { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.cb-llm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); }
.cb-llm-card-title { margin-left: 8px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.cb-llm-msg { padding: 18px; border-bottom: 1px solid var(--rule); }
.cb-llm-msg:last-child { border-bottom: 0; }
.cb-llm-msg-who { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.cb-llm-msg-ai { background: rgba(27, 95, 170, 0.04); }
.cb-llm-msg p { font-size: 14.5px; margin: 0; color: var(--ink-2); line-height: 1.55; }
.cb-llm-snippet { margin: 12px 0 0; padding: 12px 14px; background: #0f1b2d; color: #e6edf6; border-radius: 8px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.cb-llm-msg code { font-family: var(--font-mono); font-size: 0.92em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; color: var(--cb-blue); }
.cb-llm-msg-ai code { background: rgba(255, 255, 255, 0.65); }

/* ===================== CAPABILITY SECTIONS ===================== */
/* Shared template for the one-per-feature sections: copy + a live demo,
   alternating sides via .reverse. */
.cb-cap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center; }
.cb-cap-grid.reverse { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.cb-cap-grid.reverse .cb-cap-copy { order: 1; }
@media (max-width: 980px) {
  .cb-cap-grid, .cb-cap-grid.reverse { grid-template-columns: 1fr; gap: 28px; }
  .cb-cap-grid.reverse .cb-cap-copy { order: 0; }
}
.cb-cap-copy .eyebrow { margin-bottom: 14px; }
.cb-cap-copy h2 { margin-bottom: 16px; }

/* ===================== HARDWARE / IoT ===================== */
.cb-hw-head { max-width: 1000px; margin-bottom: 48px; }
.cb-hw-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .cb-hw-grid { grid-template-columns: 1fr; gap: 32px; } }
.cb-hw-card {
  background: #0f1b2d; color: #e6edf6; border-radius: 14px; padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(15, 27, 45, 0.55);
}
.cb-hw-board {
  border: 1px solid rgba(255,255,255,0.14); border-radius: 10px;
  background: linear-gradient(160deg, #16243a, #0c1626);
  padding: 22px; position: relative; overflow: hidden;
}
.cb-hw-chip {
  width: 84px; height: 84px; margin: 8px auto 16px; border-radius: 8px;
  background: #1d3554; border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font: 700 13px var(--font-mono); color: #7fd0ff; letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 6px rgba(0,0,0,0.18);
}
.cb-hw-pins { display: flex; justify-content: center; gap: 6px; }
.cb-hw-pin { width: 6px; height: 18px; background: #c9a227; border-radius: 0 0 2px 2px; opacity: 0.85; }
.cb-hw-flash { margin-top: 18px; font: 12px var(--font-mono); color: #8fa3bd; text-align: center; }
.cb-hw-flash b { color: #7fd0ff; font-weight: 600; }
.cb-hw-firmwares { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.cb-hw-fw { font: 500 11px var(--font-mono); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); color: #cdd9e8; }

/* ========================= MICROAPPS ========================= */
.cb-micro-head { max-width: 1000px; margin-bottom: 56px; }
/* Microapp IDEs need more room than the default slot: block A shows the editor
   AND the playground HTML window side by side, which is cramped at the default
   height. Give the microapp slots a taller frame. */
#microapps .cb-ide-slot,
#microapps .cb-real-wrap { height: clamp(540px, 74vh, 720px); }
@media (max-width: 720px) {
  #microapps .cb-ide-slot,
  #microapps .cb-real-wrap { height: 78vh; min-height: 520px; }
}

/* one-click "share as a link" pill */
.cb-share {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 7px 7px 7px 14px;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  background: var(--paper); max-width: 100%;
}
.cb-share-icon { font-size: 14px; }
.cb-share-url { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-share-btn { flex: none; font-size: 12px; color: #fff; background: var(--cb-blue); padding: 5px 12px; border-radius: 999px; }
.cb-share-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

/* block B's dice "stage" — deliberately styled as host-page chrome (dashed
   frame), so it reads as part of the page rather than the codeBoot IDE. */
.cb-stage {
  margin-top: 18px; padding: 24px;
  border: 1px dashed var(--rule-strong); border-radius: 12px;
  background: var(--paper); text-align: center;
}
.cb-stage-label { font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; margin-bottom: 12px; }
.cb-stage-dice { font-size: 72px; line-height: 1; margin: 4px 0 16px; }
.cb-stage-btn { font-family: var(--font-sans); }
.cb-stage-note { margin-top: 12px; font-size: 11px; color: var(--accent); letter-spacing: 0.03em; }
.cb-micro-share-note {
  max-width: 760px; margin: 56px auto 0; text-align: center;
  font-size: 15px; line-height: 1.6; color: var(--ink-2);
}
.cb-micro-share-note .cb-glyph { color: var(--accent); }

/* ========================= EDUCATION ========================= */
/* screenshot placeholder — stands in until real interface screenshots land */
.cb-shot {
  border: 1px dashed var(--rule-strong); border-radius: 12px;
  background: var(--paper-2); min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 60px -30px rgba(20, 74, 133, 0.15);
}
.cb-shot-label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.cb-edu-cta {
  margin-top: 64px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cb-edu-cta p { max-width: 620px; font-size: 17px; color: var(--ink-2); margin: 0; }
.cb-edu-head { max-width: 1000px; margin-bottom: 64px; }
.cb-edu-block { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
.cb-edu-block.reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.cb-edu-block.reverse .cb-edu-copy { order: 1; }
@media (max-width: 980px) {
  .cb-edu-block, .cb-edu-block.reverse { grid-template-columns: 1fr; gap: 32px; }
  .cb-edu-block.reverse .cb-edu-copy { order: 0; }
}
.cb-bullets { list-style: none; padding: 0; margin: 22px 0 0; }
.cb-bullets li {
  padding: 10px 0; border-top: 1px solid var(--rule);
  color: var(--ink-2); font-size: 14.5px;
  display: flex; align-items: center; gap: 12px;
}
.cb-bullets li::before { content: "\2192"; color: var(--accent); font-family: var(--font-mono); }
.cb-bullets li:last-child { border-bottom: 1px solid var(--rule); }

/* book mock */
.cb-book {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 30px 60px -30px rgba(20, 74, 133, 0.25);
  overflow: hidden;
}
.cb-book-chrome { display: grid; grid-template-columns: 8px 1fr; }
.cb-book-spine { background: var(--cb-blue); }
.cb-book-page { padding: 32px 36px 28px; background: linear-gradient(to right, rgba(27,95,170,0.03), transparent 24px); }
.cb-book-meta { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.cb-book-h { font-size: 26px; margin: 14px 0 12px; letter-spacing: -0.01em; font-weight: 400; }
.cb-book-p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cb-book-codeblock {
  margin-top: 18px; padding: 16px 18px;
  background: var(--paper-2);
  border-left: 3px solid var(--cb-blue);
  font-size: 13.5px; line-height: 1.7;
  border-radius: 0 8px 8px 0;
}
.cb-book-runrow { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule-strong); }
.cb-book-run { font: 500 12px var(--font-mono); background: var(--cb-blue); color: white; border: 0; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.cb-book-runhint { font-size: 11.5px; color: var(--ink-3); font-family: var(--font-sans); }
.cb-book-output { margin-top: 12px; padding: 10px 12px; background: #D6DDEA; border-radius: 4px; font-size: 13px; color: #0E1726; }
.cb-book-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 12px; }
.cb-book-next { color: var(--accent); }

/* lms mock */
.cb-lms { background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 12px; padding: 24px 24px 12px; box-shadow: 0 30px 60px -30px rgba(20, 74, 133, 0.25); }
.cb-lms-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.cb-lms-eyebrow { font-size: 10px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.cb-lms-title { font-size: 20px; font-weight: 600; margin-top: 4px; }
.cb-lms-sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.cb-lms-tag { font: 500 10px var(--font-mono); letter-spacing: 0.1em; padding: 4px 8px; border-radius: 999px; background: rgba(43,122,75,0.12); color: var(--ok); text-transform: uppercase; }
.cb-lms-chart { padding: 20px 0 12px; border-bottom: 1px solid var(--rule); position: relative; }
.cb-lms-chart-label { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.cb-lms-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 90px; align-items: end; }
.cb-lms-bar { background: var(--cb-blue); border-radius: 3px 3px 0 0; position: relative; min-height: 12px; }
.cb-lms-bar:last-child { background: var(--accent); }
.cb-lms-bar-val { position: absolute; bottom: calc(100% + 4px); left: 0; right: 0; text-align: center; font-size: 10px; color: var(--ink-3); }
.cb-lms-xaxis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 6px; font-size: 10px; color: var(--ink-3); text-align: center; }
.cb-lms-table { padding-top: 4px; }
.cb-lms-row { display: grid; grid-template-columns: 1.6fr 1fr 0.7fr 1fr; padding: 12px 0; font-size: 13.5px; border-bottom: 1px solid var(--rule); }
.cb-lms-row:last-child { border-bottom: 0; }
.cb-lms-row-head { color: var(--ink-3); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 0 10px; }

/* ========================== AWARDS ========================== */
.cb-award-grid { display: grid; gap: 56px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 980px) { .cb-award-grid { grid-template-columns: 1fr; } }
.cb-award-quote { margin: 36px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,0.2); max-width: 580px; }
.cb-award-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; padding: 36px 36px 28px; backdrop-filter: blur(8px); }
.cb-medal { width: 160px; height: 200px; margin: 0 auto 32px; position: relative; }
.cb-medal-ribbon { position: absolute; top: 0; left: 30px; width: 36px; height: 110px; background: linear-gradient(180deg, #C56E2E, #8C4818); transform: skewY(-12deg); z-index: 1; }
.cb-medal-ribbon-2 { left: auto; right: 30px; transform: skewY(12deg); background: linear-gradient(180deg, #C56E2E, #8C4818); }
.cb-medal-circle {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E5B27A, #B57A2E 60%, #6B4218);
  display: flex; align-items: center; justify-content: center; z-index: 2;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25), inset 0 0 0 6px rgba(0,0,0,0.15), 0 20px 40px -20px rgba(0,0,0,0.6);
}
.cb-medal-inner {
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C8923D, #8C5A1D);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.cb-medal-big { font-family: var(--font-serif); font-style: italic; font-size: 36px; color: white; }
.cb-medal-big sup { font-size: 18px; }
.cb-medal-cap { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; margin-top: 2px; color: rgba(255,255,255,0.85); }
.cb-award-meta { display: grid; gap: 0; }
.cb-meta-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.18); font-size: 13.5px; }
.cb-meta-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.cb-meta-k { color: rgba(255,255,255,0.55); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.cb-meta-v { color: white; font-weight: 500; }
.cb-award-place { color: rgba(255,255,255,0.85); font-weight: 400; font-size: 22px; margin-top: 8px; }
.cb-award-pq { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.45; color: white; }
.cb-award-pqwho { font-family: var(--font-mono); margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.65); }

/* ======================= TRACK RECORD ======================= */
.cb-track-head { max-width: 980px; margin-bottom: 64px; }
.cb-stats { display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); }
@media (max-width: 880px) { .cb-stats { grid-template-columns: repeat(2, 1fr); } }
.cb-stat { padding: 30px 28px 32px 0; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.cb-stat:last-child { border-right: 0; }
.cb-stat-k { font-family: var(--font-serif); font-size: 56px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--cb-blue); }
.cb-stat-l { margin-top: 10px; font-weight: 600; font-size: 14.5px; }
.cb-stat-c { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.cb-timeline { display: grid; gap: 0; }
.cb-tl-row { display: grid; grid-template-columns: 80px 30px 1fr; gap: 18px; align-items: start; padding-bottom: 32px; }
.cb-tl-year { font-family: var(--font-mono); font-size: 14px; color: var(--accent); padding-top: 2px; }
.cb-tl-rail { position: relative; height: 100%; min-height: 60px; }
.cb-tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cb-blue); margin: 6px auto 0; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--cb-blue); }
.cb-tl-line { position: absolute; top: 20px; bottom: -32px; left: 50%; width: 1px; background: var(--rule-strong); transform: translateX(-50%); }
.cb-tl-title { font-weight: 600; font-size: 17px; }
.cb-tl-text { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; max-width: 540px; }

/* ======================== PHILOSOPHY ======================== */
.cb-philo { max-width: 980px; margin: 0 auto; text-align: left; padding: 32px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.cb-philo-big { font-family: var(--font-serif); font-style: italic; font-size: clamp(28px, 4vw, 48px); line-height: 1.2; letter-spacing: -0.02em; margin: 24px 0 0; font-weight: 400; }
.cb-philo-mark { color: var(--accent); font-size: 1.4em; line-height: 0; vertical-align: -0.1em; }

/* ========================== TRY-IT ========================== */
.cb-try-head { max-width: 980px; margin-bottom: 40px; }
.cb-try-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 16px; flex-wrap: wrap; }
.cb-try-kbds { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================== TEAM =========================== */
.cb-team-head { max-width: 900px; margin-bottom: 48px; }
.cb-team-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .cb-team-grid { grid-template-columns: repeat(2, 1fr); } }
.cb-team-card { padding: 28px 22px 26px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 10px; transition: transform .15s ease, border-color .15s ease; }
.cb-team-card:hover { transform: translateY(-2px); border-color: var(--cb-blue); }
.cb-team-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--cb-blue); color: white; display: flex; align-items: center; justify-content: center; font: 600 16px var(--font-mono); margin-bottom: 22px; }
.cb-team-card:nth-child(2) .cb-team-avatar { background: var(--accent); }
.cb-team-card:nth-child(3) .cb-team-avatar { background: #2B6A4C; }
.cb-team-card:nth-child(4) .cb-team-avatar { background: var(--ink-2); }
.cb-team-name { font-weight: 600; font-size: 16px; }
.cb-team-role { font-family: var(--font-mono); color: var(--ink-3); font-size: 12px; margin-top: 4px; letter-spacing: 0.02em; }

/* ========================== CONTACT ========================== */
.cb-contact { max-width: 760px; margin: 0 auto; text-align: center; }
.cb-contact h2 { color: #fff; }
.cb-contact .lead { margin-left: auto; margin-right: auto; }
.cb-contact-cta { margin-top: 32px; }

/* ========================== FOOTER ========================== */
.cb-footer { padding: 72px 0 36px; border-top: 1px solid var(--rule-strong); background: var(--paper); }
.cb-footer-grid { display: grid; gap: 40px; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 880px) { .cb-footer-grid { grid-template-columns: 1fr 1fr; } }
.cb-footer .cb-brand-mark { transform: translateY(2px); }
.cb-footer-h { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.cb-footer-col ul { list-style: none; padding: 0; margin: 0; }
.cb-footer-col li { padding: 5px 0; font-size: 14px; }
.cb-footer-col a { color: var(--ink-2); text-decoration: none; }
.cb-footer-col a:hover { color: var(--ink); }
.cb-footer-bot { display: flex; justify-content: space-between; padding: 18px 0 0; flex-wrap: wrap; gap: 12px; }
.cb-footer-small { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* code token colors (book snippet) */
.tok-kw { color: #8E3A8C; font-weight: 600; }
.tok-str { color: #2B6A4C; }
.tok-com { color: #8A8473; font-style: italic; }
.tok-num { color: #B5651D; }
.tok-fn  { color: #1B5FAA; }
.tok-id  { color: var(--ink); }
.tok-pn  { color: #6A7587; }

/* =================== REAL codeBoot EMBED =================== */
/* Placeholder box: matches .cb-real-wrap so the slot reserves its space from
   first paint, avoiding a layout shift when main.js swaps in the real wrapper. */
.cb-ide-slot {
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(20, 74, 133, 0.35);
}
/* Responsive IDE height — slot and mounted wrapper share the same rule so they
   always match (no layout shift). Scales with the viewport; the hero IDE is a
   bit taller, and on phones it takes a fixed share of the screen. */
.cb-ide-slot, .cb-real-wrap { height: clamp(440px, 66vh, 600px); }
.cb-ide-slot.cb-ide--tall, .cb-real-wrap.cb-ide--tall { height: clamp(480px, 74vh, 680px); }
@media (max-width: 720px) {
  .cb-ide-slot, .cb-real-wrap,
  .cb-ide-slot.cb-ide--tall, .cb-real-wrap.cb-ide--tall { height: 72vh; min-height: 440px; }
}
.cb-real-wrap {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20, 74, 133, 0.35);
}
.cb-real-host { width: 100%; height: 100%; }
.cb-real-host > .cb-vm,
.cb-real-host > div { height: 100% !important; }
.cb-real-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--paper);
}
.cb-real-bar { width: 180px; height: 3px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.cb-real-bar > div { width: 40%; height: 100%; background: var(--cb-blue); animation: cb-real-slide 1.4s ease-in-out infinite; }
.cb-real-loading-label { font-family: var(--font-mono); margin-top: 14px; font-size: 12px; color: var(--ink-3); }
@keyframes cb-real-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.cb-real-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 24px;
  background: var(--paper);
}
.cb-real-fallback p { max-width: 360px; font-size: 14px; }
