/* CodeDash Landing — design system
   Sans-serif teacher's-notebook direction, dark by default. */

html:has(body.cd-landing-page) {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.cd-landing-page) { scroll-behavior: auto; }
}

.cd-landing {
  --paper: #0e0e0e;
  --paper-2: #141414;
  --paper-3: #1a1a1a;
  --ink: #ededed;
  --ink-2: #b8b8b8;
  --ink-3: #6b6b6b;
  --rule: rgba(237, 237, 237, .10);
  --rule-2: rgba(237, 237, 237, .18);
  --accent: #D72638;
  --accent-ink: #ffffff;

  --display: "Hanken Grotesk", system-ui, sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  font-size: 16px;
  line-height: 1.5;
}

.cd-landing *,
.cd-landing *::before,
.cd-landing *::after {
  box-sizing: border-box;
}

.cd-landing ::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* primitives */
.cd-landing .mono {
  font-family: var(--mono);
  font-feature-settings: "zero", "ss02";
  letter-spacing: -0.005em;
}
.cd-landing .display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.022em;
}

.cd-landing a {
  color: inherit;
  text-decoration: none;
}
.cd-landing a:hover { color: var(--accent); }

.cd-landing button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* frame: persistent left/right margins, vertical rules */
.cd-landing .frame {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cd-landing .frame::before,
.cd-landing .frame::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rule);
  pointer-events: none;
}
.cd-landing .frame::before { left: var(--gutter); }
.cd-landing .frame::after { right: var(--gutter); }

/* buttons */
.cd-landing .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0;
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}
.cd-landing .btn:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}
.cd-landing .btn .arrow { transition: transform .2s ease; }
.cd-landing .btn:hover .arrow { transform: translateX(4px); }

.cd-landing .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid var(--rule-2);
  color: var(--ink);
  transition: border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.cd-landing .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* highlight (red ink underline) */
.cd-landing .ink-uline {
  background-image: linear-gradient(
    transparent 60%,
    rgba(215, 38, 56, .32) 60%,
    rgba(215, 38, 56, .32) 95%,
    transparent 95%
  );
  padding: 0 .04em;
}

/* ─── Hero ─── */
.cd-landing .cd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 16px;
}
.cd-landing .cd-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -.012em;
  color: var(--ink);
  line-height: 1;
}
.cd-landing .cd-nav-brand:hover { color: var(--ink); }
.cd-landing .cd-nav-brand-logo {
  height: 36px;
  width: auto;
  display: block;
  /* logo.svg is white-fill on dark by default */
}
.cd-landing .cd-nav-brand-sep {
  color: var(--ink-3);
  font-weight: 300;
  font-size: 22px;
  opacity: .55;
  line-height: 1;
}
.cd-landing .cd-nav-brand-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -.018em;
}

.cd-nav-brand-child span {
  font-size: 18px;
}

.cd-landing .cd-nav-brand-mark {
  height: 28px;
  width: 28px;
  display: block;
  border-radius: 6px;
}
.cd-landing .cd-nav-back {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .15s ease;
}
.cd-landing .cd-nav-back:hover { color: var(--ink); }
@media (max-width: 720px) {
  .cd-landing .cd-nav-brand { font-size: 18px; }
  .cd-landing .cd-nav-brand-logo { height: 28px; }
  .cd-landing .cd-nav-brand-sep { font-size: 18px; }
}
.cd-landing .cd-nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
  align-items: center;
  white-space: nowrap;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cd-landing .cd-nav-cta {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.cd-landing .cd-nav-cta:hover { color: #fff !important; opacity: .9; }

.cd-landing .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  padding: 72px 0 80px;
  align-items: stretch;
}
.cd-landing .hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 24px;
}
.cd-landing .hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cd-landing .hero-eyebrow-rule {
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.cd-landing h1.hero-title {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -.025em;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
.cd-landing .hero-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.cd-landing .hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cd-landing .hero-pillars {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.cd-landing .hero-pillar-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.cd-landing .hero-pillar-body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}

.cd-landing .hero-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cd-landing .hero-right-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .04em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Editor (live embed of codedash.dev) ─── */
.cd-landing .editor-embed {
  position: relative;
  background: #000;
  border: 1px solid #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6),
              0 0 0 1px rgba(0, 0, 0, .4);
  height: 720px;
  overflow: hidden;
}
.cd-landing .editor-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0c0c0c;
  color-scheme: dark;
}
@media (max-width: 880px) {
  .cd-landing .editor-embed { height: 560px; }
}

/* ─── Editor (textarea-based, mirrors product chrome — legacy, unused) ─── */
.cd-landing .editor {
  border: 1px solid #000;
  background: #000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 720px;
  font-family: var(--mono);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6),
              0 0 0 1px rgba(0, 0, 0, .4);
  overflow: hidden;
}

.cd-landing .editor-topbar {
  background: #0a0a0a;
  color: #ededed;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #000;
}
.cd-landing .editor-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-right: 1px solid #1f1f1f;
}
.cd-landing .editor-brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: #ededed;
}
.cd-landing .editor-brand-pill {
  font-size: 9px;
  padding: 2px 5px;
  background: #222;
  color: #aaa;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cd-landing .editor-project {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-family: var(--display);
  color: #ededed;
  white-space: nowrap;
}
.cd-landing .editor-project-name {
  font-weight: 600;
  white-space: nowrap;
}
.cd-landing .editor-project-edit {
  color: #666;
  font-size: 11px;
}
.cd-landing .editor-spacer { flex: 1; }
.cd-landing .editor-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  color: #aaa;
  font-size: 11px;
}

.pane-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  background: #2a2a2a;
  color: #ddd;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  border-radius: 2px;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}
.pane-btn:hover { background: #3a3a3a; }
.pane-btn.center { justify-content: center; width: 22px; }
.pane-row, .pane-row > * { white-space: nowrap; }

.cd-landing .editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
}
.cd-landing .editor-panes {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #0c0c0c;
  border-right: 1px solid #000;
}
.cd-landing .pane {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #000;
  min-height: 0;
  background: #0c0c0c;
  flex: 0 0 auto;
}
.cd-landing .pane:last-child { border-bottom: 0; }
.cd-landing .pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  color: #ededed;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.cd-landing .pane-header-label {
  text-transform: uppercase;
  white-space: nowrap;
}
.cd-landing .pane-header-tools {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.cd-landing .pane-textarea {
  width: 100%;
  height: 196px;
  resize: none;
  border: 0;
  outline: 0;
  background: #0c0c0c;
  color: #ededed;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 20px;
  padding: 10px 14px;
  caret-color: var(--accent);
  white-space: pre;
  overflow: auto;
  tab-size: 2;
}
.cd-landing .pane-textarea::selection { background: rgba(215, 38, 56, .35); }

.cd-landing .editor-right {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  background: #fff;
}
.cd-landing .preview-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cd-landing .preview-tabs {
  background: #1a1a1a;
  color: #ededed;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}
.cd-landing .preview-tabs .tabs-l,
.cd-landing .preview-tabs .tabs-r {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}
.cd-landing .preview-tabs .tabs-r { color: #888; }
.cd-landing .preview-tabs .tab-active { color: var(--accent); }
.cd-landing .preview-tabs .tab-dim { color: #888; }
.cd-landing .preview-frame {
  flex: 1;
  border: 0;
  background: #fff;
  min-height: 0;
}

.cd-landing .console {
  background: #0c0c0c;
  color: #ededed;
  border-top: 1px solid #000;
  display: flex;
  flex-direction: column;
  min-height: 130px;
}
.cd-landing .console-tabs {
  background: #1a1a1a;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  gap: 14px;
  color: #888;
  letter-spacing: .04em;
  white-space: nowrap;
}
.cd-landing .console-tabs .tab {
  cursor: pointer;
  white-space: nowrap;
  color: #888;
}
.cd-landing .console-tabs .tab.active { color: var(--accent); }
.cd-landing .console-body {
  flex: 1;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: #888;
}
.cd-landing .console-body.error { color: #ff7a85; }
.cd-landing .console-body .training {
  color: var(--accent);
  font-weight: 600;
}
.cd-landing .console-input {
  border-top: 1px solid #1a1a1a;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: #666;
}

.cd-landing .editor-status {
  background: #0a0a0a;
  color: #888;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #1a1a1a;
  white-space: nowrap;
  gap: 12px;
  flex-wrap: wrap;
}
.cd-landing .editor-status .status-l {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}

/* ─── Student work ─── */
.cd-landing .section-pad { padding: 80px 0 40px; }
.cd-landing .section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.cd-landing .section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cd-landing h2.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -.024em;
  margin: 0;
  text-wrap: balance;
  max-width: 18ch;
}

.cd-landing .student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.cd-landing .student-tile {
  display: block;
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  transition: border-color .2s ease, transform .25s ease;
}
.cd-landing .student-tile:hover { border-color: var(--accent); }
.cd-landing .student-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}
.cd-landing .student-thumb iframe {
  border: 0;
  width: 166.67%;
  height: 166.67%;
  transform: scale(0.6);
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}
.cd-landing .student-tile-hover {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, .6);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  opacity: 0;
  transition: opacity .2s ease;
}
.cd-landing .student-tile:hover .student-tile-hover { opacity: 1; }
.cd-landing .student-meta {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--rule);
}
.cd-landing .student-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.cd-landing .student-byline {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.cd-landing .student-footer-meta {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .06em;
}

/* ─── Three Rooms ─── */
.cd-landing .rooms-intro { padding: 80px 0 0; }
.cd-landing .rooms-intro-inner {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.cd-landing h2.rooms-title { max-width: 22ch; }

.cd-landing .room {
  padding: 60px 0;
  border-top: 1px solid var(--rule);
}
.cd-landing .room-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
}
.cd-landing .room-grid.flip { grid-template-columns: 7fr 5fr; }
.cd-landing .room-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}
.cd-landing .room-grid.flip .room-text { order: 2; }
.cd-landing .room-grid.flip .room-shot { order: 1; }
.cd-landing .room-step {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cd-landing .room-title {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.04;
  letter-spacing: -.022em;
  font-weight: 600;
  margin: 0 0 22px;
  text-wrap: balance;
}
.cd-landing .room-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 44ch;
  text-wrap: pretty;
}
.cd-landing .room-points {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cd-landing .room-point {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: baseline;
}
.cd-landing .room-point-bullet {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.cd-landing .room-point h4 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 3px;
  line-height: 1.4;
}
.cd-landing .room-point p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}
.cd-landing .room-shot { width: 100%; }

.cd-landing .shot-img {
  background: #0c0c0c;
  border: 1px solid var(--rule-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6),
              0 0 0 1px rgba(0, 0, 0, .4);
  overflow: hidden;
  width: 100%;
  display: block;
  line-height: 0;
}
.cd-landing .shot-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* product frame (used in room screenshots) */
.cd-landing .product-frame {
  background: #000;
  border: 1px solid #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 460px;
  font-family: var(--mono);
}
.cd-landing .product-frame-bar {
  background: #0a0a0a;
  color: #ededed;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  border-bottom: 1px solid #000;
  font-size: 11px;
  white-space: nowrap;
}
.cd-landing .product-frame-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.cd-landing .product-frame-title {
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-landing .product-frame-status {
  color: var(--accent);
  white-space: nowrap;
}
.cd-landing .product-frame-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* setup screenshot */
.cd-landing .setup-shot {
  display: grid;
  grid-template-columns: 180px 1fr;
  flex: 1;
  min-height: 0;
  background: #0c0c0c;
}
.cd-landing .setup-tree {
  padding: 10px 0;
  border-right: 1px solid #1a1a1a;
  color: #aaa;
  font-size: 11px;
  line-height: 1.9;
}
.cd-landing .setup-tree-head {
  padding: 0 12px;
  color: #666;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cd-landing .setup-tree .row {
  padding: 2px 12px;
  color: #aaa;
  border-left: 2px solid transparent;
}
.cd-landing .setup-tree .row.active {
  background: #1a1a1a;
  color: #fff;
  border-left-color: var(--accent);
}
.cd-landing .setup-tree .row .ico {
  color: #666;
  margin-right: 6px;
}
.cd-landing .setup-readme {
  display: flex;
  flex-direction: column;
  background: #fbfaf6;
  color: #161310;
  min-height: 0;
}
.cd-landing .setup-readme-tabs {
  background: #1a1a1a;
  color: #aaa;
  padding: 6px 12px;
  font-size: 11px;
  display: flex;
  gap: 14px;
  letter-spacing: .04em;
}
.cd-landing .setup-readme-tabs .tab-active { color: var(--accent); }
.cd-landing .setup-readme-tabs .tab-dim { color: #666; }
.cd-landing .setup-readme-tabs .spacer { flex: 1; }
.cd-landing .setup-readme-body {
  padding: 20px 24px;
  font-family: var(--display);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cd-landing .setup-lesson-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: #8a826f;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cd-landing .setup-lesson-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.018em;
  margin-bottom: 10px;
}
.cd-landing .setup-lesson-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: #2e2a23;
  margin-bottom: 10px;
}
.cd-landing .setup-lesson-body code,
.cd-landing .setup-lesson-body .mono-inline {
  font-family: var(--mono);
  background: #ebe5d8;
  padding: 1px 5px;
  font-size: 12px;
}
.cd-landing .setup-todo {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.cd-landing .setup-test-line {
  font-family: var(--mono);
  padding: 10px 12px;
  background: #ebe5d8;
  border-left: 3px solid var(--accent);
  font-size: 11px;
  color: #2e2a23;
}
.cd-landing .setup-test-line .pass {
  color: var(--accent);
  font-weight: 600;
}

/* run screenshot */
.cd-landing .run-shot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 0;
}
.cd-landing .run-panes {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  background: #0c0c0c;
  border-right: 1px solid #000;
  min-height: 0;
}
.cd-landing .run-pane {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #000;
  min-height: 0;
}
.cd-landing .run-pane:first-child { border-top: 0; }
.cd-landing .run-pane-head {
  background: #1a1a1a;
  color: #ededed;
  padding: 5px 10px;
  font-size: 10.5px;
  display: flex;
  justify-content: space-between;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cd-landing .run-pane-head .dim { color: #888; white-space: nowrap; }
.cd-landing .run-pane-body {
  flex: 1;
  background: #0c0c0c;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  color: #aaa;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
.cd-landing .code-line {
  display: grid;
  grid-template-columns: 32px 1fr;
}
.cd-landing .code-line .ln {
  text-align: right;
  padding-right: 8px;
  color: #444;
}
.cd-landing .code-line .lc {
  padding-right: 12px;
  white-space: pre;
}
.cd-landing .code-line.highlight { background: rgba(215, 38, 56, .08); }
.cd-landing .code-line.err { color: #ff7a85; }
.cd-landing .tok-k { color: #ff7a85; }
.cd-landing .tok-s { color: #9bd17f; }
.cd-landing .tok-a { color: #ededed; }
.cd-landing .tok-err { color: #ff7a85; }

.cd-landing .run-right {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  background: #fff;
}
.cd-landing .run-preview-tabs {
  background: #1a1a1a;
  color: #aaa;
  padding: 5px 10px;
  font-size: 10.5px;
  display: flex;
  gap: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.cd-landing .run-preview-tabs .dim { color: #666; white-space: nowrap; }
.cd-landing .run-preview-tabs .active {
  color: var(--accent);
  white-space: nowrap;
}
.cd-landing .run-preview-tabs .spacer { flex: 1; }
.cd-landing .run-preview-body {
  flex: 1;
  padding: 16px;
  font-family: Georgia, serif;
  background: #fff;
  overflow: hidden;
}
.cd-landing .run-preview-title {
  font-size: 14px;
  font-weight: 500;
  color: #161310;
  margin-bottom: 10px;
}
.cd-landing .run-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
}
.cd-landing .run-preview-grid > div { aspect-ratio: 1; }
.cd-landing .run-console {
  background: #0c0c0c;
  color: #ededed;
  border-top: 1px solid #000;
  min-height: 110px;
  display: flex;
  flex-direction: column;
}
.cd-landing .run-console-tabs {
  background: #1a1a1a;
  padding: 5px 10px;
  font-size: 10.5px;
  display: flex;
  gap: 14px;
  color: #888;
  letter-spacing: .04em;
  white-space: nowrap;
}
.cd-landing .run-console-body {
  padding: 10px 12px;
  flex: 1;
  font-size: 11px;
  line-height: 1.6;
}
.cd-landing .run-console-body .label {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}
.cd-landing .run-console-body .ref { color: #666; margin-top: 4px; }

/* collect screenshot */
.cd-landing .collect-shot {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0c0c0c;
  min-height: 0;
}
.cd-landing .collect-head {
  display: grid;
  grid-template-columns: 200px 70px 90px 1fr 60px;
  padding: 10px 16px;
  font-size: 10px;
  color: #888;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid #1a1a1a;
  background: #0a0a0a;
}
.cd-landing .collect-row {
  display: grid;
  grid-template-columns: 200px 70px 90px 1fr 60px;
  padding: 11px 16px;
  font-size: 12px;
  border-bottom: 1px solid #1a1a1a;
  align-items: center;
}
.cd-landing .collect-row .name {
  font-family: var(--display);
  color: #ededed;
  font-weight: 500;
  font-size: 13px;
}
.cd-landing .collect-row .tests {
  font-family: var(--mono);
  color: #aaa;
}
.cd-landing .collect-row .tests.full { color: var(--accent); }
.cd-landing .collect-row .submitted { color: #aaa; }
.cd-landing .collect-row .bar {
  width: 70%;
  height: 5px;
  background: #1a1a1a;
  display: block;
  position: relative;
}
.cd-landing .collect-row .bar > span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #666;
}
.cd-landing .collect-row .bar > span.full { background: var(--accent); }
.cd-landing .collect-row .open {
  color: #888;
  font-size: 10px;
  text-align: right;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.cd-landing .collect-foot {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: 10px 16px;
  font-size: 11px;
  color: #888;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Founder ─── */
.cd-landing .founder {
  padding: 100px 0 80px;
}
.cd-landing .founder-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
}
.cd-landing .founder-card {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.9;
  letter-spacing: .02em;
}
.cd-landing .founder-card .name {
  color: var(--ink);
  font-weight: 500;
}
.cd-landing .founder-quote {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.32;
  letter-spacing: -.018em;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-wrap: pretty;
}
.cd-landing .founder p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.cd-landing .founder p .mono-inline {
  font-family: var(--mono);
  font-size: 14px;
}

/* ─── Pricing ─── */
.cd-landing .pricing { padding: 60px 0 80px; border-top: 1px solid var(--rule); }
.cd-landing .pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 36px;
  border: 1px solid var(--rule-2);
}
.cd-landing .price-cell:first-child { border-right: 1px solid var(--rule-2); }
.cd-landing .price-card {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--paper-2);
  border: 1px solid var(--rule-2);
  border-top: 1px solid var(--rule-2);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 460px;
}
.cd-landing .price-card.accent { border-top: 3px solid var(--accent); }
.cd-landing .price-card .tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cd-landing .price-card.accent .tag { color: var(--accent); }
.cd-landing .price-card .head-row {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.cd-landing .price-card h3 {
  font-family: var(--display);
  font-size: 38px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -.022em;
}
.cd-landing .price-card .price {
  font-family: var(--mono);
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -.01em;
  font-weight: 500;
}
.cd-landing .price-card .price-period {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 6px;
  font-weight: 400;
}
.cd-landing .price-card .body {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  max-width: 40ch;
}
.cd-landing .price-bullets {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cd-landing .price-bullet {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: baseline;
}
.cd-landing .price-bullet .dash {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 14px;
}
.cd-landing .price-bullet .item {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.cd-landing .price-bullet .sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.cd-landing .price-cta {
  align-self: flex-start;
}
.cd-landing .price-card .grow { flex: 1; }
.cd-landing .price-card .small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .03em;
}
.cd-landing .pricing-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .03em;
  gap: 12px;
  flex-wrap: wrap;
}
.cd-landing .pricing-footer a { color: var(--accent); }

/* ─── Closing ─── */
.cd-landing .closing {
  padding: 120px 0 100px;
  border-top: 1px solid var(--rule);
}
.cd-landing .closing-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cd-landing .closing h2 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -.028em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
  max-width: 12ch;
}
.cd-landing .closing-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .cd-landing .hero-grid { grid-template-columns: 1fr !important; }
  .cd-landing .room-grid,
  .cd-landing .room-grid.flip { grid-template-columns: 1fr !important; }
  .cd-landing .room-grid > * { order: unset !important; }
}
@media (max-width: 880px) {
  .cd-landing .frame::before,
  .cd-landing .frame::after { display: none; }
  .cd-landing .founder-grid { grid-template-columns: 1fr !important; }
  .cd-landing .pricing-grid { grid-template-columns: 1fr !important; }
  .cd-landing .pricing-grid .price-cell:first-child {
    border-right: 0 !important;
    border-bottom: 1px solid var(--rule-2);
  }
  .cd-landing .pricing-footer { flex-direction: column; gap: 8px; }
  .cd-landing .editor { height: auto; }
  .cd-landing .editor-body { grid-template-columns: 1fr; }
  .cd-landing .editor-panes { border-right: 0; border-bottom: 1px solid #000; }
  .cd-landing .pane-textarea { height: 160px; }
  .cd-landing .preview-frame { min-height: 280px; }
}
