.process-grid { align-items: start; }
.process-toggle svg { width: 15px; height: 15px; flex: 0 0 auto; }
.process-toggle:disabled { cursor: default; opacity: 0.6; }
.process.is-paused .process-live i { animation-play-state: paused; }
.build-browser-bar { height: 32px; }
.build-browser-bar strong {
  margin-left: 9px;
  color: var(--muted);
  font: 500 11px/1 Inter, Arial, sans-serif;
}
.build-preview .build-canvas {
  position: relative;
  display: block;
  height: 360px;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
}
.build-caption { min-height: 62px; }
.build-preview .build-progress i { width: 100%; transform: scaleX(var(--process-progress, 0)); transform-origin: left; transition: none; }
.process-scene { position: absolute; inset: 0; min-width: 0; }
.process-scene[hidden] { display: none !important; }
.process-scene.is-entering { z-index: 2; animation: process-scene-in 620ms cubic-bezier(.22, .61, .36, 1) both; }
.process-scene.is-leaving { z-index: 1; animation: process-scene-out 620ms ease both; pointer-events: none; }
.build-preview[data-running="false"] .process-scene,
.build-preview[data-running="false"] .mindmap-links path { animation-play-state: paused; }

.process-mindmap { background: #f7f9fd; }
.mindmap { position: absolute; inset: 15px; }
.mindmap-links { position: absolute; inset: 0; width: 100%; height: 100%; }
.mindmap-links path {
  fill: none;
  stroke: #afbdd1;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 500;
  stroke-dashoffset: 0;
}
.process-scene:not([hidden]) .mindmap-links path { animation: mindmap-connect 700ms ease both; }
.mindmap-links path:nth-child(2) { stroke: var(--mk-orange); }
.mindmap-links path:nth-child(3) { stroke: #4b8f8b; }
.mindmap-links path:nth-child(4) { stroke: var(--mk-red); }
.mindmap-root,
.mindmap-node {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  padding: 11px 13px;
}
.mindmap-root {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 31%; min-height: 69px;
  border-color: var(--mk-navy);
  background: var(--mk-navy);
  color: #fff;
  text-align: center;
}
.mindmap-root span { color: #afc2e0; font-size: 8px; font-weight: 700; }
.mindmap-root strong { color: #fff; font-size: 18px; }
.mindmap-node { width: 29%; min-height: 78px; background: #fff; }
.mindmap-node > span { color: var(--mk-orange); font-size: 10px; font-weight: 800; }
.mindmap-node strong { color: var(--mk-navy); font-size: 14px; line-height: 1.2; }
.mindmap-node small { color: var(--muted); font-size: 11px; }
.mindmap-goals { left: 6%; top: 9%; }
.mindmap-audience { right: 6%; top: 9%; }
.mindmap-content { left: 6%; bottom: 9%; }
.mindmap-features { right: 6%; bottom: 9%; }

.process-guide { display: flex; flex-direction: column; gap: 12px; padding: 20px 26px; background: #fff; }
.guide-heading { display: flex; align-items: center; justify-content: space-between; }
.guide-heading div > span { color: var(--muted); font-size: 9px; font-weight: 700; }
.guide-heading h3 { margin: 2px 0 0; font-size: 23px; line-height: 1.15; }
.guide-version { color: var(--mk-orange); font-size: 28px; font-weight: 800; }
.guide-sections { flex: 1; display: grid; grid-template-rows: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.guide-sections li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 7px 0; }
.guide-sections li > b { align-self: start; margin-top: 3px; color: #98a8bc; font-size: 11px; }
.guide-sections strong { color: var(--mk-navy); font-size: 13px; }
.guide-sections p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.guide-sections p > span { padding: 0 6px; color: var(--mk-orange); }
.guide-design { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.guide-swatch { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; border: 1px solid #ccd5e2; }
.guide-swatch-navy { background: var(--mk-navy); }
.guide-swatch-orange { background: var(--mk-orange); }
.guide-swatch-white { background: #fff; }
.guide-type { display: flex; align-items: center; gap: 8px; margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); font-size: 21px; font-weight: 700; }
.guide-type small { font-size: 10px; font-weight: 400; color: var(--muted); }
.guide-approved { display: flex; align-items: center; gap: 7px; color: #29705c; font-size: 11px; }
.guide-approved svg { width: 16px; height: 16px; }

.process-code { display: grid; grid-template-rows: 42px minmax(0, 1fr) 32px; background: #111a24; color: #e5edf7; }
.process-code-tab { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-bottom: 1px solid #2c3744; font: 11px/1 Consolas, monospace; }
.process-code-tab span:first-child { color: #f3b85a; }
.process-code-tab span:last-child { color: #8195a9; }
.process-code-editor { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 22px 20px; overflow: hidden; }
.process-code-lines,
.process-code-editor pre { margin: 0; font: 12px/1.8 Consolas, 'Courier New', monospace; letter-spacing: 0; }
.process-code-lines { color: #627389; text-align: right; user-select: none; }
.process-code-editor pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.process-code-editor code { font: inherit; }
.process-code-tag { color: #83d5e0; }
.process-code-attr { color: #f3b85a; }
.process-code-value { color: #b8d99e; }
.process-code-caret { display: inline-block; width: 2px; height: 12px; margin-left: 2px; background: var(--mk-orange); vertical-align: -1px; }
.process-code-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-top: 1px solid #2c3744; color: #91a5b9; font: 10px/1 Consolas, monospace; }
.process-code-footer span { display: inline-flex; align-items: center; gap: 7px; }
.process-code-footer i { width: 5px; height: 5px; border-radius: 50%; background: #83c9a1; }

.process-finished { --finished-accent: #071f4d; display: grid; grid-template-rows: 44px minmax(0, 1fr) 66px 30px; background: #fff; }
.finished-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; }
.finished-nav > strong { font-size: 13px; color: var(--finished-accent); }
.finished-nav > strong > span { color: var(--finished-accent); }
.finished-nav > div { display: flex; gap: 17px; }
.finished-nav a { font-size: 10px; font-weight: 600; }
.finished-hero { position: relative; min-height: 0; isolation: isolate; overflow: hidden; }
.finished-hero > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.finished-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0a172adb, #0a172a99 42%, #0a172a0d 85%); }
.finished-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; padding: 16px 25px; }
.finished-hero-copy > span { font-size: 9px; color: #fff; font-weight: 700; }
.finished-hero-copy h3 { margin: 8px 0; color: #fff; font-size: 32px; line-height: 1.1; }
.finished-hero-copy p { margin: 0 0 16px; color: #e5eaf2; font-size: 12px; }
.finished-hero-copy a { display: inline-flex; align-items: center; gap: 14px; min-height: 31px; padding: 0 12px; background: var(--finished-accent); border: 1px solid #ffffff80; border-radius: 3px; color: #fff; font-size: 10px; font-weight: 700; }
.finished-hero-copy a:hover { background: #fff; color: var(--finished-accent); }
.process-finished a:focus-visible { outline: 2px solid var(--mk-orange); outline-offset: 3px; }
.finished-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; padding: 8px 20px; }
.finished-benefits > div { display: grid; gap: 4px; }
.finished-benefits b { color: var(--finished-accent); font-size: 10px; }
.finished-benefits strong { color: var(--mk-navy); font-size: 10px; }
.finished-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 0 20px; color: var(--muted); font-size: 9px; }
.finished-footer span:last-child { display: flex; align-items: center; gap: 6px; color: #29705c; }
.finished-footer i { width: 5px; height: 5px; border-radius: 50%; background: #3e9a72; }

@keyframes process-scene-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes process-scene-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes mindmap-connect { from { stroke-dashoffset: 500; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .process-scene, .process-scene .mindmap-links path { animation: none !important; }
}

@media (max-width: 620px) {
  .process-demo-controls { flex-wrap: wrap; }
  .process-demo-controls > * { padding: 0 10px; font-size: 11px; }
  .process .steps li { padding-left: 0; }
  .mindmap { inset: 12px; }
  .mindmap-root { width: 48%; min-height: 60px; }
  .mindmap-root span { font-size: 7px; }
  .mindmap-root strong { font-size: 16px; }
  .mindmap-node { width: 42%; padding: 10px; }
  .mindmap-node strong { font-size: 12px; }
  .mindmap-node small { font-size: 10px; }
  .mindmap-goals, .mindmap-content { left: 0; }
  .mindmap-audience, .mindmap-features { right: 0; }
  .process-guide { padding: 18px 16px; }
  .guide-heading h3 { font-size: 21px; }
  .guide-sections li { grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
  .guide-sections strong { font-size: 12px; }
  .guide-sections p { font-size: 10px; }
  .guide-sections p > span { padding: 0 2px; }
  .guide-swatch { width: 16px; height: 16px; }
  .guide-type { gap: 6px; padding-left: 8px; margin-left: 2px; font-size: 17px; }
  .guide-type small { max-width: 65px; font-size: 9px; }
  .process-code-editor { gap: 9px; grid-template-columns: 18px minmax(0, 1fr); padding: 20px 12px; }
  .process-code-lines, .process-code-editor pre { font-size: 10px; line-height: 1.9; }
  .process-code-footer { padding: 0 12px; font-size: 9px; }
  .finished-nav { padding: 0 14px; gap: 8px; }
  .finished-nav > strong { font-size: 11px; }
  .finished-nav > div { gap: 10px; }
  .finished-nav a { font-size: 9px; }
  .finished-hero-copy { padding: 15px 18px; }
  .finished-hero-copy h3 { font-size: 26px; }
  .finished-benefits { padding: 8px 14px; gap: 8px; }
  .finished-benefits strong { font-size: 9px; }
  .finished-footer { padding: 0 14px; }
}
