/* Post-specific styles for `teaching-gpt-5-to-use-a-computer`
 * (the Archon post). Loaded by /styles/posts/<slug>.css only on
 * this post — other posts pay nothing for this file.
 *
 * Universal tokens live in src/styles/tokens.css; the viz mount
 * scaffold (<d-figure data-viz>) lives in src/styles/viz-base.css.
 * Everything here is specific to the 8 viz components used by
 * this post: FlowDiagram, HowItWorks, TilesVsPatches, GRPOViz,
 * LoopBand, TestTimeCompute, StreamingVsLoop, EndToEndVision. */

.archon-flow-simple {
  --fg: var(--viz-fg);
  --muted: var(--viz-muted);
  --border: var(--viz-hairline);
  width: 100%;
  padding: 24px 20px;
  /* border-box so padding stays inside the 100% width — otherwise the
   * element overflows its parent by `padding-x` (40px here) and gets
   * silently clipped by overflow: clip on the page body. */
  box-sizing: border-box;
}

.archon-flow-simple .flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.archon-flow-simple .flow-node {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 16px 10px;
  background: var(--viz-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  overflow-wrap: anywhere;
}

.archon-flow-simple .flow-node:hover {
  border-color: var(--viz-muted);
  box-shadow: none;
}

.archon-flow-simple .node-label {
  font-family: 'SF Pro Text', -apple-system, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 4px;
}

.archon-flow-simple .node-desc {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.archon-flow-simple .flow-arrow {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0.6;
}

.archon-flow-simple .flow-explanation {
  background: var(--viz-soft);
  border-radius: 6px;
  padding: 12px 14px;
  border-left: 3px solid var(--viz-hairline);
}

.archon-flow-simple .explanation-text {
  font-family: 'SF Pro Text', -apple-system, system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.archon-flow-simple .explanation-text strong {
  color: var(--fg);
  font-weight: 600;
}

/* Stack vertically before the horizontal layout starts clipping the
 * widest label ("prava-fc-small"). 900px is the safe threshold for
 * 4 nodes + 3 arrows inside the ~720px text column. */
@media (max-width: 900px) {
  .archon-flow-simple .flow-container {
    flex-direction: column;
    gap: 12px;
  }

  .archon-flow-simple .flow-arrow {
    transform: rotate(90deg);
  }

  .archon-flow-simple .flow-node {
    width: 100%;
    max-width: 280px;
  }
}



/* Loop band */
.archon-loopband { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: var(--viz-bg); }
.archon-loopband .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--viz-hairline); background: var(--viz-soft); font-family: 'SF Pro Text', Menlo, monospace; color: var(--viz-fg); }
.archon-loopband .arrow { color: var(--viz-muted); opacity: 0.8; }



/* Streaming vs loop with racing animation inside existing bars */
.archon-streaming { 
  padding: 12px; 
  background: var(--viz-bg); 
  display: grid; 
  gap: 10px; 
}
.archon-streaming .row { 
  display: grid; 
  grid-template-columns: auto 1fr; 
  gap: 12px; 
  align-items: center; 
}
.archon-streaming .label { 
  font-family: 'SF Pro Text', Menlo, monospace; 
  color: var(--viz-muted); 
  font-size: 0.9rem; 
}
.archon-streaming .bar { 
  height: 10px; 
  border-radius: 999px; 
  position: relative; 
  overflow: hidden; 
  background: var(--viz-soft);
}
.archon-streaming .bar.segmented.sequential-lighting {
  background: var(--viz-soft);
  display: flex;
  gap: 2px;
  padding: 2px;
}

.archon-streaming .segment {
  flex: 1;
  height: 6px;
  background: rgba(42,120,255,0.1);
  border-radius: 2px;
  margin-right: 4px;
  animation: segment-light-up 20s ease-in-out infinite;
}

.archon-streaming .segment:last-child {
  margin-right: 0;
}

@keyframes segment-light-up {
  0%, 12% { 
    background: rgba(42,120,255,0.1);
  }
  15% { 
    background: rgba(42,120,255,0.7);
    transform: scaleY(1.3);
  }
  18% {
    background: rgba(42,120,255,0.1);
    transform: scaleY(1);
  }
  100% { 
    background: rgba(42,120,255,0.1);
  }
}

.archon-streaming .bar.continuous.loading-style { 
  background: rgba(30,166,114,0.1);
}

.archon-streaming .loading-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(30,166,114,0.3), 
    rgba(30,166,114,0.6), 
    rgba(30,166,114,0.8));
  border-radius: inherit;
  animation: loading-progress 20s ease-out infinite;
}

@keyframes loading-progress {
  0% { 
    width: 0; 
  }
  60% { 
    width: 100%; 
  }
  100% { 
    width: 100%; 
  }
}

/* Racing elements inside the bars */
.archon-streaming .racing-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--viz-bg);
  border: 1px solid var(--viz-hairline);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.archon-streaming .racing-trail {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: inherit;
  z-index: 2;
}

/* Screenshot racing - stuttering motion */
.archon-streaming .screenshot-dot {
  animation: screenshot-move 6s ease-in-out infinite;
}

.archon-streaming .screenshot-trail {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,149,0,0.2) 30%, 
    rgba(255,149,0,0.6) 100%);
  animation: screenshot-trail-grow 6s ease-in-out infinite;
}

/* Streaming racing - smooth motion */
.archon-streaming .streaming-dot {
  animation: streaming-move 6s linear infinite;
}

.archon-streaming .streaming-trail {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(52,199,89,0.2) 30%, 
    rgba(52,199,89,0.6) 100%);
  animation: streaming-trail-grow 6s linear infinite;
}

@keyframes screenshot-move {
  0% { left: 0; }
  20% { left: 25%; }
  30% { left: 25%; }  /* Pause */
  50% { left: 50%; }
  60% { left: 50%; }  /* Pause */
  80% { left: 75%; }
  90% { left: 75%; }  /* Pause */
  100% { left: 90%; }
}

@keyframes screenshot-trail-grow {
  0% { width: 0; }
  20% { width: 25%; }
  30% { width: 25%; }
  50% { width: 50%; }
  60% { width: 50%; }
  80% { width: 75%; }
  90% { width: 75%; }
  100% { width: 90%; }
}

@keyframes streaming-move {
  0% { left: 0; }
  100% { left: 95%; }
}

@keyframes streaming-trail-grow {
  0% { width: 0; }
  100% { width: 95%; }
}

.streaming-race .race-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

.streaming-race .race-track {
  position: relative;
}

.streaming-race .track-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.9rem;
  color: var(--viz-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.streaming-race .track-line {
  position: relative;
  height: 6px;
  background: var(--viz-soft);
  border-radius: 3px;
  overflow: hidden;
}

/* Racing dots */
.streaming-race .runner {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
}

.streaming-race .runner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--viz-bg);
  border: 2px solid #007aff;
  position: relative;
  z-index: 2;
}

/* Trails with gradient fade */
.streaming-race .runner-trail {
  position: absolute;
  top: 50%;
  left: 0;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 3px;
  z-index: 1;
}

/* Screenshot runner - stops and starts */
.streaming-race .screenshot-runner {
  animation: screenshot-race 8s ease-in-out infinite;
}

.streaming-race .screenshot-trail {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,149,0,0.1) 10%, 
    rgba(255,149,0,0.4) 50%, 
    rgba(255,149,0,0.6) 100%);
  animation: screenshot-trail 8s ease-in-out infinite;
}

/* Streaming runner - smooth continuous */
.streaming-race .streaming-runner {
  animation: streaming-race 8s linear infinite;
}

.streaming-race .streaming-trail {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(52,199,89,0.1) 10%, 
    rgba(52,199,89,0.4) 50%, 
    rgba(52,199,89,0.6) 100%);
  animation: streaming-trail 8s linear infinite;
}

/* Animation keyframes */
@keyframes screenshot-race {
  0% { left: 0; }
  15% { left: 20%; }
  25% { left: 20%; }  /* Pause for screenshot */
  40% { left: 45%; }
  50% { left: 45%; }  /* Pause for screenshot */
  65% { left: 70%; }
  75% { left: 70%; }  /* Pause for screenshot */
  100% { left: 85%; }
}

@keyframes screenshot-trail {
  0% { width: 0; }
  15% { width: 20%; }
  25% { width: 20%; }
  40% { width: 45%; }
  50% { width: 45%; }
  65% { width: 70%; }
  75% { width: 70%; }
  100% { width: 85%; }
}

@keyframes streaming-race {
  0% { left: 0; }
  100% { left: 95%; }
}

@keyframes streaming-trail {
  0% { width: 0; }
  100% { width: 95%; }
}

.streaming-race .race-insight {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.95rem;
  color: var(--viz-muted);
  padding-top: 24px;
  border-top: 1px solid var(--viz-hairline);
}

/* How it works - With timing gradients */
.archon-how-simple {
  background: var(--viz-soft);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.archon-how-simple .how-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.archon-how-simple .how-step {
  text-align: center;
  padding: 16px 12px;
  position: relative;
}

.archon-how-simple .step-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
}

.archon-how-simple .step-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--viz-fg);
  margin-bottom: 4px;
}

.archon-how-simple .step-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.85rem;
  color: var(--viz-muted);
  margin-bottom: 12px;
}

.archon-how-simple .how-arrow {
  font-size: 1.2rem;
  color: var(--viz-muted);
  flex-shrink: 0;
  padding-top: 45px;
}

/* Timing gradient bars under each step */
.archon-how-simple .step-timing {
  width: 80px;
  height: 4px;
  background: var(--viz-soft);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.archon-how-simple .step-timing .timing-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.archon-how-simple .step-timing.fast .timing-fill {
  width: 20%;
  background: linear-gradient(90deg, #34c759, #30b350);
}

.archon-how-simple .step-timing.variable .timing-fill {
  width: 100%;
  background: linear-gradient(90deg, #34c759 0%, #ffcc00 50%, #ff9500 100%);
}

.archon-how-simple .timing-value {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.7rem;
  color: var(--viz-muted);
  white-space: nowrap;
}

/* Summary section */
.archon-how-simple .how-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--viz-hairline);
  flex-wrap: wrap;
}

.archon-how-simple .summary-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.archon-how-simple .summary-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.85rem;
  color: var(--viz-muted);
}

.archon-how-simple .summary-value {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.archon-how-simple .summary-value.fast {
  color: #34c759;
}

.archon-how-simple .summary-value.slow {
  color: #ff9500;
}

.archon-how-simple .summary-detail {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.75rem;
  color: var(--viz-muted);
}

.archon-how-simple .summary-divider {
  color: var(--viz-muted);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .archon-how-simple {
    padding: 20px 16px;
  }
  
  .archon-how-simple .how-grid {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  
  .archon-how-simple .how-step {
    width: 100%;
    padding: 12px 8px;
  }
  
  .archon-how-simple .step-icon {
    font-size: 2rem;
    margin-bottom: 6px;
  }
  
  .archon-how-simple .step-label {
    font-size: 0.95rem;
  }
  
  .archon-how-simple .step-desc {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }
  
  .archon-how-simple .how-arrow {
    transform: rotate(90deg);
    padding: 0;
    margin: 8px 0;
    font-size: 1rem;
  }
  
  .archon-how-simple .step-timing {
    width: 60px;
  }
  
  .archon-how-simple .timing-value {
    font-size: 0.65rem;
    top: 6px;
  }
}



/* Tiles vs Patches - Jony Ive inspired minimal design */
.tiles-vs-patches-clean {
  background: var(--viz-soft);
  border: 1px solid var(--viz-hairline);
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.tiles-vs-patches-clean .tvp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.tiles-vs-patches-clean .tvp-section {
  position: relative;
}

.tiles-vs-patches-clean .tvp-header {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--viz-fg);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.tiles-vs-patches-clean .tvp-content {
  display: flex;
  gap: 24px;
  align-items: center;
}

.tiles-vs-patches-clean .visual-side {
  flex-shrink: 0;
}

.tiles-vs-patches-clean .screen-viz {
  width: 160px;
  height: 100px;
  background: var(--viz-bg);
  border: 1px solid var(--viz-hairline);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

/* Tiles grid */
.tiles-vs-patches-clean .tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  height: 100%;
  gap: 0.5px;
  padding: 0.5px;
}

.tiles-vs-patches-clean .tile {
  background: var(--viz-soft);
  border: 0.5px solid var(--viz-hairline);
}

/* Patches grid */
.tiles-vs-patches-clean .patch-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  height: 100%;
  gap: 0.5px;
  padding: 0.5px;
}

.tiles-vs-patches-clean .patch {
  background: var(--viz-soft);
  border: 0.5px solid var(--viz-hairline);
}

.tiles-vs-patches-clean .patch.active {
  background: rgba(0,122,255,0.15);
  border-color: rgba(0,122,255,0.3);
}

/* UI Element (button) */
.tiles-vs-patches-clean .ui-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #007AFF;
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  box-shadow: none;
}

.tiles-vs-patches-clean .ui-element.focused {
  box-shadow: 0 0 0 2px rgba(0,122,255,0.2);
}

/* Info side */
.tiles-vs-patches-clean .info-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tiles-vs-patches-clean .info-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tiles-vs-patches-clean .info-item .value {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--viz-fg);
  letter-spacing: -0.02em;
}

.tiles-vs-patches-clean .info-item .label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.85rem;
  color: var(--viz-muted);
  font-weight: 400;
}

.tiles-vs-patches-clean .info-item.emphasis .value {
  color: #007AFF;
  font-weight: 400;
}

/* Bottom insight */
.tiles-vs-patches-clean .tvp-insight {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--viz-muted);
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--viz-hairline);
}

@media (max-width: 768px) {
  .tiles-vs-patches-clean .tvp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .tiles-vs-patches-clean .tvp-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .tiles-vs-patches-clean .screen-viz {
    margin: 0 auto;
  }
  
  .tiles-vs-patches-clean .info-side {
    align-items: center;
  }
}

/* End-to-end vision comparison */
.end-to-end-vision {
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.end-to-end-vision .vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.end-to-end-vision .vision-section {
  position: relative;
}

.end-to-end-vision .vision-header {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--viz-fg);
  margin-bottom: 20px;
  text-align: center;
}

.end-to-end-vision .vision-content {
  background: var(--viz-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--viz-hairline);
}

.end-to-end-vision .vision-gif {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--viz-hairline);
}

.end-to-end-vision .vision-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.end-to-end-vision .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.end-to-end-vision .detail-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.85rem;
  color: var(--viz-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.end-to-end-vision .detail-value {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.95rem;
  color: var(--viz-fg);
  font-weight: 400;
}

.end-to-end-vision .vision-insight {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--viz-muted);
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--viz-hairline);
}

@media (max-width: 768px) {
  .end-to-end-vision .vision-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .end-to-end-vision {
    padding: 24px;
  }
}

/* Speed-Precision Tradeoff - Clear, elegant, Ive-worthy */
.speed-precision-tradeoff {
  background: var(--viz-soft);
  border-radius: 16px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.speed-precision-tradeoff .tradeoff-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--viz-fg);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.speed-precision-tradeoff .tradeoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.speed-precision-tradeoff .tradeoff-option {
  background: var(--viz-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--viz-hairline);
}

.speed-precision-tradeoff .option-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.speed-precision-tradeoff .option-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--viz-fg);
}

.speed-precision-tradeoff .option-time {
  font-family: 'SF Mono', monospace;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--viz-fg);
}

/* Time bars - visual representation */
.speed-precision-tradeoff .option-bar {
  height: 4px;
  background: var(--viz-soft);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.speed-precision-tradeoff .bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.speed-precision-tradeoff .bar-fill.fast-fill {
  background: #34c759;
}

.speed-precision-tradeoff .bar-fill.precise-fill {
  background: #007aff;
}

/* When to use section */
.speed-precision-tradeoff .option-when {
  margin-bottom: 20px;
}

.speed-precision-tradeoff .when-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--viz-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.speed-precision-tradeoff .when-examples {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.9rem;
  color: var(--viz-muted);
  line-height: 1.5;
}

/* Stats */
.speed-precision-tradeoff .option-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--viz-hairline);
}

.speed-precision-tradeoff .stat {
  text-align: center;
}

.speed-precision-tradeoff .stat-number {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--viz-fg);
  margin-bottom: 4px;
}

.speed-precision-tradeoff .stat-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.75rem;
  color: var(--viz-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Bottom insight */
.speed-precision-tradeoff .tradeoff-insight {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.95rem;
  color: var(--viz-muted);
  padding-top: 24px;
  border-top: 1px solid var(--viz-hairline);
}

@media (max-width: 768px) {
  .speed-precision-tradeoff .tradeoff-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .speed-precision-tradeoff {
    padding: 24px;
  }
}

/* GRPO visualization - Shows actual click attempts */
.grpo-visualization {
  background: var(--viz-soft);
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.grpo-visualization .grpo-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--viz-fg);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.grpo-visualization .grpo-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

/* Mock UI target */
.grpo-visualization .ui-mock {
  position: relative;
  width: 300px;
  height: 200px;
  background: var(--viz-bg);
  border: 1px solid var(--viz-hairline);
  border-radius: 8px;
  margin: 0 auto;
  overflow: hidden;
  cursor: pointer;
}

/* Geo image container */
.grpo-visualization .geo-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
}

.grpo-visualization .geo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grpo-visualization .tokenizer-output {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--viz-hairline);
}

.grpo-visualization .tokenizer-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.75rem;
  color: var(--viz-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.grpo-visualization .tokenizer-text {
  background: rgba(0, 0, 0, 0.03);
  padding: 12px 14px;
  border-radius: 6px;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 0.75rem;
  line-height: 1.7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 110px;
}

.grpo-visualization .token {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  padding: 2px 4px;
  border-radius: 3px;
  display: inline-block;
}

.grpo-visualization .token-separator {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
}

.grpo-visualization .geo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 12px;
  z-index: 2;
}

.grpo-visualization .geo-location {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.grpo-visualization .geo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.95rem;
  color: var(--viz-muted);
  user-select: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.grpo-visualization .target-button {
  position: absolute;
  top: 55%;
  left: 40%;
  transform: translate(-50%, -50%);
  background: #007aff;
  color: white;
  padding: 8px 20px;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  z-index: 2;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.2s ease, background 0.2s ease;
}

.grpo-visualization .target-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.grpo-visualization .target-button:active {
  transform: translate(-50%, -50%) scale(0.97);
}

.grpo-visualization .target-button:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.6);
  outline-offset: 4px;
}

/* Click attempts */
.grpo-visualization .click-attempt {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  border: 1px solid var(--viz-hairline);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
    opacity 0.4s ease;
  z-index: 1;
}

.grpo-visualization .click-attempt.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.grpo-visualization .click-attempt:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

/* Equation display */
.grpo-visualization .grpo-equation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--viz-bg);
  border-radius: 8px;
  border: 1px solid var(--viz-hairline);
  min-width: 0;
  overflow: hidden;
}

.grpo-visualization .equation-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grpo-visualization .eq-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.85rem;
  color: var(--viz-muted);
}

.grpo-visualization .eq-value {
  font-family: 'SF Mono', monospace;
  font-size: 0.9rem;
  color: var(--viz-fg);
  font-weight: 500;
  transition: color 0.3s ease, transform 0.35s ease, opacity 0.3s ease;
  display: inline-flex;
  justify-content: flex-end;
  width: 5.5ch;
}

.grpo-visualization .eq-value.baseline {
  color: var(--viz-muted);
}

.grpo-visualization .equation-line.baseline.active .eq-value.baseline {
  color: var(--viz-fg);
}

.grpo-visualization .eq-value[data-placeholder="true"] {
  opacity: 0.35;
}

.grpo-visualization .equation-line.live {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--viz-hairline);
}

.grpo-visualization .equation-line.active .eq-value {
  font-weight: 600;
  transform: translateY(-1px);
}

.grpo-visualization .equation-line.positive .eq-value {
  color: #34c759;
}

.grpo-visualization .equation-line.negative .eq-value {
  color: #ff3b30;
}

.grpo-visualization .equation-line.live .eq-value {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.grpo-visualization .grpo-insight {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.95rem;
  color: var(--viz-muted);
  padding-top: 24px;
  border-top: 1px solid var(--viz-hairline);
}

/* Minimal Kernel Display */
.grpo-visualization .minimal-stage {
  font-family: 'SF Mono', monospace;
  font-size: 0.6rem;
  color: var(--viz-muted);
  text-align: right;
  margin-bottom: 4px;
  margin-top: -8px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.grpo-visualization .minimal-stage:hover {
  color: var(--viz-muted);
}

.grpo-visualization .minimal-header {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--viz-hairline);
}

.grpo-visualization .minimal-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.grpo-visualization .minimal-label {
  font-family: 'SF Mono', monospace;
  font-size: 0.65rem;
  color: var(--viz-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grpo-visualization .minimal-distance {
  font-family: 'SF Mono', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--viz-fg);
}

.grpo-visualization .minimal-reward {
  font-family: 'SF Mono', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.grpo-visualization .minimal-kernel {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.grpo-visualization .minimal-kernel-label {
  font-family: 'SF Mono', monospace;
  font-size: 0.7rem;
  color: var(--viz-muted);
  text-align: right;
}

.grpo-visualization .minimal-bar-bg {
  height: 6px;
  background: var(--viz-soft);
  border-radius: 3px;
  overflow: hidden;
}

.grpo-visualization .minimal-bar {
  height: 100%;
  transition: width 0.3s ease;
  min-width: 1%;
}

.grpo-visualization .minimal-value {
  font-family: 'SF Mono', monospace;
  font-size: 0.7rem;
  color: var(--viz-muted);
  font-weight: 500;
}

.grpo-visualization .minimal-weighted {
  color: var(--viz-muted);
  font-size: 0.65rem;
}

.grpo-visualization .minimal-output {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--viz-hairline);
}

.grpo-visualization .minimal-output-label {
  font-family: 'SF Mono', monospace;
  font-size: 0.65rem;
  color: var(--viz-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.grpo-visualization .minimal-output-text {
  font-family: 'SF Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--viz-fg);
  background: var(--viz-soft);
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--viz-hairline);
  min-height: 120px;
  max-height: none;
  overflow-y: auto;
}

.grpo-visualization .minimal-weighted {
  color: var(--viz-muted);
  font-size: 0.65rem;
}

.grpo-visualization .minimal-total {
  font-family: 'SF Mono', monospace;
  font-size: 0.8rem;
  color: var(--viz-muted);
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--viz-hairline);
}

/* Duplicate removed - using .minimal-output above instead */

/* Geo Caption */
.grpo-visualization .geo-caption {
  font-family: 'SF Mono', monospace;
  font-size: 0.7rem;
  color: var(--viz-muted);
  text-align: center;
  margin-top: 8px;
  padding: 6px 8px;
  background: var(--viz-soft);
  border-radius: 4px;
}

/* Test-time compute with real screenshots */
.test-time-compute {
  background: var(--viz-soft);
  border-radius: 16px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.test-time-compute .screenshot-container {
  margin-bottom: 20px;
}

.test-time-compute .screenshot {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--viz-hairline);
  max-height: 150px;
  object-fit: cover;
}

.test-time-compute .stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--viz-hairline);
}

.test-time-compute .stat {
  text-align: center;
}

.test-time-compute .stat-number {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--viz-fg);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.test-time-compute .stat-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.75rem;
  color: var(--viz-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

@media (max-width: 768px) {
  .grpo-visualization .grpo-demo {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .grpo-visualization .ui-mock {
    width: 250px;
    height: 160px;
  }
}

@keyframes grpo-ping {
  0% {
    transform: scale(0.25);
    opacity: 0.4;
  }
  70% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}


.test-time-compute .ttc-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--viz-fg);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.test-time-compute .ttc-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.test-time-compute .ttc-option {
  background: var(--viz-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--viz-hairline);
  transition: all 0.3s ease;
  cursor: pointer;
}

.test-time-compute .ttc-option:hover {
  border-color: var(--viz-hairline);
  box-shadow: none;
}

.test-time-compute .ttc-option.active {
  transform: translateY(-2px);
}

/* Header */
.test-time-compute .option-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.test-time-compute .option-mode {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--viz-fg);
}

.test-time-compute .option-time {
  font-family: 'SF Mono', monospace;
  font-size: 0.9rem;
  color: var(--viz-muted);
}

/* Thinking visualization */
.test-time-compute .thinking-visual {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.test-time-compute .thought-bubble {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--viz-soft);
  border-radius: 20px;
}

.test-time-compute .thought-bubble.small {
  padding: 8px 12px;
}

.test-time-compute .thought-dot {
  display: inline-block;
  color: var(--viz-muted);
  animation: thinking-pulse 1.5s ease-in-out infinite;
}

.test-time-compute .thought-dot.delay1 {
  animation-delay: 0.2s;
}

.test-time-compute .thought-dot.delay2 {
  animation-delay: 0.4s;
}

.test-time-compute .thought-dot.delay3 {
  animation-delay: 0.6s;
}

.test-time-compute .thought-dot.delay4 {
  animation-delay: 0.8s;
}

@keyframes thinking-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Response box */
.test-time-compute .response-box {
  background: var(--viz-soft);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  min-height: 80px;
}

.test-time-compute .response-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--viz-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.test-time-compute .response-text {
  font-family: 'SF Mono', monospace;
  font-size: 0.85rem;
  color: var(--viz-fg);
  line-height: 1.4;
}

/* Footer */
.test-time-compute .option-footer {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.85rem;
  color: var(--viz-muted);
  text-align: center;
}

/* Bottom insight */
.test-time-compute .ttc-insight {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.95rem;
  color: var(--viz-muted);
  padding-top: 24px;
  border-top: 1px solid var(--viz-hairline);
}

@media (max-width: 768px) {
  .test-time-compute .ttc-comparison {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .test-time-compute {
    padding: 24px;
  }
}


