/* Retro Editorial Desktop Homepage */
.hm {
  color: var(--ink);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  text-align: start;
}

.hm :where(h1, h2, h3, p, ol, ul, pre, figure, blockquote) {
  margin: 0;
}
:where(.hm a) {
  color: inherit;
  text-decoration: none;
}
.hm :where(.hm-hero-layout, .hm-matrix-layout, .hm-split, .hm-responses, .hm-three, .hm-faq) > * {
  min-width: 0;
}
.hm pre {
  text-align: start;
  white-space: pre;
  tab-size: 2;
  overflow-x: auto;
  max-width: 100%;
  direction: ltr;
}
.hm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hm-tabular {
  font-variant-numeric: tabular-nums;
}
.hm-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.hm h1,
.hm h2,
.hm h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
}
.hm h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hm h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hm h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Retro Desktop Window Primitive */
.hm-window {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-hard);
  box-shadow: var(--shadow-md);
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}
.hm-window:hover {
  transform: translate(-1px, -1px);
}
.hm-winbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border-bottom: 1px solid var(--border-hard);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.02em;
}
.hm-win-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@keyframes hmWinEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hmBarSweep {
  from { transform: scaleX(0.15); }
  to { transform: scaleX(1); }
}
@keyframes hmCursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hm-win-enter {
  animation: hmWinEnter 320ms cubic-bezier(0.2, 0, 0, 1) both;
}
.hm-win-enter-delay {
  animation: hmWinEnter 320ms cubic-bezier(0.2, 0, 0, 1) 90ms both;
}

/* Full-bleed Hero with Retro Pastel Dithered Sky Backdrop */
.hm-hero {
  position: relative;
  isolation: isolate;
  padding-block: 36px 56px;
  border-bottom: 1px solid var(--border-hairline);
}
.hm-sky-wrap {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 540px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.hm-sky-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  will-change: transform;
}
html[data-theme="dark"] .hm-sky-img {
  filter: invert(1) hue-rotate(180deg) brightness(0.42) contrast(1.1);
  opacity: 0.55;
}
.hm-sky-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--surface));
}

.hm-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.hm-intro {
  box-shadow: var(--shadow-lg);
}
.hm-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
  font: 500 12px/1.4 var(--mono);
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.hm-eyebrow {
  color: var(--ink);
  font-weight: 600;
}
.hm-intro-copy,
.hm-lede,
.hm-highlight {
  color: var(--ink-secondary);
  font-size: 15.5px;
  line-height: 1.65;
  text-wrap: pretty;
}
.hm-intro-copy strong {
  color: var(--ink);
  font-weight: 600;
}

/* Retro Progress Meter */
.hm-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 500 12px/1.4 var(--mono);
  color: var(--ink-secondary);
}
.hm-meter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hm-meter-track {
  width: 100%;
  height: 22px;
  border: 1px solid var(--border-hard);
  background: var(--surface-chrome);
  padding: 2px;
  overflow: hidden;
}
.hm-meter-bar {
  height: 100%;
  width: 100%;
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 8px;
  transform-origin: left center;
  animation: hmBarSweep 850ms cubic-bezier(0.2, 0, 0, 1) both;
}
.hm-cursor {
  animation: hmCursorBlink 900ms steps(1) infinite;
}

/* Tactile Buttons & Chips */
.hm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hm-action,
.hm-outline,
.hm-btn-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-hard);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: transform 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
}
.hm-action:hover,
.hm-outline:hover,
.hm-btn-mono:hover {
  transform: translateY(-1px);
  background: var(--surface-muted);
}
.hm-action:active,
.hm-outline:active,
.hm-btn-mono:active {
  transform: translateY(1px);
}
.hm .hm-action-primary,
.hm .hm-btn-inverse {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border-color: var(--border-hard);
}
.hm .hm-action-primary:hover,
.hm .hm-btn-inverse:hover {
  background: var(--ink-secondary);
  color: var(--inverse-ink);
}
html[data-theme="dark"] .hm .hm-action-primary:hover,
html[data-theme="dark"] .hm .hm-btn-inverse:hover {
  background: #d4d4d4;
  color: #111111;
}
.hm-btn-mono {
  padding: 7px 14px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.02em;
}

.hm-facts {
  font: 500 12px/1.5 var(--mono);
  color: var(--ink-muted);
}
.hm-connections {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
}
.hm-connections > span {
  font: 600 11px/1.4 var(--mono);
  color: var(--ink-muted);
  margin-inline-end: 4px;
  letter-spacing: 0.04em;
}
.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-muted);
  color: var(--ink);
  font: 500 12px/1.3 var(--mono);
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}
.hm-chip[href]:hover {
  border-color: var(--border-hard);
  background: var(--surface);
}
.hm-chip b {
  font-weight: 500;
  color: var(--ink-muted);
}

/* Terminal Window */
.hm-terminal-shell {
  min-width: 0;
}
.hm-terminal {
  overflow: hidden;
  background: var(--surface);
}
.hm-terminal-head,
.hm-cardbar,
.hm-flex-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hm-terminal-head {
  padding: 8px 14px;
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border-bottom: 1px solid var(--border-hard);
}
.hm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hm-route {
  font: 500 12px/1.4 var(--mono);
  white-space: nowrap;
}
.hm-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.hm-terminal-tabs button {
  padding: 3px 8px;
  background: transparent;
  color: color-mix(in srgb, var(--inverse-ink) 70%, transparent);
  border: 1px solid transparent;
  font: 500 12px/1.35 var(--mono);
  transition: color 120ms ease-out, border-color 120ms ease-out;
}
.hm-terminal-tabs button:hover {
  color: var(--inverse-ink);
}
.hm-terminal-tabs button[aria-selected="true"] {
  color: var(--inverse-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.hm-hero-codepart {
  padding: 16px;
  background: var(--terminal-bg);
  color: var(--terminal-ink);
  border-bottom: 1px solid var(--border-hard);
}
.hm-codebox {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.hm-codebox pre,
.hm-config pre,
.hm-direct-answer pre {
  font: 400 12.5px/1.65 var(--mono);
  color: var(--terminal-ink);
}
.hm-codebox pre {
  flex: 1;
  min-width: 0;
}
.hm-copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--terminal-border);
  background: var(--terminal-head);
  color: var(--terminal-ink);
  font: 500 11.5px/1.4 var(--mono);
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}
.hm-copy:hover {
  border-color: var(--terminal-ink);
}
.hm-winbar .hm-copy {
  background: transparent;
  color: var(--inverse-ink);
  border-color: color-mix(in srgb, var(--inverse-ink) 35%, transparent);
}
.hm-winbar .hm-copy:hover {
  border-color: var(--inverse-ink);
}
.hm-copy-icon {
  display: none;
}
.hm-hero-codepart > p {
  color: var(--terminal-muted);
  font: 400 12px/1.55 var(--mono);
  margin-top: 10px;
}

.hm-steps {
  padding: 14px 16px 16px;
  background: var(--surface);
}
.hm-kicker {
  font: 500 11px/1.4 var(--mono);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hm-steps > div {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.hm-steps > div > p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-secondary);
  font: 400 12.5px/1.55 var(--mono);
}
.hm-steps b {
  min-width: 4.2rem;
  flex-shrink: 0;
  padding: 1px 6px;
  text-align: center;
  border: 1px solid var(--border-hairline);
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.hm-steps > div > p:last-child {
  color: var(--ink);
  font-weight: 500;
}
.hm-steps > div > p:last-child b {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border-color: var(--border-hard);
}

/* Monochrome Ticker Strip */
.hm-marquees {
  position: relative;
  border-bottom: 1px solid var(--border-hard);
}
.hm-marquee {
  width: 100%;
  overflow: hidden;
  padding-block: 10px;
}
.hm-strip-one {
  background: var(--surface-muted);
  color: var(--ink);
  border-bottom: 1px solid var(--border-hairline);
}
.hm-strip-two {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
}
.hm-belt {
  width: max-content;
  display: flex;
  animation: hm-scroll 40s linear infinite;
}
.hm-strip-two .hm-belt {
  animation-direction: reverse;
  animation-duration: 50s;
}
.hm-belt > div {
  display: flex;
  flex-shrink: 0;
}
.hm-belt span {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline-end: 1.25rem;
  font: 500 12px/1.4 var(--mono);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.hm-belt span::after {
  content: "//";
  opacity: 0.45;
}
.hm-marquees:hover .hm-belt,
.hm-marquees[data-paused] .hm-belt,
.hm-marquees[data-offscreen] .hm-belt {
  animation-play-state: paused;
}
#hm-pause {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-hard);
  font: 600 12px/1 var(--mono);
}
@keyframes hm-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Alternating Editorial Section Bands */
.hm-section {
  border-bottom: 1px solid var(--border-hairline);
}
.hm-surface-band {
  background: var(--surface);
}
.hm-muted-band {
  background: var(--surface-muted);
}
.hm-section > .hm-wrap {
  padding-block: 64px;
}
.hm-section.hm-short > .hm-wrap {
  padding-block: 56px;
}
.hm-label {
  display: inline-block;
  font: 500 12px/1.4 var(--mono);
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.hm-section h2 {
  max-width: 52rem;
}
.hm-section .hm-lede {
  max-width: 44rem;
  margin-top: 12px;
}
.hm-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* Interactive Retro Matrix Canvas Band */
.hm-matrix-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hm-matrix-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hm-matrix-copy .hm-lede {
  margin-top: 2px;
  font-size: 14.5px;
}
.hm-matrix-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.hm-matrix-canvas-wrap {
  padding: 12px;
  background: var(--surface);
}
#hm-life-canvas {
  display: block;
  width: 100%;
  height: 160px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-muted);
  cursor: crosshair;
}

/* Flow Comparison Frame */
.hm-flow-frame {
  margin-top: 32px;
}
.hm-flow-inner {
  padding: 18px;
  display: grid;
  gap: 16px;
}
.hm-flow {
  padding: 16px;
  border: 1px solid var(--border-hairline);
  background: var(--surface);
}
.hm-flow-red {
  background: var(--alert-bg);
  border-color: var(--alert-border);
}
.hm-flow-green {
  border-color: var(--border-hard);
  background: var(--surface-muted);
}
.hm-flow .hm-flex-title {
  font: 600 12px/1.4 var(--mono);
  color: var(--ink-muted);
  text-transform: uppercase;
}
.hm-flow-red .hm-flex-title {
  color: var(--alert-ink);
}
.hm-flow-green .hm-flex-title {
  color: var(--ink);
}
.hm-flow em,
.hm-tag,
.hm-tag-inv,
.hm-pill {
  display: inline-block;
  border: 1px solid var(--border-hard);
  padding: 2px 8px;
  font: 500 11.5px/1.4 var(--mono);
  font-style: normal;
}
.hm-flow-red em {
  color: var(--alert-ink);
  background: var(--surface);
  border-color: var(--alert-border);
}
.hm-flow-green em {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
}
.hm-flow ol {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.hm-flow li {
  border: 1px solid var(--border-hairline);
  padding: 10px 12px;
  background: var(--surface);
  font: 500 12.5px/1.5 var(--mono);
  color: var(--ink);
}
.hm-flow li small {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.hm-flow li small i {
  font-style: normal;
}
.hm-flow-red li:nth-child(3) {
  border-color: var(--alert-border);
  color: var(--alert-ink);
  font-weight: 600;
}
.hm-flow-red li:nth-child(n + 4) {
  opacity: 0.5;
  border-style: dashed;
  text-decoration: line-through;
}
.hm-flow-green li:last-child {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border-color: var(--border-hard);
}
.hm-flow-green li:last-child small {
  color: var(--inverse-ink);
}

/* 3-Column Editorial Cards */
.hm-three {
  display: grid;
  gap: 20px;
}
.hm-flow-notes,
.hm-uses,
.hm-terms {
  margin-top: 28px;
}
.hm-card-flat {
  background: var(--surface);
  border: 1px solid var(--border-hard);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 140ms ease-out;
}
.hm-card-flat:hover {
  transform: translate(-1px, -1px);
}
.hm-mono-index {
  font: 500 11.5px/1.4 var(--mono);
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}
.hm-card-flat p,
.hm-points p,
.hm-caption {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}
.hm-highlight {
  margin-top: 24px;
  max-width: 46rem;
}
.hm-highlight strong {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Split Layout + Subspace Diagram */
.hm-split,
.hm-faq {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hm-points {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.hm-points article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hm-glyph {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-hard);
  background: var(--surface);
  color: var(--ink);
  font: 600 13px/1 var(--mono);
}
.hm-text-link,
.hm-questions a {
  display: inline-block;
  font: 500 13px/1.5 var(--mono);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hm-text-link:hover,
.hm-questions a:hover {
  color: var(--ink-secondary);
}
.hm-points .hm-text-link,
.hm-personal .hm-text-link {
  margin-top: 8px;
}

.hm-cardbar {
  padding: 9px 14px;
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border-bottom: 1px solid var(--border-hard);
}
.hm-cardbar > b,
.hm-cardbar > small,
.hm-cardbar .hm-row > b,
.hm-flex-title code {
  font: 500 12px/1.4 var(--mono);
}
.hm-cardbar > small {
  color: color-mix(in srgb, var(--inverse-ink) 75%, transparent);
}
.hm-small-tabs button {
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--inverse-ink) 28%, transparent);
  background: transparent;
  color: color-mix(in srgb, var(--inverse-ink) 75%, transparent);
  font: 500 11.5px/1.35 var(--mono);
}
.hm-small-tabs button:hover {
  color: var(--inverse-ink);
  border-color: var(--inverse-ink);
}
.hm-small-tabs button[aria-selected="true"] {
  background: var(--inverse-ink);
  color: var(--inverse-surface);
  border-color: var(--inverse-ink);
  font-weight: 600;
}

.hm-graph-panel {
  padding: 18px;
  background: var(--surface);
}
.hm-graph-panel svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  color: var(--ink);
}
.hm-plane {
  fill: var(--surface-muted);
  stroke: var(--border-hard);
  stroke-width: 1.5;
}
.hm-axis {
  stroke: var(--alert-border);
  stroke-width: 2.5;
  stroke-dasharray: 5 5;
  transition: stroke 180ms ease;
}
.hm-graph-chip {
  fill: var(--surface);
  stroke: var(--border-hard);
  stroke-width: 1.5;
}
.hm-graph-chip-alt {
  fill: var(--inverse-surface);
  stroke: var(--border-hard);
  stroke-width: 1.5;
}
.hm-graph-invtext {
  fill: var(--inverse-ink);
}
.hm-diagram[data-view="base"] .hm-axis {
  stroke: var(--alert-border);
  stroke-dasharray: none;
  stroke-width: 4;
}
.hm-diagram[data-view="base"] .hm-graph-chip-alt {
  fill: var(--alert-bg);
  stroke: var(--alert-border);
}
.hm-diagram[data-view="base"] .hm-graph-invtext {
  fill: var(--alert-ink);
}
.hm-graph-panel p,
.hm-mini {
  color: var(--ink-muted);
  font: 400 12px/1.55 var(--mono);
  margin-top: 10px;
}

/* Response Comparison Window */
.hm-comparison {
  margin-top: 28px;
  box-shadow: var(--shadow-lg);
}
.hm-comparison-body {
  padding: 18px;
}
.hm-prompt {
  background: var(--surface-muted);
  color: var(--ink);
  border: 1px solid var(--border-hairline);
  padding: 12px 14px;
  font: 400 13px/1.6 var(--mono);
}
.hm-prompt b {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.hm-prompt p {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}
.hm-responses {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.hm-responses > article {
  min-width: 0;
  padding: 18px;
}
.hm-muted-answer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--alert-border);
  background: var(--alert-bg);
}
.hm-muted-answer > b {
  color: var(--alert-ink);
  font: 600 11.5px/1.4 var(--mono);
}
.hm-muted-answer h3 {
  margin-top: 10px;
  color: var(--alert-ink);
}
.hm-muted-answer p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--alert-ink);
}
.hm-muted-answer small {
  margin-top: auto;
  padding-top: 16px;
  color: var(--alert-ink);
  opacity: 0.8;
  font: 500 11px/1.4 var(--mono);
}
.hm-direct-answer {
  border: 1px solid var(--border-hard);
  background: var(--surface);
}
.hm-direct-answer .hm-flex-title b {
  font: 600 12px/1.4 var(--mono);
  color: var(--ink);
}
.hm-direct-answer .hm-flex-title code {
  color: var(--ink-muted);
}
.hm-direct-answer pre {
  margin-top: 12px;
  padding: 14px;
  background: var(--terminal-bg);
  border: 1px solid var(--border-hard);
}
.hm-direct-answer > p:not(.hm-mini) {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-secondary);
}
.hm-answer-actions {
  margin-top: 16px;
}
.hm-answer-actions .hm-action,
.hm-answer-actions .hm-outline {
  padding: 8px 14px;
  font-size: 13px;
}

/* Coding & Personal Client Tabs */
.hm-big-tabs {
  gap: 6px;
  margin-block: 20px 14px;
}
.hm-big-tabs button {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-hairline);
  padding: 7px 14px;
  font: 500 12.5px/1.4 var(--mono);
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}
.hm-big-tabs button:hover:not([aria-selected="true"]) {
  border-color: var(--border-hard);
}
.hm-big-tabs button[aria-selected="true"] {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border-color: var(--border-hard);
}

.hm-config {
  overflow: hidden;
  background: var(--terminal-bg);
  color: var(--terminal-ink);
}
.hm-config pre {
  padding: 16px;
}
.hm-caption {
  margin-top: 10px;
}
.hm-demoterm small {
  font: 500 12px/1.4 var(--mono);
}
.hm-tag {
  border-color: color-mix(in srgb, var(--inverse-ink) 35%, transparent);
  color: var(--inverse-ink);
}
.hm-tag-inv {
  background: var(--inverse-ink);
  color: var(--inverse-surface);
  border-color: var(--inverse-ink);
}
.hm-conversation {
  padding: 18px;
  background: var(--terminal-bg);
  color: var(--terminal-ink);
  display: grid;
  gap: 10px;
  font: 400 12.5px/1.65 var(--mono);
}
.hm-conversation p {
  overflow-wrap: anywhere;
}
.hm-conversation i,
.hm-curl-button i {
  color: var(--terminal-muted);
  font-style: normal;
}
.hm-conversation p:nth-child(2),
.hm-conversation p:nth-child(4) {
  color: var(--terminal-muted);
}
.hm-conversation p:last-child {
  font-weight: 600;
}

/* Personal Agent Window */
.hm-phone {
  width: min(100%, 420px);
  justify-self: center;
  overflow: hidden;
}
.hm-phone-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  background: var(--surface);
}
.hm-message,
.hm-phone-action,
.hm-phone-pending {
  padding: 10px 12px;
  border: 1px solid var(--border-hairline);
  background: var(--surface);
}
.hm-message {
  max-width: 92%;
}
.hm-message-own {
  margin-inline-start: auto !important;
  background: var(--surface-muted);
  border-color: var(--border-hard);
}
.hm-phone-action {
  border-color: var(--border-hard);
  background: var(--surface-muted);
}
.hm-phone-action small {
  color: var(--ink-muted);
  font: 500 11px/1.4 var(--mono);
}
.hm-phone-action p {
  margin-block: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.hm-phone-action .hm-row {
  gap: 8px;
}
.hm-phone-action button {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border-hard);
  font: 600 12px/1.3 var(--mono);
}
.hm-phone-deny {
  background: var(--surface);
  color: var(--ink);
}
.hm-phone-allow {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
}
.hm-phone-pending {
  border-style: dashed;
  color: var(--ink-muted);
  font: 500 12px/1.5 var(--mono);
}
.hm-phone-pending[data-choice="allow"] {
  border-style: solid;
  border-color: var(--ok-border);
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.hm-phone-pending[data-choice="deny"] {
  border-style: solid;
  border-color: var(--alert-border);
  background: var(--alert-bg);
  color: var(--alert-ink);
}
.hm-personal-text {
  grid-row: 1;
}
.hm-personal blockquote {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--border-hard);
  border-inline-start: 4px solid var(--border-hard);
  background: var(--surface-muted);
}
.hm-personal blockquote strong {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
}
.hm-personal blockquote p {
  color: var(--ink-secondary);
  font-size: 13.5px;
  margin-top: 6px;
}

/* 6-Model Lineup Pricing Table (Exact Stitch Style) */
.hm-pricecard {
  margin-top: 24px;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-hard);
  background: var(--surface);
}
.hm-prices {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: start;
}
.hm-prices thead tr {
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border-hard);
}
.hm-prices thead th {
  font: 600 12px/1.4 var(--mono);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 16px;
  white-space: nowrap;
}
.hm-prices tbody tr {
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color 120ms ease-out;
}
.hm-prices tbody tr:last-child {
  border-bottom: 0;
}
.hm-prices tbody tr:hover {
  background: var(--surface-muted);
}
.hm-prices tbody th,
.hm-prices td {
  padding: 14px 16px;
  text-align: start;
  vertical-align: middle;
}
.hm-prices tbody th a {
  display: block;
}
.hm-model-title {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 140ms cubic-bezier(0.2, 0, 0, 1);
}
.hm-model-row:hover .hm-model-title {
  transform: translateX(4px);
}
.hm-prices tbody th code {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font: 400 12px/1.5 var(--mono);
  overflow-wrap: anywhere;
}
.hm-prices td {
  font: 400 13px/1.5 var(--mono);
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hm-price-num {
  color: var(--ink) !important;
  font-weight: 600 !important;
}
.hm-pill {
  border-color: var(--border-hairline);
  background: var(--surface-muted);
  color: var(--ink-muted);
  font-size: 12px;
}
.hm-price-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

/* Engineering Articles */
.hm-articles .hm-three {
  margin-top: 22px;
}
.hm-article-card small {
  color: var(--ink-muted);
  margin-top: auto;
  padding-top: 16px;
  font: 500 12px/1.4 var(--mono);
}
.hm-article-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Editorial FAQ (Exact Stitch Hairline Divider Style) */
.hm-faq {
  align-items: start;
}
.hm-questions {
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.hm-questions details {
  border-bottom: 1px solid var(--border-hairline);
}
.hm-questions details:last-child {
  border-bottom: 0;
}
.hm-questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.hm-questions summary::-webkit-details-marker {
  display: none;
}
.hm-questions summary::after {
  content: "+";
  flex: none;
  font: 500 16px/1 var(--mono);
  color: var(--ink-muted);
}
.hm-questions details[open] summary::after {
  content: "−";
  color: var(--ink);
}
.hm-questions p {
  padding: 0 0 16px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* Final CTA Window */
.hm-final {
  background: var(--surface);
  padding-block: 64px;
}
.hm-final-win {
  max-width: 820px;
  margin-inline: auto;
  box-shadow: var(--shadow-lg);
}
.hm-final-body {
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hm-final-body p {
  max-width: 34rem;
  color: var(--ink-secondary);
  font-size: 15px;
}
.hm-final-body .hm-actions {
  justify-content: center;
  margin-top: 6px;
  width: 100%;
}
.hm-curl-button {
  background: var(--terminal-bg);
  color: var(--terminal-ink);
  border-color: var(--border-hard);
  max-width: 100%;
  min-width: 0;
  padding: 9px 14px;
}
.hm-curl-button:hover {
  background: var(--terminal-head);
  color: var(--terminal-ink);
}
.hm-curl-button code {
  min-width: 0;
  max-width: 28rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  text-align: start;
}
.hm-copy-text {
  font: 600 11.5px/1.4 var(--mono);
  text-decoration: underline;
  white-space: nowrap;
}

.hm-copy-fallback {
  display: block;
  width: 100%;
  min-height: 6rem;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--border-hard);
  color: var(--ink);
  background: var(--surface);
  font: 12px/1.5 var(--mono);
}

/* Responsive Breakpoints */
@media (min-width: 48rem) {
  .hm-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hm-flow ol {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .hm-hero {
    padding-block: 42px 64px;
  }
  .hm-hero-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px;
  }
  .hm-matrix-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 36px;
  }
  .hm-split,
  .hm-responses {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .hm-faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
  .hm-personal-text {
    grid-row: auto;
  }
}

@media (max-width: 63.99rem) {
  .hm-pricecard {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .hm-prices,
  .hm-prices tbody {
    display: block;
    min-width: 0;
  }
  .hm-prices thead {
    position: absolute;
    overflow: hidden;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
  }
  .hm-prices tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
    gap: 14px;
  }
  .hm-prices tbody tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
    align-content: start;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-hard);
    box-shadow: var(--shadow-sm);
  }
  .hm-prices tbody tr:last-child {
    border-bottom: 1px solid var(--border-hard);
  }
  .hm-prices tbody th,
  .hm-prices td {
    border: 0;
    padding: 0;
  }
  .hm-prices tbody th,
  .hm-prices td:last-child {
    grid-column: 1 / -1;
  }
  .hm-prices td[data-col] {
    background: var(--surface-muted);
    border: 1px solid var(--border-hairline);
    padding: 6px 4px;
    font-size: 12px;
    text-align: center;
  }
  .hm-prices td[data-col]::before {
    display: block;
    color: var(--ink-muted);
    content: attr(data-col);
    font-size: 10px;
    margin-bottom: 2px;
  }
}

@media (max-width: 40rem) {
  .hm-wrap {
    padding-inline: 16px;
  }
  .hm-win-body {
    padding: 20px 18px;
  }
  .hm-section > .hm-wrap {
    padding-block: 44px;
  }
  .hm-final {
    padding-block: 44px;
  }
  .hm-final-body {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hm[data-reveal-ready] .hm-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 320ms cubic-bezier(0.2, 0, 0, 1) var(--hm-delay, 0ms),
      transform 320ms cubic-bezier(0.2, 0, 0, 1) var(--hm-delay, 0ms);
  }
  .hm[data-reveal-ready] .hm-reveal.hm-window {
    transform: translateY(14px);
    transition:
      opacity 340ms cubic-bezier(0.2, 0, 0, 1) var(--hm-delay, 0ms),
      transform 340ms cubic-bezier(0.2, 0, 0, 1) var(--hm-delay, 0ms);
  }
  .hm[data-reveal-ready] .hm-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .hm[data-reveal-ready] .hm-reveal.hm-window.is-revealed:hover {
    transform: translate(-1px, -1px);
  }
  .hm[data-reveal-ready] .hm-reveal.hm-card-flat.is-revealed:hover {
    transform: translate(-1px, -1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-win-enter,
  .hm-win-enter-delay,
  .hm-meter-bar,
  .hm-cursor {
    animation: none !important;
  }
  .hm-marquees:not([data-play]) .hm-belt {
    animation-play-state: paused;
  }
}
