/* OpenVibe.Bot's front page (server/web/home.js): the data sections around the shared showcase ones. Colours come from
   the Frame's theme tokens, so the page follows the person's theme, light or dark. */
.hm { padding-bottom: 32px; --hm-accent-text: color-mix(in srgb, var(--accent-light, #60a5fa) 45%, var(--text-primary, #e6edf7)); }
/* accent-light is drawn for dark themes; text in it is mixed toward the text colour so it reads on light ones too. */
.hm .sc-eyebrow { color: var(--hm-accent-text); }
.hm a { text-underline-offset: 2px; }
.hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.hm-head h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; margin: 0 0 6px; }
.hm-more { font-weight: 650; font-size: 14.5px; color: var(--hm-accent-text); white-space: nowrap; }
.hm-sec ul { list-style: none; margin: 0; padding: 0; }

/* The hero's terminal: always dark, like a terminal. */
.hm-term { border-radius: 16px; background: #0b1220; color: #e6edf7; border: 1px solid rgba(148, 163, 184, .25); box-shadow: var(--shadow-lg, 0 18px 50px rgba(0, 0, 0, .25)); overflow: hidden; }
.hm-term-top { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 14px; background: rgba(148, 163, 184, .1); font-size: 12.5px; }
.hm-term-top span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.hm-term-top span:nth-child(2) { background: #fbbf24; } .hm-term-top span:nth-child(3) { background: #34d399; }
.hm-term-top b { margin-left: 8px; font-weight: 600; color: #cbd5e1; }
.hm-term pre { margin: 0; padding: 16px 16px 6px; font: 600 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.hm-prompt { color: #34d399; user-select: none; }
.hm-term-steps { margin: 6px 0 0; padding: 0 16px 0 36px; font-size: 14px; line-height: 1.6; color: #cbd5e1; }
.hm-term-steps a, .hm-term-foot a { color: #93c5fd; }
.hm-term-foot { margin: 10px 0 0; padding: 10px 16px 14px; border-top: 1px solid rgba(148, 163, 184, .18); font-size: 13.5px; color: #cbd5e1; }

/* Numbers from the catalogue and the directory. */
.hm-stats-sec { margin-top: 40px; }
.hm-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr)); }
.hm-stats a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border, rgba(255, 255, 255, .08)); background: var(--bg-secondary, #101828); color: inherit; text-decoration: none; transition: border-color .15s; }
.hm-stats a:hover, .hm-stats a:focus-visible { border-color: var(--accent, #3b82f6); }
.hm-stats b { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.hm-stats span { font-size: 13.5px; color: var(--text-secondary, #96a7c2); }

/* Cards: robots, models, build pages. */
.hm-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.hm-card { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; border: 1px solid var(--border, rgba(255, 255, 255, .08)); background: var(--bg-secondary, #101828); transition: border-color .15s; }
.hm-card:hover, .hm-card:focus-within { border-color: var(--accent, #3b82f6); }
.hm-card-feature { background: linear-gradient(160deg, color-mix(in srgb, var(--accent, #3b82f6) 14%, var(--bg-secondary, #101828)), var(--bg-secondary, #101828) 70%); }
.hm-card-link { flex: 1; display: grid; align-content: start; gap: 6px; padding: 16px 16px 12px; color: inherit; text-decoration: none; }
.hm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hm-card-head b { font-size: 15.5px; overflow-wrap: anywhere; }
.hm-card-text { font-size: 14px; line-height: 1.5; color: var(--text-secondary, #96a7c2); }
.hm-card-meta { font-size: 13px; color: var(--text-secondary, #96a7c2); }
.hm-go { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--hm-accent-text); }
.hm-grid-tight { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.hm-grid-tight .hm-card-link { padding-bottom: 16px; }

.hm-state { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-secondary, #96a7c2); }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.hm-state[data-state="online"] { color: color-mix(in srgb, var(--success, #22c55e) 45%, var(--text-primary, #e6edf7)); }
.hm-state[data-state="online"] .hm-dot { background: var(--success, #22c55e); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success, #22c55e) 25%, transparent); }

.hm-badge { flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.hm-k-browser { color: color-mix(in srgb, #8b5cf6 45%, var(--text-primary, #e6edf7)); }
.hm-k-phone { color: color-mix(in srgb, #ec4899 45%, var(--text-primary, #e6edf7)); }
.hm-k-onboard { color: color-mix(in srgb, #22c55e 45%, var(--text-primary, #e6edf7)); }
.hm-k-bridge { color: color-mix(in srgb, #f59e0b 45%, var(--text-primary, #e6edf7)); }
.hm-k-server { color: color-mix(in srgb, #0ea5e9 45%, var(--text-primary, #e6edf7)); }
.hm-sec .hm-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.hm-chips li { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border-light, var(--border, #2c3d5c)); color: var(--text-secondary, #96a7c2); }

/* How robots connect, as categories. */
.hm-kinds { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.hm-kinds > li { padding: 16px; border-radius: 16px; border: 1px solid var(--border, rgba(255, 255, 255, .08)); background: var(--bg-secondary, #101828); min-width: 0; }
.hm-kind-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.hm-kind-n { font-size: 13px; color: var(--text-secondary, #96a7c2); }
.hm-kind-text { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.hm-kind-models { margin: 0; font-size: 13.5px; line-height: 1.6; }
.hm-kind-models a { color: var(--hm-accent-text); }

/* The first kit's parts list. */
.hm-kit { padding: 18px; border-radius: 16px; border: 1px solid var(--border, rgba(255, 255, 255, .08)); background: var(--bg-secondary, #101828); }
.hm-sec .hm-parts { columns: 2 260px; column-gap: 28px; }
.hm-parts li { break-inside: avoid; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 4px; padding: 7px 0; border-bottom: 1px solid var(--border, color-mix(in srgb, var(--text-primary, #fff) 8%, transparent)); font-size: 14.5px; }
.hm-parts li b { color: var(--hm-accent-text); }
.hm-parts small { display: block; color: var(--text-secondary, #96a7c2); font-size: 13px; }
.hm-kit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }

/* Compact rows: jobs. */
.hm-rows { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
.hm-rows a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border, rgba(255, 255, 255, .08)); background: var(--bg-secondary, #101828); color: inherit; text-decoration: none; min-width: 0; }
.hm-rows a:hover, .hm-rows a:focus-visible { border-color: var(--accent, #3b82f6); }
.hm-rows b { font-size: 14.5px; overflow-wrap: anywhere; }
.hm-rows span { font-size: 13px; color: var(--text-secondary, #96a7c2); }

/* Questions, answered on the page. */
.hm-faq { display: grid; gap: 12px 28px; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
.hm-qa { padding: 4px 0 14px; border-bottom: 1px solid var(--border, color-mix(in srgb, var(--text-primary, #fff) 8%, transparent)); }
.hm-qa h3 { margin: 0 0 6px; font-size: 16px; }
.hm-qa p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary, #96a7c2); }

/* The shared steps and code grids ask for 280–320 px; a 320 px phone has 272. */
.hm .sc-steps { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.hm .sc-code { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
@media (max-width: 520px) { .hm .sc-code pre { white-space: pre-wrap; overflow-wrap: anywhere; } .hm-term pre { font-size: 13px; } }
@media (max-width: 420px) { .sc-hero, .sc-sec, .sc-cta { padding-left: 16px; padding-right: 16px; } }
@media (prefers-reduced-motion: reduce) { .hm-card, .hm-stats a, .hm-rows a { transition: none; } }

/* ── The short home (2026-10-29): rails, one list of ways to connect, folds for what is read once ── */
.hm .ovk-rail { margin-top: 0; }
.hm-under { margin: 8px 0 0; color: var(--text-secondary, #96a7c2); font-size: .92rem; line-height: 1.5; }
.hm-more-sec .ovk-fold { margin: 10px 0 0; }
.hm-more-sec .ovk-fold + .ovk-fold { margin-top: 8px; }
.hm-h { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; }
.hm-fold-lede { margin: 0 0 10px; color: var(--text-secondary, #96a7c2); line-height: 1.5; }
.hm-more-sec .sc-sec { margin: 0; padding: 0; }
.hm .ovk-stats { margin-top: 18px; }
.hm .ovk-stats { font-family: var(--ovk-font); }

/* Pick: on a phone every pane is shown, stacked, each with its own heading; the chips are a row of links that
   jump to a pane (the owner's rule, 2026-10-31: never hide content to shorten). A wide screen shows the panes as
   before, with no chips. */
.pick-head, .pick-row { display: none; }
@media (max-width: 640px) {
  .pick-bar { margin-top: 30px; }
  .pick-head { display: block; }
  .pick-head h2 { margin: 0 0 4px; font: 700 clamp(20px, 2.4vw, 28px)/1.2 var(--ov-font, 'Inter', system-ui, sans-serif); letter-spacing: -.02em; }
  .pick-row { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pick-row::-webkit-scrollbar { display: none; }
  .pick-chip { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border, color-mix(in srgb, var(--text-primary, #fff) 8%, transparent)); color: var(--text-secondary, #96a7c2); font-size: .9rem; font-weight: 650; white-space: nowrap; text-decoration: none; }
  .pick-chip:hover, .pick-chip:focus-visible { color: var(--text-primary, #e6edf7); border-color: var(--accent, #3b82f6); }
  .pick-chip:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: 2px; }
  .pick .pick-pane { scroll-margin-top: 72px; }
  .pick .pick-pane + .pick-pane { margin-top: 26px; }
  /* The connect section already carries this heading above its lede; the pick bar only adds the chips. */
  .hm-sec#connect .pick-head { display: none; }
}

/* The fold (the owner's short-pages rule): closed on a phone, and where there is room it looks like the section it
   replaces: a heading and its content, with no card around it. */
.hm-fold-block { margin: 28px 0; }
.hm-fold-block > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 16px; cursor: pointer; color: var(--text-primary, #e6edf7); font-weight: 700; list-style: none; border: 1px solid var(--border, rgba(255, 255, 255, .08)); border-radius: 14px; background: var(--bg-secondary, #101828); }
.hm-fold-block > summary::-webkit-details-marker { display: none; }
.hm-fold-block > summary h2 { margin: 0; padding: 0; border: 0; font-size: 1.05rem; }
.hm-fold-block > summary span { color: var(--text-secondary, #96a7c2); font-weight: 600; font-size: .86rem; text-align: right; }
.hm-fold-block > summary:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: -2px; border-radius: 14px; }
.hm-fold-block .sc-sec { margin: 0; }
.hm-fold-block .sc-sec > h2, .hm-fold-block .sc-sec .hm-h { display: none; }
@media (min-width: 641px) {
  .hm-fold-block { border: 0; background: none; margin-top: 40px; }
  .hm-fold-block > summary { display: block; min-height: 0; padding: 0; border: 0; background: none; }
  .hm-fold-block > summary h2 { margin: 0 0 6px; font-size: 1.15rem; border-bottom: 1px solid var(--border, color-mix(in srgb, var(--text-primary, #fff) 8%, transparent)); padding-bottom: .2em; }
  .hm-fold-block > summary span { display: none; }
}
