/* ==========================================================================
   Homepage "Lens" (Oct 2026). Builds on the scrollcraft floor and the /ai-agents components (vf.css): tokens,
   buttons, commands, the client switcher, pricing, comparison, FAQ, footer. Everything here is hm-*.

   Layout modes (set in the page <head> before first paint):
   html.hm-cinema  wide and tall enough, motion allowed: "Delete your screenshot server" and "Watch any page" pin
                   and follow the scroll.
   html.hm-stack   narrow, short or reduced-motion screens: every act flows and is complete without scrolling tricks.
   ========================================================================== */

.hm { --hm-lens-ring: var(--vf-brand); --hm-print-edge: rgb(255 255 255 / 0.14); }
html[data-theme="light"] .hm { --hm-print-edge: rgb(13 15 20 / 0.12); }
.hm main { position: relative; z-index: 2; }
.hm-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; border-radius: var(--sc-r-sm); background: var(--vf-brand); color: #fff; text-decoration: none; font-weight: 600; }
.hm-skip:focus { top: 0.75rem; }
.hm-ok { color: var(--vf-ok); font-weight: 650; }
.hm-head { display: grid; gap: var(--sc-4); max-width: 52rem; margin-bottom: var(--sc-6); }
.hm-head h2, .hm-head .sc-body { margin: 0; }
.hm .sc-section { padding-block: clamp(3.25rem, 2.2rem + 3vw, 5.5rem); }
.hm-links { margin: var(--sc-5) 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.92rem; }
.hm-links a { color: var(--sc-accent); text-underline-offset: 3px; font-weight: 560; }

/* ============================================================== 1: the lens */
.hm-hero { position: relative; overflow: clip; }
.hm-hero__stage { position: relative; min-height: max(44rem, 100svh); display: grid; align-items: center; padding: calc(var(--vf-bar-h) + 2.5rem) 0 4rem; }
.hm-hero__visual { position: absolute; inset: 0; pointer-events: none; }
.hm-hero__visual .hm-prints { pointer-events: auto; }
.hm-hero__copy { position: relative; z-index: 4; width: min(40rem, 50vw); margin-left: var(--vf-col); }
.hm-hero__kicker { margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; color: var(--sc-accent); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.005em; }
.hm-hero__badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--sc-hairline-strong); color: var(--sc-ink); font-size: 0.8rem; font-weight: 560; text-decoration: none; transition: border-color 160ms, background-color 160ms; }
.hm-hero__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d97757; }
.hm-hero__badge:hover { border-color: var(--sc-accent); background: var(--vf-tint); }
.hm .hm-hero__copy h1 { margin: 0; font-size: clamp(2.7rem, 1.1rem + 4.1vw, 5.2rem); line-height: 0.98; letter-spacing: -0.04em; font-stretch: 114%; text-wrap: balance; }
.hm-hero__lede { margin: 1.4rem 0 0; max-width: 34rem; color: var(--sc-ink-soft); font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); line-height: 1.6; }

.hm-try { margin-top: 1.8rem; max-width: 34rem; }
.hm-try__field { display: flex; gap: 0.4rem; padding: 0.35rem; border-radius: 16px; background: color-mix(in oklab, var(--sc-surface) 92%, transparent); border: 1px solid var(--sc-hairline-strong); box-shadow: var(--sc-e2), var(--sc-edge); transition: border-color 160ms, box-shadow 160ms; }
.hm-try__field:focus-within { border-color: color-mix(in oklab, var(--sc-accent) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sc-accent) 18%, transparent), var(--sc-e2); }
.hm-try__field input { flex: 1; min-width: 0; padding: 0 0.85rem; border: 0; outline: 0; background: none; color: var(--sc-ink); font: 500 1rem/1 var(--sc-font-text); }
.hm-try__field input::placeholder { color: color-mix(in oklab, var(--sc-ink-soft) 80%, transparent); }
.hm-try__field .vf-btn { border-radius: 12px; min-height: 46px; padding: 0 1.3rem; }
.hm-try__chips { margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.84rem; color: var(--sc-ink-soft); }
.hm-try__chips span { margin-right: 0.15rem; }
.hm-try__chips button { padding: 0.32rem 0.7rem; border-radius: 999px; border: 1px solid var(--sc-hairline-strong); background: transparent; color: var(--sc-ink); font: 500 0.82rem/1 var(--sc-font-mono); cursor: pointer; transition: border-color 160ms, background-color 160ms; }
.hm-try__chips button:hover { border-color: var(--sc-accent); background: var(--vf-tint); }
.hm-try__out { margin: 0.75rem 0 0; min-height: 1.5em; font-size: 0.86rem; color: var(--sc-ink-soft); }
.hm-try__out .warn { color: var(--vf-warn); }
.hm-try__out a { color: var(--sc-accent); }
.hm-try__call { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; padding: 0.45rem 0.45rem 0.45rem 0.8rem; border-radius: 10px; background: var(--vf-code-bg); color: var(--vf-code-ink); border: 1px solid var(--vf-code-line); font: 0.76rem/1.4 var(--sc-font-mono); }
.hm-try__call code { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.hm-try__call .vf-copy { height: 30px; min-width: 58px; }

.hm-hero__actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.65rem; }
.hm-hero__trust { margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-size: 0.86rem; color: var(--sc-ink-soft); }
.hm-hero__trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hm-hero__trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sc-accent); }

/* The lens: the logo's aperture, cropped off the right edge, with the page it is taking inside the opening. */
.hm-lens { position: absolute; z-index: 1; top: 50%; right: calc(var(--hm-lens) * -0.17); width: var(--hm-lens); aspect-ratio: 1; transform: translateY(-50%); --hm-lens: min(96vh, 62vw); pointer-events: none; }
.hm-lens__svg { position: relative; width: 100%; height: 100%; display: block; overflow: visible; }
/* The glow is a static layer behind the lens: a filter on the SVG would be re-blurred on every frame of the shutter. */
.hm-lens::before { content: ""; position: absolute; inset: 4% 4% -2% 4%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--vf-brand) 32%, transparent), transparent); transform: translateY(5%); pointer-events: none; }
.hm-lens__ring { fill: var(--hm-lens-ring); }
.hm-lens__back { fill: var(--sc-surface); }
.hm-lens__flash { fill: #fff; opacity: 0; }
.hm-lens__readout {
  position: absolute; left: 2%; top: 9%; margin: 0; display: flex; gap: 0.7rem; align-items: center;
  padding: 0.45rem 0.7rem; border-radius: 8px; background: color-mix(in oklab, var(--sc-surface) 85%, transparent); border: 1px solid var(--sc-hairline-strong);
  font: 500 0.74rem/1 var(--sc-font-mono); color: var(--sc-ink-soft); white-space: nowrap;
}
.hm-lens__readout b { color: var(--sc-ink); font-weight: 650; }
.hm-lens__readout::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vf-ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--vf-ok) 25%, transparent); }
.hm-hero[data-busy] .hm-lens__readout::before { background: var(--vf-warn); animation: hm-blink 0.9s steps(2) infinite; }
@keyframes hm-blink { 50% { opacity: 0.2; } }

/* The prints: every exposure lands on a small stack under the lens. */
.hm-prints { position: absolute; z-index: 3; right: calc(min(96vh, 62vw) * 0.42); bottom: 7vh; width: min(19rem, 21vw); aspect-ratio: 16 / 10; margin: 0; padding: 0; list-style: none; }
.hm-print {
  position: absolute; inset: 0; margin: 0; padding: 0.45rem 0.45rem 1.9rem; border-radius: 10px; background: #f4f5f7;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 18px 40px rgb(0 0 0 / 0.45), 0 2px 6px rgb(0 0 0 / 0.3);
  transform: translate(calc((var(--n, 0) - var(--i)) * -1.4rem), calc((var(--n, 0) - var(--i)) * -0.9rem)) rotate(calc((var(--i) - 1) * 3deg + var(--tilt, 0deg)));
  transition: transform 520ms var(--sc-ease-out), opacity 300ms;
}
.hm-print button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; border-radius: 5px; cursor: zoom-in; }
.hm-print button:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; }
.hm-print img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 5px; background: #ddd; }
.hm-print:not(:last-child) span { opacity: 0; }
.hm-print span { position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.55rem; font: 600 0.72rem/1 var(--sc-font-mono); color: #2b2f3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-print.is-yours span { color: #3730a3; }
.hm-print.is-yours span::after { content: " · yours"; color: #4f46e5; }
.hm-print.is-new { animation: hm-eject 760ms var(--sc-ease-out) both; }
@keyframes hm-eject {
  0% { opacity: 0; transform: translate(-30%, -70%) scale(0.35) rotate(-12deg); }
  60% { opacity: 1; }
  100% { opacity: 1; }
}
.hm-prints[data-n="0"] .hm-print { --n: 2; }

/* Wide but not tall, or mid widths: the lens moves behind the copy's right edge and the prints shrink. */
@media (max-width: 1240px) {
  .hm-lens { --hm-lens: min(96vh, 70vw); right: calc(var(--hm-lens) * -0.3); }
  .hm-prints { width: min(17rem, 24vw); right: 3vw; }
  .hm-lens__readout { left: 8%; top: 5%; }
}
/* Narrow: the lens becomes a band under the copy; the prints sit on it. */
@media (max-width: 860px) {
  .hm-hero__stage { display: block; min-height: 0; padding: calc(var(--vf-bar-h) + 1.75rem) 0 0; }
  .hm-hero__copy { width: auto; margin: 0; padding-inline: var(--sc-gutter); }
  .hm-hero__visual { position: relative; inset: auto; height: 92vw; max-height: 44rem; margin-top: 2rem; overflow: hidden; }
  .hm-lens { --hm-lens: min(112vw, 54rem); top: 0; right: auto; left: 50%; transform: translateX(-50%); }
  .hm-lens__readout { top: 4%; left: 6%; }
  .hm-prints { right: 5vw; bottom: 3vw; width: 46vw; }
  .hm-hero__lede { font-size: 1rem; }
}
@media (max-width: 560px) {
  .hm .hm-hero__copy h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hm-hero__actions .vf-btn--lg { flex: 1 1 0; min-width: 0; padding: 0 0.8rem; font-size: 0.94rem; }
  .hm-try__chips button:nth-of-type(3) { display: none; }
  .hm-lens__readout { font-size: 0.66rem; gap: 0.5rem; }
  .hm-lens__readout span:nth-of-type(1) { display: none; }
}

/* ============================================================== proof */
.hm-proof { position: relative; z-index: 2; border-block: 1px solid var(--sc-hairline); background: color-mix(in oklab, var(--sc-surface) 55%, var(--sc-canvas)); }
.hm-proof .sc-wrap { padding-block: 1.6rem; display: grid; gap: 1.1rem; }
.hm-proof__facts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hm-proof__facts li, .hm-proof__facts a { display: grid; gap: 0.2rem; text-decoration: none; color: inherit; }
.hm-proof__facts b { display: inline-flex; align-items: center; gap: 0.5rem; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.9rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; }
.hm-proof__facts span { color: var(--sc-ink-soft); font-size: 0.88rem; }
.hm-proof__facts a:hover span { color: var(--sc-ink); }
.hm-proof__facts i { width: 9px; height: 9px; border-radius: 50%; background: var(--sc-ink-soft); }
.hm-proof__facts i.is-ok { background: var(--vf-ok); box-shadow: 0 0 0 4px color-mix(in oklab, var(--vf-ok) 22%, transparent); }
.hm-proof__facts i.is-bad { background: var(--vf-warn); }
.hm-proof__works { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.3rem; font-size: 0.9rem; }
.hm-proof__works span { color: var(--sc-ink-soft); margin-right: 0.2rem; }
.hm-proof__works a { color: var(--sc-ink); text-decoration: none; font-weight: 600; font-stretch: 108%; }
.hm-proof__works a:hover { color: var(--sc-accent); }
@media (max-width: 760px) { .hm-proof__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; } }

/* ============================================================== 2: the fold */
.hm-fold { position: relative; }
.hm-fold__stage { padding-block: clamp(3.25rem, 2.2rem + 3vw, 5.5rem); }
html.hm-cinema .hm-fold { height: 175vh; }
html.hm-cinema .hm-fold__stage { position: sticky; top: 0; height: 100vh; padding-block: calc(var(--vf-bar-h) + 1.5rem) 2rem; display: grid; align-items: center; overflow: clip; }
.hm-fold__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hm-fold__copy h2 { margin: 0 0 1.1rem; }
.hm-fold__jobs { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; counter-reset: job; }
.hm-fold__jobs li { position: relative; padding: 0.5rem 0 0.5rem 2rem; color: var(--sc-ink-soft); font-size: 0.95rem; line-height: 1.4; transition: color 260ms, opacity 260ms; }
.hm-fold__jobs li::before { content: ""; position: absolute; left: 0.2rem; top: 0.72rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 1.5px solid var(--sc-hairline-strong); transition: background-color 260ms, border-color 260ms; }
.hm-fold__jobs li::after { content: ""; position: absolute; left: 0.52rem; top: 0.92rem; width: 0.25rem; height: 0.45rem; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); opacity: 0; transition: opacity 200ms; }
.hm-fold__jobs li.is-on { color: var(--sc-ink); }
.hm-fold__jobs li.is-on::before { border-color: var(--vf-warn); }
.hm-fold__jobs li.is-done { color: var(--sc-ink); }
.hm-fold__jobs li.is-done::before { background: var(--vf-brand); border-color: var(--vf-brand); }
.hm-fold__jobs li.is-done::after { opacity: 1; }
.hm-fold__count { margin: 1.4rem 0 0; color: var(--sc-ink-soft); font-size: 0.92rem; }
.hm-fold__count b { font: 700 1.6rem/1 var(--sc-font-mono); color: var(--sc-ink); margin-right: 0.3rem; font-variant-numeric: tabular-nums; }
.hm-fold__code { position: relative; display: grid; gap: 1rem; }
.hm-old { border-radius: var(--sc-r-lg); background: var(--vf-code-bg); border: 1px solid var(--vf-code-line); color: var(--vf-code-ink); box-shadow: var(--sc-e3); overflow: hidden; }
.hm-old summary { list-style: none; display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.95rem; border-bottom: 1px solid var(--vf-code-line); font: 500 0.74rem/1.3 var(--sc-font-mono); color: var(--vf-code-soft); cursor: default; }
.hm-old summary::-webkit-details-marker { display: none; }
.hm-old__tag { margin-left: auto; color: var(--vf-code-soft); }
.hm-old__pre { margin: 0; padding: 0.85rem 1rem 1rem; font: 0.74rem/1.62 var(--sc-font-mono); overflow-x: auto; }
.hm-old__g { display: block; overflow: hidden; transition: background-color 260ms; border-radius: 4px; }
.hm-old__g.is-on { background: color-mix(in oklab, var(--vf-warn) 14%, transparent); box-shadow: inset 2px 0 0 var(--vf-warn); }
.hm-ln { display: block; white-space: pre; min-height: 1.62em; }
.hm-one { border-radius: var(--sc-r-lg); background: var(--sc-surface); border: 1px solid color-mix(in oklab, var(--sc-accent) 45%, var(--sc-hairline)); box-shadow: 0 0 0 6px color-mix(in oklab, var(--sc-accent) 8%, transparent), var(--sc-e3); overflow: hidden; }
.hm-one__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.6rem 0.55rem 1rem; border-bottom: 1px solid var(--sc-hairline); }
.hm-one__head p { margin: 0; font-size: 0.86rem; font-weight: 620; }
.hm-tabs { display: flex; flex-wrap: wrap; gap: 0.15rem; }
.hm-tabs button { padding: 0.4rem 0.6rem; border: 0; border-radius: 7px; background: none; color: var(--sc-ink-soft); font: 560 0.78rem/1 var(--sc-font-text); cursor: pointer; }
.hm-tabs button:hover { color: var(--sc-ink); }
.hm-tabs button[aria-selected="true"] { background: var(--vf-tint); color: var(--sc-ink); box-shadow: inset 0 0 0 1px var(--sc-hairline-strong); }
.hm-one__code { margin: 0; padding: 1.2rem 1.25rem; min-height: 6.5rem; font: 0.92rem/1.7 var(--sc-font-mono); color: var(--sc-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.hm-one__code[hidden] { display: none; }
html[data-theme="light"] .hm-one .vf-tok-s { color: #047857; } html[data-theme="light"] .hm-one .vf-tok-k { color: #6d28d9; } html[data-theme="light"] .hm-one .vf-tok-c { color: #6b7280; }
.hm-one__res { margin: 0; padding: 0.6rem 1.1rem; border-top: 1px solid var(--sc-hairline); display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font: 0.72rem/1.4 var(--sc-font-mono); color: var(--sc-ink-soft); }
/* Cinema: the script and the one call share a place; the scroll trades one for the other. */
html.hm-cinema .hm-fold__code { grid-template-areas: "x"; }
html.hm-cinema .hm-old, html.hm-cinema .hm-one { grid-area: x; align-self: center; }
html.hm-cinema .hm-one { opacity: var(--hm-one, 0); transform: translateY(calc((1 - var(--hm-one, 0)) * 26px)) scale(calc(0.97 + var(--hm-one, 0) * 0.03)); pointer-events: none; }
html.hm-cinema .hm-fold[data-one] .hm-one { pointer-events: auto; }
html.hm-cinema .hm-old { opacity: calc(1 - var(--hm-one, 0) * 1.6); transform: scale(calc(1 - var(--hm-one, 0) * 0.06)); }
/* Stack: the one call leads; the old script waits behind its summary. */
html.hm-stack .hm-fold__code { grid-template-areas: "one" "old"; }
html.hm-stack .hm-one { grid-area: one; }
html.hm-stack .hm-old { grid-area: old; }
html.hm-stack .hm-old summary { cursor: pointer; }
html.hm-stack .hm-old summary::after { content: "Show the script"; margin-left: 0.6rem; color: var(--sc-accent); font-family: var(--sc-font-text); font-weight: 600; }
html.hm-stack .hm-old[open] summary::after { content: "Hide"; }
html.hm-stack .hm-fold__count { display: none; }
@media (max-width: 960px) { .hm-fold__grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================== 3: clean */
.hm-clean__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hm-clean__copy h2 { margin: 0 0 1.1rem; }
.hm-ticks { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.hm-ticks li { position: relative; padding-left: 1.7rem; color: var(--sc-ink); font-size: 0.96rem; }
.hm-ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.3rem; width: 0.3rem; height: 0.62rem; border: solid var(--sc-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hm-compare { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--sc-r-lg); overflow: hidden; border: 1px solid var(--sc-hairline-strong); box-shadow: var(--sc-e3); background: #fff; user-select: none; touch-action: pan-y; }
.hm-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hm-compare__raw { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.hm-compare__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.2); pointer-events: none; }
.hm-compare__line i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / 0.35); }
.hm-compare__line i::before, .hm-compare__line i::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px; border: solid #4f46e5; border-width: 0 2px 2px 0; }
.hm-compare__line i::before { left: 10px; transform: rotate(135deg); }
.hm-compare__line i::after { right: 10px; transform: rotate(-45deg); }
.hm-compare__tag { position: absolute; top: 0.8rem; padding: 0.35rem 0.6rem; border-radius: 6px; font: 600 0.72rem/1 var(--sc-font-mono); pointer-events: none; }
.hm-compare__tag--raw { left: 0.8rem; background: rgb(13 15 20 / 0.82); color: #f5b454; }
.hm-compare__tag--clean { right: 0.8rem; background: #4f46e5; color: #fff; }
.hm-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.hm-compare:focus-within { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.hm-compare figcaption { position: absolute; left: 0.8rem; bottom: 0.7rem; padding: 0.3rem 0.5rem; border-radius: 5px; background: rgb(13 15 20 / 0.7); color: #e9ebf2; font: 500 0.68rem/1 var(--sc-font-mono); pointer-events: none; }
@media (max-width: 960px) { .hm-clean__grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================== 4: console */
.hm-console__box { display: grid; grid-template-columns: minmax(16rem, 21rem) minmax(0, 1fr); border-radius: var(--sc-r-lg); border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface); box-shadow: var(--sc-e3), var(--sc-edge); overflow: hidden; }
.hm-console__controls { padding: 1.2rem; display: grid; align-content: start; gap: 1.05rem; border-right: 1px solid var(--sc-hairline); }
.hm-seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.hm-seg legend { padding: 0; margin-bottom: 0.45rem; font-size: 0.78rem; font-weight: 620; color: var(--sc-ink-soft); }
.hm-seg { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.hm-seg label { position: relative; flex: 1 1 auto; }
.hm-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hm-seg span { display: block; padding: 0.5rem 0.7rem; border-radius: 9px; border: 1px solid var(--sc-hairline-strong); text-align: center; font-size: 0.84rem; font-weight: 560; color: var(--sc-ink-soft); transition: background-color 160ms, color 160ms, border-color 160ms; }
.hm-seg label:hover span { color: var(--sc-ink); }
.hm-seg input:checked + span { background: var(--vf-brand); border-color: var(--vf-brand); color: #fff; }
.hm-seg input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.hm-seg input:disabled + span { opacity: 0.4; }
.hm-console__req { margin-top: 0.3rem; padding: 0.85rem; border-radius: 12px; background: var(--vf-code-bg); color: var(--vf-code-ink); border: 1px solid var(--vf-code-line); display: grid; gap: 0.35rem; }
.hm-console__label { margin: 0; font-size: 0.66rem; font-weight: 600; color: var(--vf-code-soft); }
.hm-console__label + code + .hm-console__label { margin-top: 0.45rem; }
.hm-console__req code { font: 0.74rem/1.55 var(--sc-font-mono); overflow-wrap: anywhere; }
.hm-console__req code b { color: #c7a6ff; font-weight: 600; }
.hm-console__view { position: relative; min-height: 34rem; display: grid; place-items: center; padding: clamp(1rem, 2.5vw, 2rem); background:
  radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--sc-accent) 10%, transparent), transparent 70%),
  repeating-linear-gradient(45deg, var(--vf-tint) 0 1px, transparent 1px 14px); }
.hm-console__screen { position: relative; width: 100%; max-height: 32rem; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgb(0 0 0 / 0.35), 0 0 0 1px var(--hm-print-edge); transition: width 420ms var(--sc-ease-out), aspect-ratio 420ms var(--sc-ease-out), border-radius 420ms; aspect-ratio: 16 / 10; }
.hm-console__screen img { display: block; width: 100%; height: auto; transition: opacity 200ms; }
.hm-console__screen.is-swap img { opacity: 0.25; }
.hm-console__box[data-dev="tablet"] .hm-console__screen { width: min(100%, 24rem); aspect-ratio: 3 / 4; border-radius: 18px; }
.hm-console__box[data-dev="phone"] .hm-console__screen { width: min(100%, 15rem); aspect-ratio: 9 / 19; border-radius: 28px; }
.hm-console__box[data-area="full"] .hm-console__screen { aspect-ratio: auto; height: 32rem; }
.hm-console__box[data-area="full"] .hm-console__screen img { animation: hm-pan 16s ease-in-out infinite alternate; }
@keyframes hm-pan { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(calc(-100% + 32rem)); } }
.hm-console__box[data-format="pdf"] .hm-console__screen { width: min(100%, 26rem); aspect-ratio: 1 / 1.3; border-radius: 4px; padding: 1.4rem 1.2rem; background: #fff; }
.hm-console__box[data-format="pdf"] .hm-console__screen img { border: 1px solid #e5e7eb; }
.hm-console__box[data-format="pdf"] .hm-console__screen::after { content: "PDF · page 1"; position: absolute; right: 0.8rem; bottom: 0.5rem; font: 600 0.62rem/1 var(--sc-font-mono); color: #6b7280; }
@media (max-width: 900px) {
  .hm-console__box { grid-template-columns: minmax(0, 1fr); }
  .hm-console__controls { border-right: 0; border-bottom: 1px solid var(--sc-hairline); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-console__req { grid-column: 1 / -1; }
  .hm-console__view { min-height: 22rem; }
  .hm-console__box[data-area="full"] .hm-console__screen { height: 24rem; }
  @keyframes hm-pan { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(calc(-100% + 24rem)); } }
}
@media (max-width: 520px) { .hm-console__controls { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================== 5: watch */
.hm-watch { position: relative; }
.hm-watch__stage { padding-block: clamp(4rem, 2.6rem + 4vw, 7rem); }
html.hm-cinema .hm-watch { height: calc(100vh + var(--frames, 4) * 30vh); }
html.hm-cinema .hm-watch__stage { position: sticky; top: 0; height: 100vh; padding-block: calc(var(--vf-bar-h) + 1.5rem) 2rem; display: grid; align-items: center; overflow: clip; }
.hm-watch__grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hm-watch__copy h2 { margin: 0 0 1.1rem; }
.hm-watch__who { margin: 1rem 0 0; color: var(--sc-ink); font-size: 0.96rem; line-height: 1.55; max-width: 34rem; }
.hm-watch__deck { display: grid; gap: 0.9rem; }
.hm-shot { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--sc-r-lg); overflow: hidden; border: 1px solid var(--sc-hairline-strong); background: #f6f6ef; box-shadow: var(--sc-e3); }
.hm-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 260ms; }
.hm-shot img:not(.is-now) { opacity: 0; }
.hm-shot__mark { position: absolute; border-radius: 3px; background: color-mix(in oklab, #4f46e5 18%, transparent); box-shadow: 0 0 0 2px #4f46e5; opacity: 0; transform: scale(0.98); transition: opacity 260ms, transform 260ms var(--sc-ease-out); pointer-events: none; }
.hm-shot__mark.is-on { opacity: 1; transform: none; }
.hm-shot__stamp { position: absolute; right: 0.7rem; top: 0.7rem; padding: 0.35rem 0.55rem; border-radius: 6px; background: rgb(13 15 20 / 0.85); color: #e9ebf2; font: 600 0.7rem/1 var(--sc-font-mono); }
.hm-rail { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.hm-rail button { width: 100%; display: grid; gap: 0.25rem; padding: 0.6rem 0.7rem; border-radius: 10px; border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface); color: var(--sc-ink-soft); text-align: left; cursor: pointer; transition: border-color 200ms, background-color 200ms, color 200ms; }
.hm-rail button b { font: 650 0.86rem/1 var(--sc-font-mono); color: var(--sc-ink); }
.hm-rail button span { font-size: 0.74rem; }
.hm-rail button.is-change span { color: var(--sc-accent); font-weight: 600; }
.hm-rail button[aria-pressed="true"] { border-color: var(--sc-accent); background: color-mix(in oklab, var(--vf-brand) 12%, var(--sc-surface)); }
.hm-hook { margin: 0; border-radius: 12px; background: var(--vf-code-bg); border: 1px solid var(--vf-code-line); color: var(--vf-code-ink); overflow: hidden; transition: opacity 260ms, transform 260ms var(--sc-ease-out); }
.hm-hook[data-quiet] { border-style: dashed; }
.hm-hook[data-quiet] p b { color: var(--vf-code-soft); }
.hm-hook p { margin: 0; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--vf-code-line); font: 500 0.7rem/1.4 var(--sc-font-mono); color: var(--vf-code-soft); display: flex; justify-content: space-between; gap: 1rem; }
.hm-hook p b { color: #9fe0b5; font-weight: 600; }
.hm-hook pre { margin: 0; padding: 0.7rem 0.85rem; font: 0.72rem/1.55 var(--sc-font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1060px) { .hm-watch__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .hm-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================== 6: jobs */
.hm-jobs__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--sc-hairline); }
.hm-job { border-bottom: 1px solid var(--sc-hairline); }
.hm-job:nth-child(odd) { border-right: 1px solid var(--sc-hairline); }
.hm-job a { display: grid; gap: 0.45rem; height: 100%; padding: 1.5rem 1.5rem 1.4rem 0; text-decoration: none; color: inherit; transition: background-color 200ms; }
.hm-job:nth-child(even) a { padding-left: 1.5rem; }
.hm-job a:hover h3 { color: var(--sc-accent); }
.hm-job h3 { margin: 0; font-size: 1.15rem; font-weight: 650; font-stretch: 108%; letter-spacing: -0.01em; transition: color 160ms; }
.hm-job h3::after { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.5em; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: translateY(-0.12em) rotate(45deg); opacity: 0.55; }
.hm-job p { margin: 0; color: var(--sc-ink-soft); font-size: 0.95rem; line-height: 1.55; max-width: 34rem; }
.hm-job__params { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.hm-job__params code { padding: 0.25rem 0.45rem; border-radius: 6px; background: var(--vf-tint); border: 1px solid var(--sc-hairline); font-size: 0.72rem; color: var(--sc-ink-soft); }
@media (max-width: 760px) {
  .hm-jobs__list { grid-template-columns: minmax(0, 1fr); }
  .hm-job:nth-child(odd) { border-right: 0; }
  .hm-job a, .hm-job:nth-child(even) a { padding: 1.25rem 0; }
}

/* ============================================================== 7: agents */
.hm-agents { border-block: 1px solid var(--sc-hairline); background: color-mix(in oklab, var(--sc-surface) 45%, var(--sc-canvas)); }
.hm-agents__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hm-agents h2 { margin: 0 0 1rem; }
.hm-agents__switch .vf-switch { border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-md); background: var(--sc-surface); padding: 0.45rem 0.45rem 0.65rem; }
.hm-agents__switch .vf-switch__tab { border: 0; background: none; box-shadow: none; padding: 0.4rem 0.6rem; border-radius: 6px; }
.hm-agents__switch .vf-switch__tab[aria-selected="true"] { background: none; box-shadow: inset 0 -2px 0 var(--sc-accent); color: var(--sc-ink); border-radius: 0; }
.hm-agents__switch .vf-switch .vf-cmd, .hm-agents__switch .vf-switch__row { border: 0; box-shadow: none; background: none; min-height: 3.6rem; padding-left: 0.65rem; }
.hm-agents__switch .vf-switch__help { padding-left: 0.65rem; }
@media (max-width: 960px) { .hm-agents__grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================== 8: spec sheet */
.hm-spec__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-lg); overflow: hidden; background: var(--sc-hairline); gap: 1px; }
.hm-spec__col { padding: 1.4rem 1.4rem 1.5rem; background: var(--sc-surface); }
.hm-spec__col h3 { margin: 0 0 0.85rem; font-size: 0.95rem; font-weight: 650; color: var(--sc-accent); }
.hm-spec__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.hm-spec__col li { position: relative; padding-left: 1rem; font-size: 0.93rem; line-height: 1.45; color: var(--sc-ink); }
.hm-spec__col li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 5px; height: 5px; border-radius: 1px; background: color-mix(in oklab, var(--sc-accent) 80%, transparent); }
@media (max-width: 960px) { .hm-spec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hm-spec__grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================== 10: faq */
.hm-faq .vf-faq__list { margin-top: 0; max-width: 58rem; }

/* ============================================================== 11: close (always black) */
.hm-close { position: relative; overflow: clip; display: grid; align-items: center; min-height: min(50rem, 92vh); background: #050608; color: #eef0f6; padding-block: clamp(5rem, 3rem + 6vw, 8rem); border-top: 1px solid rgb(255 255 255 / 0.08); }
.hm-close__mark { position: absolute; right: max(-14vw, -16rem); top: 50%; width: min(84vh, 58vw, 46rem); aspect-ratio: 1; transform: translateY(-50%); }
.hm-close__mark svg { width: 100%; height: 100%; display: block; }
.hm-close__inner { position: relative; display: grid; gap: 1.4rem; }
.hm .hm-close__inner h2 { margin: 0; max-width: 13ch; font-size: clamp(2.6rem, 1.2rem + 4vw, 5rem); line-height: 0.98; color: #fff; }
.hm-close .sc-body { color: #b2b8c6; max-width: 34rem; }
.hm-close__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.4rem; }
.hm-close .vf-btn--ghost { color: #eef0f6; border-color: rgb(255 255 255 / 0.25); background: rgb(255 255 255 / 0.04); }
@media (max-width: 860px) { .hm-close__mark { right: -40vw; width: 100vw; opacity: 0.55; } }

/* ============================================================== light theme touches */
html[data-theme="light"] .hm-lens__back { fill: #e8eaf0; }
html[data-theme="light"] .hm-print { box-shadow: 0 18px 40px rgb(30 35 60 / 0.22), 0 2px 6px rgb(30 35 60 / 0.15); }
html[data-theme="light"] .hm-console__screen { box-shadow: 0 20px 50px rgb(30 35 60 / 0.18), 0 0 0 1px var(--hm-print-edge); }

/* ============================================================== no script, reduced motion */
html:not(.js) .vf-switch__panel[hidden], html:not(.js) .hm-one__code[hidden] { display: block; }
@media (prefers-reduced-motion: reduce) {
  .hm-print, .hm-print.is-new { animation: none; transition: none; }
  .hm-console__box[data-area="full"] .hm-console__screen { overflow-y: auto; }
  .hm-console__box[data-area="full"] .hm-console__screen img { animation: none; }
}

/* ============================================================== review round 1 */
.hm-box { width: min(92vw, 1280px); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: #0a0b10; color: #e9ebf2; box-shadow: 0 30px 90px rgb(0 0 0 / 0.6); overflow: auto; }
.hm-box::backdrop { background: rgb(4 5 8 / 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hm-box img { display: block; width: 100%; height: auto; }
.hm-box p { margin: 0; padding: 0.7rem 1rem; font: 500 0.8rem/1.4 var(--sc-font-mono); color: #9ba2b3; }
.hm-box form { position: absolute; right: 0.6rem; top: 0.6rem; margin: 0; }
.hm-box__close { padding: 0.45rem 0.8rem; border-radius: 8px; border: 0; background: rgb(10 11 16 / 0.85); color: #fff; font: 600 0.8rem/1 var(--sc-font-text); cursor: pointer; }
.hm-cmp-m { display: none; }
@media (max-width: 640px) {
  .vf-compare__scroll { display: none; }
  .hm-cmp-m { display: grid; gap: 0.75rem; }
  .hm-cmp-m__row { border: 1px solid var(--sc-hairline-strong); border-radius: 12px; background: var(--sc-surface); padding: 0.8rem 0.9rem; }
  .hm-cmp-m__row b { display: block; margin-bottom: 0.45rem; font-size: 0.9rem; }
  .hm-cmp-m__row ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; }
  .hm-cmp-m__row li { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
  .hm-cmp-m__row li.is-us { color: var(--sc-accent); font-weight: 700; }
}
@media (max-width: 600px) { .hm-hero__kicker { flex-direction: column; align-items: flex-start; } }
/* Short desktop screens (1280 x 720): the whole pitch, trust line included, fits above the fold. */
@media (min-width: 861px) and (max-height: 800px) {
  .hm-hero__stage { padding-top: calc(var(--vf-bar-h) + 1.25rem); padding-bottom: 2rem; }
  .hm .hm-hero__copy h1 { font-size: clamp(2.5rem, 0.6rem + 4.4vw, 4.3rem); }
  .hm-hero__kicker { margin-bottom: 0.8rem; }
  .hm-hero__lede { margin-top: 1rem; }
  .hm-try { margin-top: 1.2rem; }
  .hm-try__out { margin-top: 0.4rem; }
  .hm-hero__actions { margin-top: 1rem; }
  .hm-hero__trust { margin-top: 0.75rem; }
}

/* ============================================================== review round 2 (design) */
.hm-console__req .hm-ok, .hm-hook .hm-ok { color: #34d399; }
.hm-fold__count b { font-size: 2.6rem; letter-spacing: -0.03em; }
html.hm-cinema .hm-fold[data-one] .hm-fold__count b { color: var(--sc-accent); }
.vf-switch .vf-cmd__line, .hm-console__req code { overflow-wrap: normal; word-break: normal; }
@media (max-width: 860px) {
  .hm-lens__svg { filter: none; }
  .hm-prints { bottom: calc(3vw + 1.25rem); }
  .hm-lens__readout { left: calc(6% + var(--sc-gutter)); }
}
@media (max-height: 880px) {
  html.hm-cinema .hm-old__pre { font-size: clamp(0.62rem, 1.4vh, 0.74rem); }
  html.hm-cinema .hm-hook pre { font-size: 0.66rem; line-height: 1.45; }
  html.hm-cinema .hm-watch__deck { gap: 0.6rem; }
}
@media (min-width: 861px) and (max-height: 800px) {
  .hm-lens__readout { top: 12%; }
  .hm .hm-hero__copy h1 { font-size: clamp(2.6rem, 7.2vh, 4.4rem); }
}

/* ============================================================== round 2: owner notes */
/* Highlights: the phrase that carries the claim takes the brand colour. */
.hm-hl { color: var(--sc-accent); }
html:not([data-theme="light"]) .hm-hl { background: linear-gradient(100deg, #b3b9ff, #8b8cff 60%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-close .hm-hl { background: linear-gradient(100deg, #b3b9ff, #8b8cff 60%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-save { color: var(--sc-ink); font-weight: 650; }
/* "screenshot server" gets struck through as the script folds away. */
.hm-strike { position: relative; white-space: nowrap; }
.hm-strike::after { content: ""; position: absolute; left: -0.04em; right: -0.04em; top: 54%; height: 0.09em; border-radius: 0.05em; background: var(--sc-accent); transform-origin: left center; transform: scaleX(var(--hm-strike, 0)); }
html.hm-stack .hm-strike::after { transform: scaleX(1); }
html.hm-stack .hm-strike { color: var(--sc-ink-soft); }

/* One tag: the claim and the clients, stitched. */
.hm-tag { display: inline-flex; flex-wrap: wrap; align-items: stretch; margin: 0 0 1.2rem; border-radius: 999px; border: 1px solid var(--sc-hairline-strong); background: color-mix(in oklab, var(--sc-surface) 70%, transparent); text-decoration: none; font-size: 0.84rem; font-weight: 600; overflow: hidden; transition: border-color 160ms; }
.hm-tag:hover { border-color: var(--sc-accent); }
.hm-tag__new { padding: 0.42rem 0.85rem; color: var(--sc-accent); }
.hm-tag__works { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.85rem; color: var(--sc-ink); border-left: 1px solid var(--sc-hairline-strong); background: var(--vf-tint); }
.hm-tag__works::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d97757; }
@media (max-width: 560px) { .hm-tag { border-radius: 14px; } .hm-tag__works { border-left: 0; border-top: 1px solid var(--sc-hairline-strong); width: 100%; } }
.hm-hero__prompt { padding: 0; border: 0; background: none; color: var(--sc-accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--sc-accent) 45%, transparent); }
.hm-hero__trust .hm-hero__prompt::before { display: none; }
.hm-hero__prompt[data-copied] { color: var(--vf-ok); text-decoration: none; }
.hm-lens__glass { fill: url(#hm-glass); }
html[data-theme="light"] .hm-lens__glass { fill: url(#hm-glass-light); }

/* A live dot that breathes. */
.hm-live { position: relative; display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--vf-ok); }
.hm-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--vf-ok); animation: hm-breathe 2s ease-out infinite; }
@keyframes hm-breathe { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.8); opacity: 0; } }
.hm-proof__facts b { gap: 0.7rem; }
.hm-proof__facts i.hm-live:not(.is-ok)::after { animation: none; }
.hm-proof__facts i.hm-live:not(.is-ok) { background: var(--sc-ink-soft); }
.hm-proof__facts i.is-bad { background: var(--vf-warn); }

/* Nav menus. */
.hm-ic { width: 19px; height: 19px; }

/* Clean-capture cards. */
.hm-cleans { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.hm-cleans li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.75rem; align-items: center; padding: 0.8rem 0.9rem; border-radius: 14px; border: 1px solid var(--sc-hairline); background: var(--sc-surface); transition: border-color 300ms, transform 300ms var(--sc-ease-out); }
.hm-cleans li > .hm-cleans__ic { grid-row: span 2; }
.hm-cleans b { font-size: 0.92rem; }
.hm-cleans li > span:last-child { font-size: 0.8rem; color: var(--sc-ink-soft); line-height: 1.35; }
.hm-cleans li.is-on { border-color: color-mix(in oklab, var(--sc-accent) 60%, transparent); transform: translateY(-2px); }
@media (max-width: 480px) { .hm-cleans { grid-template-columns: minmax(0, 1fr); } }

/* Console hint. */
.hm-console__hint { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 560; color: var(--sc-accent); }
.hm-console__hint i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sc-accent); }
.hm-console__hint i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sc-accent); animation: hm-breathe 1.6s ease-out infinite; }
.hm-console__box.is-yours .hm-console__hint i::after { animation: none; }
.hm-console__box.is-yours .hm-console__hint { color: var(--sc-ink-soft); }
.hm-seg label.is-tap span { animation: hm-tap 620ms var(--sc-ease-out); }
@keyframes hm-tap { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--sc-accent) 70%, transparent); transform: scale(1); } 30% { transform: scale(0.94); } 100% { box-shadow: 0 0 0 12px transparent; transform: scale(1); } }
.hm-console__screen img { transition: opacity 360ms var(--sc-ease-out); }
.hm-console__screen img.hm-fadein { position: absolute; inset: 0 0 auto 0; opacity: 0; }
.hm-console__screen.is-swap img:not(.hm-fadein) { opacity: 1; }

/* The monitor. */
.hm-watch__grid { align-items: start; }
html.hm-cinema .hm-watch, .hm-watch { height: auto; }
.hm-watch__facts { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.hm-watch__facts li { display: grid; gap: 0.1rem; padding-left: 1rem; border-left: 2px solid color-mix(in oklab, var(--sc-accent) 70%, transparent); }
.hm-watch__facts b { font-size: 0.95rem; }
.hm-watch__go { margin: 1.4rem 0 0; }
.hm-watch__facts span { font-size: 0.85rem; color: var(--sc-ink-soft); }
.hm-mon { position: relative; display: grid; gap: 0.7rem; padding: 0.8rem; border-radius: 20px; border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface); box-shadow: var(--sc-e3), var(--sc-edge); }
.hm-mon__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.15rem 0.3rem; font-size: 0.8rem; color: var(--sc-ink-soft); }
.hm-mon__title { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--sc-ink); font-weight: 650; }
.hm-mon__next b { font: 650 0.8rem/1 var(--sc-font-mono); color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.hm-mon__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.hm-mon__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px solid var(--sc-hairline); font-size: 0.8rem; }
.hm-mon__list li b { font: 600 0.8rem/1.3 var(--sc-font-mono); }
.hm-mon__list li span { grid-row: 2; color: var(--sc-ink-soft); font-size: 0.74rem; }
.hm-mon__list li em { grid-row: span 2; align-self: center; font-style: normal; font-size: 0.76rem; color: var(--sc-ink-soft); text-align: right; }
.hm-mon__list li.is-on { border-color: color-mix(in oklab, var(--sc-accent) 50%, transparent); background: color-mix(in oklab, var(--vf-brand) 8%, transparent); }
.hm-mon__list li.is-on em { color: var(--sc-ink); font-weight: 600; }
.hm-mon__list li.is-on em.is-hot { color: var(--vf-warn); }
.hm-mon .hm-shot { aspect-ratio: 16 / 9.4; border-radius: 12px; }
.hm-shot img { transition: opacity 500ms var(--sc-ease-out), filter 500ms; }
.hm-shot__scan { position: absolute; left: 0; right: 0; top: 0; height: 28%; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, color-mix(in oklab, #6366f1 22%, transparent) 70%, #818cf8 100%); }
.hm-shot.is-scanning .hm-shot__scan { animation: hm-scan 1.1s var(--sc-ease-in-out) both; }
@keyframes hm-scan { 0% { opacity: 1; transform: translateY(-100%); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(360%); } }
.hm-shot__mark.is-on { animation: hm-mark 1.6s ease-out 1; }
@keyframes hm-mark { 0% { box-shadow: 0 0 0 2px #4f46e5, 0 0 0 0 rgb(99 102 241 / 0.6); } 100% { box-shadow: 0 0 0 2px #4f46e5, 0 0 0 10px rgb(99 102 241 / 0); } }
.hm-mon .hm-rail button { padding: 0.5rem 0.65rem; }
.hm-mon .hm-rail button.is-done { border-color: var(--sc-hairline); }
.hm-toast { position: absolute; right: -1rem; bottom: 4.6rem; width: min(22rem, 78%); border-radius: 14px; background: #0d0f16; color: #e9ebf2; border: 1px solid rgb(129 140 248 / 0.45); box-shadow: 0 24px 60px rgb(0 0 0 / 0.5); overflow: hidden; z-index: 3;
  opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 320ms, transform 420ms var(--sc-ease-out); pointer-events: none; }
.hm-toast.is-in { opacity: 1; transform: none; pointer-events: auto; }
.hm-toast[hidden] { display: block; }
.hm-toast__head { margin: 0; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem 0; font: 500 0.7rem/1.3 var(--sc-font-mono); color: #9ba2b3; }
.hm-toast__head b { color: #f5b454; font-weight: 650; }
.hm-toast__dot { width: 7px; height: 7px; border-radius: 50%; background: #f5b454; box-shadow: 0 0 0 3px rgb(245 180 84 / 0.25); }
.hm-toast__big { margin: 0.25rem 0 0; padding: 0 0.8rem; font-size: 1.05rem; font-weight: 680; color: #fff; }
.hm-toast pre { margin: 0.55rem 0 0; padding: 0.6rem 0.8rem 0.7rem; border-top: 1px solid rgb(255 255 255 / 0.08); font: 0.66rem/1.5 var(--sc-font-mono); color: #c9cede; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9.5rem; overflow: hidden; }
@media (max-width: 1060px) { .hm-toast { position: relative; right: auto; bottom: auto; width: auto; } .hm-toast:not(.is-in) { display: none; } }

/* Pills: links that look like what they are. */
.hm-pills { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hm-pills a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--sc-hairline-strong); color: var(--sc-ink); text-decoration: none; font-size: 0.86rem; font-weight: 580; transition: border-color 160ms, background-color 160ms; }
.hm-pills a::after { content: ""; width: 0.38em; height: 0.38em; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); opacity: 0.6; }
.hm-pills a:hover { border-color: var(--sc-accent); background: var(--vf-tint); }

/* Jobs with pictures. */
.hm-jobs__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hm-jobs__grid .hm-job { border: 0; }
.hm-jobs__grid .hm-job a { display: grid; grid-template-rows: auto 1fr; gap: 0; height: 100%; padding: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface); transition: border-color 200ms, transform 300ms var(--sc-ease-out); }
.hm-jobs__grid .hm-job:nth-child(even) a { padding-left: 0; }
.hm-jobs__grid .hm-job a:hover { border-color: color-mix(in oklab, var(--sc-accent) 55%, transparent); transform: translateY(-3px); }
.hm-job__pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background:
  radial-gradient(90% 80% at 30% 20%, color-mix(in oklab, var(--sc-accent) 16%, transparent), transparent 70%), color-mix(in oklab, var(--sc-canvas) 60%, var(--sc-surface)); border-bottom: 1px solid var(--sc-hairline); }
.hm-job__pic img { display: block; }
.hm-job__body { display: grid; align-content: start; gap: 0.45rem; padding: 1rem 1.1rem 1.15rem; }
.hm-job__body h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 1.05rem; }
.hm-job__body h3::after { display: none; }
.hm-job__ic { width: 28px; height: 28px; border-radius: 8px; }
.hm-job__ic .hm-ic { width: 16px; height: 16px; }
.hm-job__body p { margin: 0; font-size: 0.9rem; }
.hm-jp-chat { position: absolute; inset: 9% 9% auto 9%; display: grid; gap: 0.5rem; }
.hm-job .hm-jp-msg { justify-self: start; margin: 0; padding: 0.45rem 0.7rem; border-radius: 12px 12px 12px 4px; background: color-mix(in oklab, var(--sc-ink) 10%, transparent); font-size: 0.74rem; color: var(--sc-ink); }
.hm-jp-msg u { color: var(--sc-accent); text-decoration: none; }
.hm-jp-card { width: 82%; border-radius: 10px; overflow: hidden; border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface); box-shadow: var(--sc-e2); }
.hm-jp-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.hm-jp-card p { margin: 0; padding: 0.4rem 0.6rem 0.5rem; display: grid; font-size: 0.66rem; color: var(--sc-ink-soft); }
.hm-jp-card b { color: var(--sc-ink); font-size: 0.7rem; }
.hm-jp-grid { position: absolute; inset: 9%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; align-content: center; }
.hm-jp-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 0 0 1px var(--hm-print-edge), var(--sc-e1); }
.hm-jp-pdf img { position: absolute; border-radius: 4px; background: #fff; box-shadow: 0 10px 26px rgb(0 0 0 / 0.35); object-fit: cover; object-position: top; }
.hm-jp-pdf__a { left: 12%; top: 14%; width: 46%; aspect-ratio: 1 / 1.3; padding: 6px; transform: rotate(-5deg); }
.hm-jp-pdf__b { left: 34%; top: 9%; width: 46%; aspect-ratio: 1 / 1.3; padding: 6px; transform: rotate(2deg); }
.hm-jp-pdf__phone { right: 8%; bottom: -14%; width: 19%; aspect-ratio: 9 / 19; border-radius: 10px !important; border: 3px solid #0d0f14; }
.hm-jp-pdf span, .hm-jp-rival__tag { position: absolute; left: 8%; bottom: 8%; padding: 0.3rem 0.55rem; border-radius: 6px; background: rgb(13 15 20 / 0.85); color: #e9ebf2; font: 600 0.66rem/1 var(--sc-font-mono); }
.hm-jp-rival img, .hm-jp-arch img { position: absolute; left: 9%; top: 10%; width: 82%; border-radius: 8px; box-shadow: 0 0 0 1px var(--hm-print-edge), var(--sc-e2); }
.hm-jp-rival::after { content: "change.detected"; position: absolute; right: 7%; top: 6%; padding: 0.3rem 0.55rem; border-radius: 6px; background: #f5b454; color: #1b1205; font: 650 0.64rem/1 var(--sc-font-mono); }
.hm-jp-arch__stamp { position: absolute; right: 6%; bottom: 7%; display: grid; gap: 0.15rem; padding: 0.45rem 0.6rem; border-radius: 6px; background: rgb(13 15 20 / 0.88); color: #9ba2b3; font: 500 0.6rem/1.25 var(--sc-font-mono); transform: rotate(-2deg); border: 1px dashed rgb(129 140 248 / 0.6); }
.hm-jp-arch__stamp b { color: #e9ebf2; font-weight: 600; }
.hm-jp-agent { position: absolute; inset: 8% 9%; display: grid; align-content: start; gap: 0.4rem; }
.hm-job .hm-jp-msg--you { justify-self: end; border-radius: 12px 12px 4px 12px; background: var(--vf-brand); color: #fff; }
.hm-job .hm-jp-call { justify-self: start; margin: 0; padding: 0.3rem 0.55rem; border-radius: 6px; font: 600 0.62rem/1 var(--sc-font-mono); color: var(--sc-accent); background: color-mix(in oklab, var(--sc-accent) 12%, transparent); }
.hm-jp-agent img { width: 72%; border-radius: 8px; box-shadow: 0 0 0 1px var(--hm-print-edge), var(--sc-e2); }
@media (max-width: 1000px) { .hm-jobs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hm-jobs__grid { grid-template-columns: minmax(0, 1fr); } }

/* Agents. */
.hm-agents__prompt { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid color-mix(in oklab, var(--sc-accent) 40%, transparent); background: color-mix(in oklab, var(--vf-brand) 9%, transparent); }
.hm-agents__prompt p { margin: 0; flex: 1 1 16rem; font-size: 0.9rem; color: var(--sc-ink-soft); line-height: 1.5; }
.hm-agents__prompt b { color: var(--sc-ink); }
.hm-agentnote { margin: 1rem 0 0; font-size: 0.8rem; color: var(--sc-ink-soft); }
.hm-agentnote a { color: var(--sc-accent); font-family: var(--sc-font-mono); font-size: 0.78rem; }

/* Spec cards. */
.hm-spec__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border: 0; background: none; border-radius: 0; overflow: visible; }
.hm-spec__card { position: relative; display: grid; align-content: start; gap: 0.55rem; padding: 1.25rem 1.25rem 1.35rem; border-radius: 18px; border: 1px solid var(--sc-hairline-strong); background:
  radial-gradient(120% 70% at 100% 0%, color-mix(in oklab, var(--sc-accent) 9%, transparent), transparent 60%), var(--sc-surface); overflow: hidden; }
.hm-spec__card h3 { margin: 0.35rem 0 0; font-size: 1.15rem; font-weight: 680; font-stretch: 108%; letter-spacing: -0.01em; }
.hm-spec__card p { margin: 0; font-size: 0.9rem; color: var(--sc-ink-soft); }
.hm-spec__card ul { margin: 0.4rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hm-spec__card code { display: inline-block; padding: 0.3rem 0.5rem; border-radius: 7px; background: var(--vf-tint); border: 1px solid var(--sc-hairline); font-size: 0.72rem; color: var(--sc-ink); }
@media (max-width: 960px) { .hm-spec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hm-spec__grid { grid-template-columns: minmax(0, 1fr); } }

/* FAQ: two dense columns on wide screens. */
.hm-faq .vf-faq__list { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; border-top: 0; }
.hm-faq .vf-faq__list details { border-top: 1px solid var(--sc-hairline); border-bottom: 0; align-self: start; }
.hm-faq .vf-faq__list summary { padding: 0.85rem 2.2rem 0.85rem 0; font-size: 0.98rem; }
.hm-faq .vf-faq__list summary::after { top: 0.8rem; }
.hm-faq .vf-faq__list details p { margin-bottom: 0.9rem; font-size: 0.93rem; }
@media (max-width: 900px) { .hm-faq .vf-faq__list { grid-template-columns: minmax(0, 1fr); } }

/* Close proof line. */
.hm-close__proof { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; color: #b2b8c6; font-size: 0.95rem; }
.hm-close__proof b { color: #fff; font-weight: 700; margin-right: 0.25rem; }

.hm-watch__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); }
.hm .hm-watch h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem); }

/* ============================================================== round 3: owner notes */
/* Proof band: numbers on one baseline, the live dot after the number, bright green in both themes. */
.hm-proof__facts li, .hm-proof__facts a { align-content: start; }
.hm-proof__facts b { min-height: 2.4rem; align-items: center; }
.hm-proof__facts span { line-height: 1.4; }
.hm-live, .hm-live::after, .hm-proof__facts i.is-ok { background: #22c55e; }
.hm-proof__facts i.hm-live { width: 10px; height: 10px; margin-left: 0.25rem; box-shadow: none; }
.hm-proof__facts i.hm-live.is-ok::after { animation: hm-breathe 2s ease-out infinite; }

/* Works with: real marks on small tiles. */
.hm-works { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.hm-works__label { margin: 0; font-size: 0.84rem; color: var(--sc-ink-soft); white-space: nowrap; }
.hm-works__list { flex: 1; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hm-works__list a { display: inline-flex; align-items: center; gap: 0.5rem; height: 36px; padding: 0 0.75rem 0 0.55rem; border-radius: 10px; border: 1px solid var(--sc-hairline); background: color-mix(in oklab, var(--sc-surface) 80%, transparent); color: var(--sc-ink); text-decoration: none; font-size: 0.82rem; font-weight: 600; transition: border-color 160ms, transform 160ms var(--sc-ease-out); }
.hm-works__list a:hover { border-color: color-mix(in oklab, var(--sc-accent) 60%, transparent); transform: translateY(-1px); }
.hm-works__list svg, .hm-works__list img { flex: none; width: 18px; height: 18px; display: block; }
.hm-works__list img { border-radius: 4px; }
.hm-works__cut { fill: var(--sc-surface); }

/* The one call stays on a dark code surface in both themes. */
.hm-one { background: var(--vf-code-bg); border-color: rgb(129 140 248 / 0.45); color: var(--vf-code-ink); }
.hm-one__head { border-bottom-color: var(--vf-code-line); }
.hm-one__head p { color: var(--vf-code-ink); }
.hm-one .hm-tabs button { color: var(--vf-code-soft); }
.hm-one .hm-tabs button:hover { color: #fff; }
.hm-one .hm-tabs button[aria-selected="true"] { background: rgb(255 255 255 / 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); }
.hm-one__code { color: var(--vf-code-ink); }
html[data-theme="light"] .hm-one .vf-tok-s { color: #9fe0b5; } html[data-theme="light"] .hm-one .vf-tok-k { color: #c7a6ff; } html[data-theme="light"] .hm-one .vf-tok-c { color: #8c93a6; }
.hm-one__res { border-top-color: var(--vf-code-line); color: var(--vf-code-soft); }
.hm-one .hm-ok { color: #34d399; }

/* The monitor's countdown: a ring that drains, big digits. */
.hm-mon__title small { margin-left: 0.4rem; padding: 0.15rem 0.4rem; border-radius: 5px; background: var(--vf-tint); color: var(--sc-ink-soft); font: 500 0.66rem/1 var(--sc-font-mono); }
.hm-timer { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.75rem 0.35rem 0.4rem; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--sc-accent) 45%, transparent); background: color-mix(in oklab, var(--vf-brand) 12%, transparent); }
.hm-timer svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.hm-timer__track { fill: none; stroke: color-mix(in oklab, var(--sc-accent) 18%, transparent); stroke-width: 3.5; }
.hm-timer__arc { fill: none; stroke: var(--sc-accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px color-mix(in oklab, var(--sc-accent) 70%, transparent)); }
.hm-timer > span { display: grid; line-height: 1.1; }
.hm-timer small { font-size: 0.66rem; color: var(--sc-ink-soft); }
.hm-timer b { font: 700 1.35rem/1 var(--sc-font-mono); color: var(--sc-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
/* The comparison sweep: a measuring grid follows a bright line down the capture. */
.hm-shot::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background-image: linear-gradient(rgb(129 140 248 / 0.22) 1px, transparent 1px), linear-gradient(90deg, rgb(129 140 248 / 0.22) 1px, transparent 1px);
  background-size: 14px 14px; -webkit-mask-image: linear-gradient(to bottom, #000 var(--scan, 0%), transparent calc(var(--scan, 0%) + 12%)); mask-image: linear-gradient(to bottom, #000 var(--scan, 0%), transparent calc(var(--scan, 0%) + 12%)); }
.hm-shot.is-scanning::before { animation: hm-grid 1.2s var(--sc-ease-in-out) both; }
@keyframes hm-grid { 0% { opacity: 0.9; } 80% { opacity: 0.9; } 100% { opacity: 0; } }
.hm-shot__scan { z-index: 2; height: 2px; top: 0; background: #a5b4fc; box-shadow: 0 0 12px 3px rgb(129 140 248 / 0.8), 0 -40px 60px rgb(99 102 241 / 0.25); }
.hm-shot.is-scanning .hm-shot__scan { animation: hm-scan2 1.2s var(--sc-ease-in-out) both; }
@keyframes hm-scan2 { 0% { opacity: 1; top: 0; } 92% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
.hm-shot__scan::after { content: "comparing 4 × 4 px cells"; position: absolute; right: 0.6rem; top: 6px; padding: 0.2rem 0.45rem; border-radius: 4px; background: rgb(13 15 20 / 0.85); color: #c7d2fe; font: 600 0.62rem/1 var(--sc-font-mono); white-space: nowrap; }
.hm-shot__mark { z-index: 2; }
@property --scan { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
.hm-shot.is-scanning { animation: hm-scanvar 1.2s var(--sc-ease-in-out) both; }
@keyframes hm-scanvar { from { --scan: -12%; } to { --scan: 100%; } }

/* Pills that ask to be clicked. */
.hm-pills a { border-color: color-mix(in oklab, var(--sc-accent) 45%, transparent); background: color-mix(in oklab, var(--vf-brand) 10%, transparent); color: var(--sc-ink); }
.hm-pills a:hover { background: color-mix(in oklab, var(--vf-brand) 22%, transparent); border-color: var(--sc-accent); }
.hm-pills a::after { opacity: 0.9; color: var(--sc-accent); }

/* Use cases: names you catch at a glance. */
.hm-job__body { gap: 0.5rem; padding: 1.1rem 1.2rem 1.25rem; }
.hm-job__body h3 { font-size: 1.28rem; font-weight: 720; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.15; }
.hm-job__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--vf-brand); color: #fff; box-shadow: 0 6px 16px color-mix(in oklab, var(--vf-brand) 40%, transparent); }
.hm-job__ic .hm-ic { width: 18px; height: 18px; }
.hm-jobs__grid .hm-job a:hover .hm-job__body h3 { color: var(--sc-accent); }

/* Plans: whole tiles are the button. */
.hm-plan { position: relative; text-decoration: none; color: inherit; cursor: pointer; transition: background-color 200ms, transform 200ms var(--sc-ease-out), box-shadow 200ms; }
.hm-plan:hover { background: color-mix(in oklab, var(--vf-brand) 14%, var(--sc-surface)); transform: translateY(-3px); box-shadow: 0 0 0 1px var(--sc-accent), 0 18px 40px color-mix(in oklab, var(--vf-brand) 25%, transparent); z-index: 1; }
.hm-plan:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: -2px; }
.hm-plan__go { margin-top: 0.6rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; height: 38px; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--sc-accent) 45%, transparent); font-size: 0.84rem; font-weight: 640; color: var(--sc-ink); transition: background-color 200ms, color 200ms; }
.hm-plan__go::after { content: ""; width: 0.4em; height: 0.4em; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
.hm-plan:hover .hm-plan__go, .vf-plan--free .hm-plan__go { background: var(--vf-brand); border-color: var(--vf-brand); color: #fff; }
.vf-price__table { overflow: visible; }
.vf-price__table > .hm-plan:first-child { border-radius: var(--sc-r-lg) 0 0 var(--sc-r-lg); }
.vf-price__table > .hm-plan:last-child { border-radius: 0 var(--sc-r-lg) var(--sc-r-lg) 0; }
@media (max-width: 1100px) { .vf-price__table > .hm-plan:first-child, .vf-price__table > .hm-plan:last-child { border-radius: 0; } .vf-price__table { overflow: hidden; } }

/* Agents: the client commands sit on a dark surface in both themes. */
.hm-agents__switch .vf-switch { background: var(--vf-code-bg); border-color: rgb(255 255 255 / 0.12); color: var(--vf-code-ink); }
.hm-agents__switch .vf-switch__tab { color: var(--vf-code-soft); }
.hm-agents__switch .vf-switch__tab:hover { color: #fff; }
.hm-agents__switch .vf-switch__tab[aria-selected="true"] { color: #fff; box-shadow: inset 0 -2px 0 #9aa2ff; }
.hm-agents__switch .vf-cmd { color: var(--vf-code-ink); }
.hm-agents__switch .vf-cmd__prompt { color: #9aa2ff; }
.hm-agents__switch .vf-copy { background: rgb(255 255 255 / 0.08); color: #fff; border-color: rgb(255 255 255 / 0.18); }
.hm-agents__switch .vf-switch__help { color: var(--vf-code-soft); }
.hm-agents__switch .vf-btn--install { background: #fff; color: #0d0f14; }
.hm-oneline { max-width: none; }

/* The bento: each part of the API shown by what it makes. */
.hm-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.hm-bento__card { position: relative; display: grid; align-content: start; gap: 0.5rem; padding: 1rem 1rem 1.25rem; border-radius: 20px; border: 1px solid var(--sc-hairline-strong); background: var(--sc-surface); overflow: hidden; }
.hm-bento__card h3 { margin: 0.6rem 0.25rem 0; font-size: 1.3rem; font-weight: 720; font-stretch: 110%; letter-spacing: -0.02em; }
.hm-bento__card > p { margin: 0 0.25rem; font-size: 0.92rem; line-height: 1.55; color: var(--sc-ink-soft); max-width: 40rem; }
.hm-bento__card > code { justify-self: start; margin: 0.35rem 0.25rem 0; padding: 0.35rem 0.55rem; border-radius: 7px; background: var(--vf-code-bg); color: #c7d2fe; font-size: 0.72rem; overflow-wrap: anywhere; }
.hm-bento--capture, .hm-bento--clean { grid-column: span 3; }
.hm-bento--read, .hm-bento--scale, .hm-bento--safe { grid-column: span 2; }
.hm-bento--connect { grid-column: span 6; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 2rem; align-items: center; }
.hm-bento--connect > h3, .hm-bento--connect > p { grid-column: 2; }
.hm-bento--connect > .hm-bento__cmds { grid-column: 1; grid-row: 1 / span 2; }
.hm-bento__pic { position: relative; height: 13.5rem; border-radius: 14px; overflow: hidden; background: radial-gradient(100% 90% at 50% 0%, color-mix(in oklab, var(--sc-accent) 14%, transparent), transparent 70%), color-mix(in oklab, var(--sc-canvas) 55%, var(--sc-surface)); border: 1px solid var(--sc-hairline); }
.hm-bento__pic img { position: absolute; object-fit: cover; object-position: top; box-shadow: 0 14px 30px rgb(0 0 0 / 0.35); }
.hm-bc-desk { left: 6%; top: 12%; width: 64%; aspect-ratio: 16 / 10; border-radius: 8px; }
.hm-bc-tab { left: 55%; top: 20%; width: 24%; aspect-ratio: 3 / 4; border-radius: 10px; border: 4px solid #0d0f14; }
.hm-bc-phone { left: 79%; top: 30%; width: 14%; aspect-ratio: 9 / 19; border-radius: 12px; border: 3px solid #0d0f14; }
.hm-bcl img { inset: 0; width: 100%; height: 100%; box-shadow: none; }
.hm-bcl__raw { clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%); }
.hm-bcl__seam { position: absolute; top: -10%; bottom: -10%; left: 50%; width: 3px; background: #fff; transform: rotate(9deg); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.2), 0 0 18px rgb(255 255 255 / 0.6); }
.hm-bento__md { height: 13.5rem; margin: 0; padding: 1rem 1.1rem; border-radius: 14px; background: var(--vf-code-bg); color: #c9cede; font: 0.76rem/1.6 var(--sc-font-mono); white-space: pre-wrap; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hm-md-h { color: #c7a6ff; font-weight: 600; }
.hm-bsc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; padding: 0.6rem; align-content: start; }
.hm-bsc span { position: relative; aspect-ratio: 16 / 10; border-radius: 5px; overflow: hidden; }
.hm-bsc img { position: static; width: 100%; height: 100%; box-shadow: none; }
.hm-bsc span::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgb(13 15 20 / 0.6); }
.hm-bsc__count { position: absolute; left: 50%; bottom: 0.7rem; transform: translateX(-50%); padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--vf-brand); color: #fff; font: 650 0.72rem/1 var(--sc-font-text); white-space: nowrap; box-shadow: 0 8px 20px rgb(0 0 0 / 0.35); }
.hm-bsf { display: grid; align-content: center; gap: 0.5rem; padding: 0.9rem; }
.hm-bsf p { margin: 0; }
.hm-bsf__live { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 650; font-size: 0.92rem; margin-bottom: 0.3rem !important; }
.hm-bsf__row { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: 8px; background: var(--vf-code-bg); font: 0.68rem/1.3 var(--sc-font-mono); }
.hm-bsf__row code { color: #c9cede; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-bsf__row b { color: #f5b454; font-weight: 650; white-space: nowrap; }
.hm-bsf__row b.ok { color: #34d399; }
.hm-bento__cmds { display: grid; gap: 0.45rem; }
.hm-bento__cmds p { margin: 0; display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--vf-code-bg); }
.hm-bento__cmds span { font-size: 0.8rem; font-weight: 650; color: #fff; }
.hm-bento__cmds code { font-size: 0.78rem; color: #9fe0b5; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .hm-bento--capture, .hm-bento--clean { grid-column: span 6; }
  .hm-bento--read, .hm-bento--scale, .hm-bento--safe { grid-column: span 3; }
  .hm-bento--safe { grid-column: span 6; }
  .hm-bento--connect { grid-template-columns: minmax(0, 1fr); }
  .hm-bento--connect > h3, .hm-bento--connect > p, .hm-bento--connect > .hm-bento__cmds { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) { .hm-bento--read, .hm-bento--scale { grid-column: span 6; } .hm-bento__pic, .hm-bento__md { height: 11rem; } }

/* Close. */
.hm-close__lede { margin: 0; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 650; color: #fff; }
.hm-close__proof a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(255 255 255 / 0.3); }
.hm-close__proof a:hover { color: #fff; text-decoration-color: #9aa2ff; }

.hm .hm-oneline { max-width: none; } .hm-spec .hm-head { max-width: none; }

/* Light theme: the bento's code bits sit on light surfaces (dark code panels stay where code is the point). */
html[data-theme="light"] .hm-bento__card > code { background: color-mix(in oklab, var(--vf-brand) 8%, #fff); color: #3730a3; border: 1px solid color-mix(in oklab, var(--vf-brand) 22%, transparent); }
html[data-theme="light"] .hm-bento__cmds p { background: #f4f5fb; border: 1px solid var(--sc-hairline); }
html[data-theme="light"] .hm-bento__cmds span { color: var(--sc-ink); }
html[data-theme="light"] .hm-bento__cmds code { color: #047857; }
html[data-theme="light"] .hm-bento__md { background: #f4f5fb; color: #3d4352; border: 1px solid var(--sc-hairline); }
html[data-theme="light"] .hm-md-h { color: #6d28d9; }
html[data-theme="light"] .hm-bsf__row { background: #fff; border: 1px solid var(--sc-hairline); }
html[data-theme="light"] .hm-bsf__row code { color: #3d4352; }
html[data-theme="light"] .hm-bsf__row b { color: #b45309; }
html[data-theme="light"] .hm-bsf__row b.ok { color: #047857; }
.hm-lens__canvas { position: relative; display: block; width: 100%; height: 100%; }
@media (max-width: 480px) { .hm-mon__bar { flex-wrap: wrap; } .hm-mon { padding: 0.6rem; } .hm-timer { padding-right: 0.6rem; } }
