/* ============================================================
   home.css — homepage v3 ("owner-operator" redesign, 2026-07)
   Scoped: every selector is .hx- prefixed. Loaded ONLY by
   index.html, after brand.css + style.css. Marketing sections
   use brand tokens (theme-aware); product frames (.hxf-*) use
   fixed dark values — they depict the product UI, which is
   dark, exactly like a screenshot would.
   ============================================================ */

/* ---------- Direction B ("A day with your team") foundations ----------
   The display face (@font-face for Source Serif 4), the AAA contrast
   tokens, and the display type scale were PROMOTED from this file to
   css/brand.css in the 2026-07 site-wide type-system pass — the whole
   site now runs the system this homepage established. This file keeps
   only the homepage-scoped layout/scale rules (the hero clamps are
   deliberately louder than the shared --type-page-* content scale). */

:root {
  --hx-font-display: var(--font-display);
}
.hx-vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- shared section scaffolding ---------- */
.hx-section { padding: clamp(88px, 11vw, 156px) 0; }
.hx-section--tight { padding: 72px 0; }
.hx-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hx-container--narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.hx-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 20px;
}
.hx-h1 {
  font-family: var(--hx-font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(2.7rem, 7.6vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.018em;
  color: var(--color-text);
  margin: 0;
  text-wrap: balance;
}
.hx-h2 {
  font-family: var(--hx-font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  /* ship-pass bump (verdict graft #2, optional): ~54px → ~61px at desktop so
     section headers carry Base44-grade presence; Source Serif 4 keeps the character */
  font-size: clamp(2.15rem, 4.9vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--color-text);
  margin: 0 0 18px;
  text-wrap: balance;
}
/* ---------- responsive leading (founder feedback, 2026-07) ----------
   .hx-h1's 1.0 and .hx-h2's 1.06 are tuned for the 1–2 lines these headings
   set at desktop (~82px / ~61px — see the sizing comments above and in
   .hx-hero below). At narrower widths the SAME copy wraps to 3–6 lines
   (German runs longer than English) and this display face's tall ascenders/
   descenders at line-height 1.0–1.06 start to collide between lines. Open the leading in
   two steps as size drops and line count grows; desktop is untouched.
   Measured in-browser (this repo's index.html, both `?lang=en`/`?lang=de`):
     .hx-h1 @1280 desktop: 82px/1 → 2 lines, no change needed.
     .hx-h1 @1024:         66px/1 → 2 lines (EN) / 4 lines (DE) — tablet step.
     .hx-h1 @768:          49px/1 → 2 lines (EN) / 4 lines (DE) — tablet step.
     .hx-h1 @430:          37px/1 → 4 lines (EN/DE) — mobile step.
     .hx-h1 @375:          37px/1 → 5 lines (EN) / 6 lines (DE) — mobile step,
                            lines visibly touching before this fix.
   Same shape applies to .hx-h2 (2–4 lines at mobile across sections). */
@media (max-width: 1024px) {
  .hx-h1 { line-height: 1.08; }
  .hx-h2 { line-height: 1.12; }
}
@media (max-width: 640px) {
  .hx-h1 { line-height: 1.16; }
  .hx-h2 { line-height: 1.2; }
}
.hx-h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin: 0 0 8px;
}
.hx-lead {
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}
.hx-body { font-size: 1rem; line-height: 1.7; color: var(--color-text-secondary); margin: 0; }
.hx-center { text-align: center; }

/* ---------- buttons (no sheen, structural radii) ---------- */
.hx-btn,
.hx-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  cursor: pointer;
}
.hx-btn {
  background: var(--color-accent);
  color: var(--color-text-on-amber);
  border: 1px solid transparent;
}
.hx-btn:hover { background: var(--color-accent-hover); transform: translateY(-1px); color: var(--color-text-on-amber); }
.hx-btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.hx-btn-ghost:hover { border-color: var(--color-text-secondary); transform: translateY(-1px); }
/* Link-state guard: brand.css `a:visited`/`a:hover` (0,1,1) would otherwise
   recolor CTA text — amber-on-amber for visited .hx-btn (same failure mode the
   style.css:7924 block pins for the legacy amber buttons). */
.hx-btn:link, .hx-btn:visited, .hx-btn:active, .hx-btn:focus { color: var(--color-text-on-amber); }
.hx-btn-ghost:link, .hx-btn-ghost:visited, .hx-btn-ghost:active, .hx-btn-ghost:focus, .hx-btn-ghost:hover { color: var(--color-text); }
.hx-final .hx-btn-ghost:link, .hx-final .hx-btn-ghost:visited, .hx-final .hx-btn-ghost:active, .hx-final .hx-btn-ghost:focus, .hx-final .hx-btn-ghost:hover { color: #F2EDE4; }
.hx-btn--lg, .hx-btn-ghost--lg { padding: 21px 42px; font-size: 1.1rem; border-radius: 12px; }

/* Loud full-bleed amber "beat" divider between major sections (base44's orange bars) */
.hx-beat { border: 0; height: 6px; margin: 0; background: var(--color-accent); }

/* ---------- icons ---------- */
.hx-ic { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hx-ic--accent { color: var(--color-accent); }

/* ---------- reveal (self-contained; no dependency on style.css) ---------- */
[data-hx-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 550ms cubic-bezier(0.16,1,0.3,1), transform 550ms cubic-bezier(0.16,1,0.3,1); }
[data-hx-reveal].hx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-hx-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HERO — left-aligned editorial spine + the delegate box
   ============================================================ */
.hx-hero { padding: clamp(116px, 14vw, 188px) 0 0; text-align: left; }
.hx-hero .hx-kicker { margin-bottom: 24px; }
/* Sizing kept as tuned for Fraunces: re-verified in-browser after the
   Source Serif 4 swap (2026-07, option B) and this clamp still holds — each
   headline span sits on one line at 1280 (spans measure ~1045px/~1064px
   inside the 1112px container, unchanged from the Fraunces-era margin) and
   the copy now wraps to slightly FEWER lines at mobile than Fraunces did
   (Source Serif 4's letterforms run a touch narrower at this weight/size:
   4 lines at 375/430px EN, vs Fraunces's 5/4; German is unchanged at
   4/4/6 lines at 430/768/375 — see the responsive-leading comment above).
   No clamp or letter-spacing change was needed for the new face. */
.hx-hero .hx-h1 { font-size: clamp(2.3rem, 6.4vw, 5.15rem); text-wrap: initial; }
/* At phone widths the spans wrap naturally — balance them again there. */
@media (max-width: 720px) { .hx-hero .hx-h1 { text-wrap: balance; } }
.hx-hero__sub {
  max-width: 640px;
  margin: 26px 0 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.hx-hero__ctas { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; margin-top: 30px; }
.hx-hero__frame-wrap { margin-top: clamp(56px, 7vw, 92px); position: relative; }

/* ---------- delegate box (founder-required hero device) ---------- */
.hx-delegate { margin-top: 36px; max-width: 640px; }
.hx-delegate__field {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.hx-delegate__field:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 3px var(--color-focus-ring);
}
.hx-delegate__avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: var(--color-accent-subtle, rgba(232,165,75,0.12));
  color: var(--color-accent);
}
.hx-delegate__input {
  flex: 1 1 auto; min-width: 0;
  appearance: none; background: none; border: 0; outline: none;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* ≥16px: no iOS focus zoom */
  line-height: 1.4;
  padding: 10px 0;
  color: var(--color-text);
}
.hx-delegate__input::placeholder { color: var(--color-text-secondary); opacity: 1; }
.hx-delegate__send {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  border: 0; cursor: pointer;
  background: var(--color-accent); color: var(--color-text-on-amber);
  transition: background 160ms ease, transform 160ms ease;
}
.hx-delegate__send:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.hx-delegate__send:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-focus-ring); }
.hx-delegate__send .hx-ic { width: 19px; height: 19px; stroke-width: 2.2; }
.hx-frame-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}

/* ============================================================
   PRODUCT FRAMES (.hxf-*) — fixed dark, depicting the real UI
   ============================================================ */
.hxf {
  background: #131110;
  border: 1px solid #2E2B27;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(232, 165, 75, 0.18);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  color: #F2EDE4;
}
.hxf * { box-sizing: border-box; }
.hxf__topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #242220;
  background: #161412;
}
.hxf__topbar-title { font-weight: 600; font-size: 12.5px; color: #F2EDE4; }
.hxf__topbar-right { display: flex; align-items: center; gap: 10px; }
.hxf__search {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: #8A8278;
  background: #1C1A18; border: 1px solid #2E2B27; border-radius: 7px;
  padding: 5px 10px;
}
.hxf__kbd { font-family: var(--font-mono); font-size: 10px; color: #6B655D; border: 1px solid #2E2B27; border-radius: 4px; padding: 1px 4px; }
.hxf__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  color: #7BB894; border: 1px solid rgba(78, 148, 112, 0.4); border-radius: 999px;
  padding: 3px 9px;
}
.hxf__pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #4E9470; }

.hxf__body { display: grid; grid-template-columns: 200px 1fr; min-height: 430px; }

/* sidebar */
.hxf__side {
  border-right: 1px solid #242220;
  background: #151312;
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 14px;
}
.hxf__brand { display: flex; flex-direction: column; gap: 2px; padding: 2px 8px 8px; }
.hxf__brand-name { font-weight: 700; font-size: 13px; letter-spacing: -0.01em; color: #F2EDE4; }
.hxf__brand-sub { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; color: #C8841A; text-transform: uppercase; }
.hxf__navgroup { display: flex; flex-direction: column; gap: 1px; }
.hxf__navlabel { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: #8A8278; text-transform: uppercase; padding: 2px 8px 5px; }
.hxf__navitem {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #A69F94;
  padding: 6px 8px; border: 1px solid transparent; border-radius: 8px;
}
.hxf__navitem .hx-ic { width: 13px; height: 13px; }
.hxf__navitem--active { background: rgba(232,165,75,0.10); border-color: rgba(232,165,75,0.28); color: #F2EDE4; }
.hxf__navitem--active .hx-ic { color: #E8A54B; }
.hxf__navitem--badge::after { content: attr(data-n); margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; color: #E8A54B; background: rgba(232,165,75,0.12); border-radius: 999px; padding: 1px 6px; }

/* main pane */
.hxf__main { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.hxf__eyebrow { font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: #C8841A; text-transform: uppercase; margin: 0 0 6px; }
/* .hxf .hxf__h1 (0,2,0) must beat style.css's `[data-theme="light"] h3` (0,1,1)
   theme patch — frame content is a depiction of the dark product UI and must
   not re-theme. Same for the explicit font-family (brand.css h3 = display font). */
.hxf .hxf__h1 { font-family: var(--font-body); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #F2EDE4; margin: 0 0 4px; }
.hxf__sub { font-size: 12px; color: #8A8278; margin: 0; }

.hxf__card {
  background: #1B1917;
  border: 1px solid #262320;
  border-radius: 12px;
  padding: 14px 16px;
}
.hxf__card-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; color: #8A8278; text-transform: uppercase; margin: 0 0 10px; }
.hxf__card-label--amber { color: #C8841A; }

.hxf__grid2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }

/* approval rows */
.hxf__appr { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #242220; }
.hxf__appr:first-of-type { border-top: 0; }
.hxf__appr-txt { flex: 1; min-width: 0; }
.hxf__appr-title { font-size: 12.5px; color: #E8E2D8; font-weight: 500; }
.hxf__appr-meta { font-family: var(--font-mono); font-size: 10px; color: #6B655D; margin-top: 2px; }
.hxf__appr-actions { display: flex; gap: 6px; flex: none; }
.hxf__btn-approve {
  font-size: 11px; font-weight: 600; color: #1C1A18;
  background: #E8A54B; border-radius: 6px; padding: 5px 12px;
}
.hxf__btn-quiet { font-size: 11px; font-weight: 500; color: #A69F94; border: 1px solid #2E2B27; border-radius: 6px; padding: 5px 12px; }

/* agent status rows */
.hxf__agent { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #242220; }
.hxf__agent:first-of-type { border-top: 0; }
.hxf__avatar {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: rgba(232, 165, 75, 0.14); color: #E8A54B;
}
.hxf__agent-name { font-size: 12.5px; font-weight: 600; color: #E8E2D8; }
.hxf__agent-role { font-family: var(--font-mono); font-size: 9.5px; color: #6B655D; margin-left: 6px; }
.hxf__agent-task { font-size: 11.5px; color: #8A8278; margin-top: 1px; }
.hxf__status { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; border-radius: 999px; padding: 2px 8px; }
.hxf__status--active { color: #7BB894; background: rgba(78, 148, 112, 0.12); }
.hxf__status--idle { color: #8A8278; background: rgba(138, 130, 120, 0.12); }

/* activity feed */
.hxf__act { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid #242220; font-size: 11.5px; color: #A69F94; }
.hxf__act:first-of-type { border-top: 0; }
.hxf__act-time { font-family: var(--font-mono); font-size: 10px; color: #6B655D; flex: none; width: 44px; padding-top: 1px; }

/* chat frame */
.hxf--chat { max-width: 560px; margin: 0 auto; font-size: 13px; }
.hxf__chat-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.hxf__msg { max-width: 82%; border-radius: 12px; padding: 10px 13px; font-size: 12.5px; line-height: 1.55; }
.hxf__msg--agent { background: #1E1B19; border: 1px solid #262320; color: #D9D2C7; align-self: flex-start; border-bottom-left-radius: 4px; }
.hxf__msg--user { background: rgba(232, 165, 75, 0.16); border: 1px solid rgba(232, 165, 75, 0.25); color: #F2EDE4; align-self: flex-end; border-bottom-right-radius: 4px; }
.hxf__msg-time { display: block; font-family: var(--font-mono); font-size: 9px; color: #6B655D; margin-top: 6px; }
.hxf__chat-input {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 18px 18px; padding: 10px 14px;
  background: #1C1A18; border: 1px solid #2E2B27; border-radius: 10px;
  font-size: 12px; color: #6B655D;
}

/* cost mini-frame */
.hxf--mini { font-size: 12px; }
.hxf__meter { height: 6px; border-radius: 999px; background: #262320; overflow: hidden; margin: 10px 0 6px; }
.hxf__meter-fill { display: block; height: 100%; width: 34%; border-radius: 999px; background: #E8A54B; }
.hxf__meter-note { font-family: var(--font-mono); font-size: 10px; color: #6B655D; }

/* ============================================================
   HERO PRODUCT PREVIEW — dashboard ⇄ chat, with clickable tabs
   The dashboard view stays in flow (defines the stage height); the chat view
   overlays as a full-height panel. JS (progressive enhancement) auto-advances
   the view every ~8s, pauses on hover/focus, and lets the Dashboard/Chat tabs
   switch on click (which then yields control to the visitor). Cross-fade is a
   pure CSS opacity transition on the `data-view` state, so it's smooth whether
   the change is auto or a click, and honours prefers-reduced-motion.
   No JS → tabs stay hidden and the static dashboard shows (the default state).
   ============================================================ */
.hx-hero__stage { position: relative; }
.hx-hero__view { transition: opacity 600ms ease; }
.hx-hero__view--dash { position: relative; z-index: 1; }
/* Chat is now the SAME app surface as the dashboard — full width (not a
   narrow floating bubble list), with real app chrome (Chat/Mission Control
   tabs, an orchestration toolbar) so it reads as one product with two tabs,
   not two different widgets. Fills the full stage (= dashboard height);
   internally: appbar + toolbar (fixed) → canvas (flex:1, messages start at
   the TOP, growing down — matching the real app's behaviour on a short
   conversation) → input bar (pinned to the bottom by the flex layout). */
.hx-hero__view--chat {
  position: absolute; inset: 0;
  width: 100%;
  display: flex; flex-direction: column;
  opacity: 0; z-index: 2;
}
/* Approvals view (grafted from Direction A per the design verdict): the same
   full app chrome as the dashboard (sidebar + main), overlaid like the chat
   view. The stage height stays pinned to the in-flow dashboard. */
.hx-hero__view--appr {
  position: absolute; inset: 0;
  width: 100%;
  display: flex; flex-direction: column;
  opacity: 0; z-index: 2;
  pointer-events: none;
}
.hx-hero__view--appr .hxf__body { flex: 1 1 auto; min-height: 0; }
.hx-hero__view--chat { pointer-events: none; }
/* view state — JS sets data-view; the default (no data-view / "dash") shows the
   dashboard, so no-JS and reduced-motion visitors get a clean static frame. */
.hx-hero__stage[data-view="chat"] .hx-hero__view--dash { opacity: 0; }
.hx-hero__stage[data-view="chat"] .hx-hero__view--chat { opacity: 1; pointer-events: auto; }
.hx-hero__stage[data-view="appr"] .hx-hero__view--dash { opacity: 0; }
.hx-hero__stage[data-view="appr"] .hx-hero__view--appr { opacity: 1; pointer-events: auto; }

.hxf__appbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #242220;
  background: #161412;
  flex: none;
}
.hxf__appbar-left { display: flex; align-items: center; gap: 6px; }
.hxf__appbar-brand { font-weight: 700; font-size: 12.5px; letter-spacing: -0.01em; color: #F2EDE4; margin-right: 8px; }
.hxf__appbar-tab {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px; color: #8A8278;
}
.hxf__appbar-tab--active { background: rgba(232, 165, 75, 0.14); color: #E8A54B; }
.hxf__appbar-right { display: flex; align-items: center; gap: 10px; }

.hxf__chat-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-bottom: 1px solid #242220;
  flex: none;
}
.hxf__chat-select { font-size: 11.5px; font-weight: 600; color: #D9D2C7; }
.hxf__chat-select-ic { width: 12px; height: 12px; color: #6B655D; }

.hxf__chat-canvas {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 20px 20px 8px;
  display: flex; flex-direction: column;
}
.hxf__chat-day {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #6B655D;
}
.hxf__chat-day::before, .hxf__chat-day::after { content: ''; flex: 1 1 auto; height: 1px; background: #242220; }

.hxf__msg-row { display: flex; flex-direction: column; margin-bottom: 16px; }
.hxf__msg-row--user { align-items: flex-end; }
.hxf__msg-row--agent { align-items: flex-start; }
.hxf__msg-row .hxf__msg { max-width: 68%; }
.hxf__msg-who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hxf__avatar--cos { width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }
.hxf__msg-name { font-size: 11.5px; font-weight: 700; color: #E8E2D8; }
.hxf__msg-role { font-family: var(--font-mono); font-size: 9.5px; color: #6B655D; text-transform: lowercase; }
.hxf__msg-who .hxf__msg-time { display: inline; margin-top: 0; }

.hxf__chat-inputbar { flex: none; padding: 12px 16px 16px; }
.hxf__chat-inputfield {
  display: flex; align-items: baseline; gap: 8px;
  padding: 11px 14px;
  background: #1C1A18; border: 1px solid #2E2B27; border-radius: 10px;
  font-size: 12px; color: #8A8278;
  margin-bottom: 8px;
}
.hxf__chat-input-hint { font-family: var(--font-mono); font-size: 10px; color: #4A4642; }
.hxf__chat-controls { display: flex; align-items: center; gap: 8px; }
.hxf__chat-plus {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #2E2B27; color: #8A8278; font-size: 15px; line-height: 1;
}
.hxf__chat-pill {
  font-family: var(--font-mono); font-size: 10.5px; color: #8A8278;
  border: 1px solid #2E2B27; border-radius: 999px; padding: 4px 10px;
}
.hxf__chat-pill b { color: #D9D2C7; font-weight: 700; }
.hxf__chat-send {
  margin-left: auto;
  font-size: 11.5px; font-weight: 700; color: #1C1A18;
  background: #E8A54B; border-radius: 999px; padding: 6px 16px;
}

/* Clickable Dashboard/Chat tabs — hidden until JS enables them. */
.hx-hero__tabs { display: none; gap: 6px; justify-content: center; margin-top: 18px; }
.hx-hero__frame-wrap.has-controls .hx-hero__tabs { display: flex; }
.hx-hero__tab {
  font-family: inherit; font-size: 0.8rem; font-weight: 600;
  padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--color-border); background: transparent;
  color: var(--color-text-secondary); cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.hx-hero__tab:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.hx-hero__tab[aria-pressed="true"] {
  background: var(--color-accent); color: var(--color-text-on-amber);
  border-color: var(--color-accent);
}
.hx-hero__tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-focus-ring); }

/* the "live" connection dot breathes (independent of the view switch) */
@media (prefers-reduced-motion: no-preference) {
  .hxf__pill-dot { animation: hx-live-pulse 2.4s ease-in-out infinite; }
}
@keyframes hx-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .hx-hero__view { transition: none; } }

/* ============================================================
   TRUST BAR
   ============================================================ */
.hx-trust { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 18px 0; margin-top: 72px; }
.hx-trust__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.hx-trust__item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--color-text-secondary); }
.hx-trust__item .hx-ic { width: 14px; height: 14px; color: var(--color-accent); }

/* ============================================================
   TEAM
   ============================================================ */
.hx-team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.hx-team__card {
  background: var(--color-bg-surface, var(--surface-0));
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease;
}
.hx-team__card:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.hx-team__card--cos { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; border-color: var(--color-accent); background: linear-gradient(180deg, rgba(232, 165, 75, 0.07), transparent 70%), var(--color-bg-surface, var(--surface-0)); }
.hx-team__avatar {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
  background: rgba(200, 132, 26, 0.14); color: var(--color-accent);
  margin-bottom: 14px;
}
.hx-team__card--cos .hx-team__avatar { margin-bottom: 0; }
.hx-team__role { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 10px; }
.hx-team__note { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   WHAT WILL YOUR TEAM RUN? (practical outcomes)
   ============================================================ */
.hx-run__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 52px; }
.hx-run__card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-surface, var(--surface-0));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 30px 30px 26px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
/* base44-style top accent edge — lights up on hover */
.hx-run__card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 180ms ease;
}
.hx-run__card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--color-accent);
}
.hx-run__card:hover::before { opacity: 1; }
.hx-run__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--color-accent); color: var(--color-text-on-amber, #1C1A18);
  /* theme-aware amber glow (was hardcoded dark-amber, off-hue in light mode);
     degrades gracefully to no glow where color-mix is unsupported */
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-accent) 22%, transparent);
  margin-bottom: 18px;
}
.hx-run__icon .hx-ic { width: 22px; height: 22px; stroke-width: 2; }
.hx-run__role { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-secondary); margin: 0 0 6px; }
.hx-run__title { font-family: var(--font-body); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--color-text); margin: 0 0 10px; }
.hx-run__tags { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--color-border); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--color-accent); }
.hx-run__setup { margin-top: 40px; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.hx-run__setup-head { font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.hx-run__setup-body { margin: 0 auto 24px; }

/* ── Part C: function tabs (landing-restructure spec item 5) ──────────────
   Marketing/Finance/Engineering/Support used to be four always-visible
   cards; JS now turns them into an ARIA tabs pattern (one panel open at a
   time, Marketing default). No JS → the tablist stays hidden and every
   panel renders — same stacked layout as before the conversion. */
.hx-run__tablist { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.hx-run__grid.has-tabs { display: block; }
.hx-run__grid.has-tabs .hx-run__tablist { display: flex; }
.hx-run__grid.has-tabs .hx-run__card { display: none; }
.hx-run__grid.has-tabs .hx-run__card.is-active { display: block; max-width: 640px; margin: 0 auto; }
.hx-run__tab {
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--color-border);
  background: none; color: var(--color-text-secondary); cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.hx-run__tab:hover { color: var(--color-text); border-color: var(--color-accent); }
.hx-run__tab[aria-selected="true"] {
  background: var(--color-accent); border-color: var(--color-accent);
  color: var(--color-text-on-amber, #1C1A18); font-weight: 700;
}
.hx-run__tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-focus-ring); }

.hx-run__flow-head {
  margin: 20px 0 10px; font-family: var(--font-mono); font-size: 0.6875rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent);
}
.hx-run__flow { list-style: none; margin: 0; padding: 0; }
.hx-run__flow li {
  position: relative; padding-left: 26px; margin: 0 0 12px;
  font-size: 0.9rem; line-height: 1.4; color: var(--color-text-secondary);
}
.hx-run__flow li:last-child { margin-bottom: 0; color: var(--color-accent); font-weight: 600; }
.hx-run__flow li::before {
  content: ''; position: absolute; left: 5px; top: 5px;
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-subtle);
}
.hx-run__flow li::after {
  content: ''; position: absolute; left: 9px; top: 16px; bottom: -12px; width: 1px;
  background: var(--color-border);
}
.hx-run__flow li:last-child::after { display: none; }

/* ============================================================
   SPLIT SECTIONS (conversation / always-on)
   ============================================================ */
.hx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hx-split--rev .hx-split__text { order: 2; }
.hx-split__text .hx-lead { margin-top: 8px; }
.hx-split__points { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hx-split__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.55; color: var(--color-text-secondary); }
.hx-split__points .hx-ic { margin-top: 3px; color: var(--color-accent); }

/* ============================================================
   OWNERSHIP
   ============================================================ */
.hx-own__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.hx-own__col { background: var(--color-bg-surface, var(--surface-0)); border: 1px solid var(--color-border); border-radius: 12px; padding: 26px; }
.hx-own__col--local { border-color: var(--color-accent); }
.hx-own__col-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; color: var(--color-text); margin: 0 0 16px; }
.hx-own__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hx-own__col li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; line-height: 1.5; color: var(--color-text-secondary); }
.hx-own__col li .hx-ic { margin-top: 2px; }
.hx-own__foot { margin-top: 24px; text-align: center; font-size: 0.9375rem; color: var(--color-text-secondary); }

/* ============================================================
   MARKETPLACE STATS
   ============================================================ */
/* Loud honest numbers — the Base44 stat-card device, filled with product
   facts only, set in the display face at display scale. */
.hx-mkt__stats { display: flex; gap: 20px 0; justify-content: center; flex-wrap: wrap; margin: 44px 0 0; }
.hx-mkt__stat { flex: 1 1 200px; text-align: center; padding: 6px 24px; }
.hx-mkt__stat + .hx-mkt__stat { border-left: 1px solid var(--color-border); }
.hx-mkt__stat-num {
  font-family: var(--hx-font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(3rem, 6.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.hx-mkt__stat-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); margin-top: 10px; }
.hx-mkt__pub { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--color-border); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.hx-how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.hx-how__step { background: var(--color-bg-surface, var(--surface-0)); border: 1px solid var(--color-border); border-radius: 12px; padding: 26px; }
.hx-how__num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--color-accent); margin: 0 0 14px; }

/* ============================================================
   PRICING TEASER
   ============================================================ */
.hx-price__offer {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600; color: var(--color-accent);
  border: 1px solid var(--color-accent); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 20px;
}
.hx-price__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 1024px) and (min-width: 641px) {
  .hx-price__grid { grid-template-columns: repeat(2, 1fr); }
}
.hx-price__card { position: relative; background: var(--color-bg-surface, var(--surface-0)); border: 1px solid var(--color-border); border-radius: 12px; padding: 26px; text-align: left; }
.hx-price__card--pop { border-color: var(--color-accent); }
.hx-price__badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--color-accent); color: var(--color-text-on-amber);
  border-radius: 999px; padding: 3px 12px; white-space: nowrap;
}
.hx-price__tier { font-weight: 600; font-size: 1rem; color: var(--color-text); margin: 0 0 12px; }
.hx-price__row { display: flex; align-items: baseline; gap: 8px; }
.hx-price__strike { font-size: 1rem; color: var(--color-muted); text-decoration: line-through; }
.hx-price__num { font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; color: var(--color-text); }
.hx-price__per { font-size: 0.8125rem; color: var(--color-muted); }
.hx-price__first { font-size: 0.8125rem; color: var(--color-accent); font-weight: 600; margin-top: 6px; }
.hx-price__who { font-size: 0.875rem; color: var(--color-text-secondary); margin-top: 14px; line-height: 1.5; }
.hx-price__features { list-style: none; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 8px; }
.hx-price__features li { position: relative; padding-left: 18px; font-size: 0.8125rem; line-height: 1.45; color: var(--color-text-secondary); }
.hx-price__features li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--color-accent); font-weight: 700; }
.hx-price__note { margin-top: 26px; font-size: 0.875rem; color: var(--color-muted); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.hx-final { background: var(--color-kol, #1C1A18); padding: clamp(104px, 13vw, 180px) 0; text-align: center; border-top: 6px solid var(--color-accent); }
.hx-final .hx-h2, .hx-final .hx-h1 { color: #F2EDE4; }
.hx-final .hx-lead { color: #A69F94; max-width: 580px; margin: 20px auto 0; }
.hx-final__ctas { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hx-final .hx-btn-ghost { color: #F2EDE4; border-color: #3A362F; }
.hx-final .hx-btn-ghost:hover { border-color: #8A8278; }
.hx-final__small { margin-top: 18px; font-family: var(--font-mono); font-size: 0.71rem; letter-spacing: 0.08em; color: #6B655D; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hx-section { padding: 76px 0; }
  .hx-hero { padding: 128px 0 0; }
  .hx-team__grid { grid-template-columns: repeat(2, 1fr); }
  .hx-team__card--cos { grid-column: span 2; }
  .hx-split { grid-template-columns: 1fr; gap: 36px; }
  .hx-split--rev .hx-split__text { order: 0; }
  .hx-how__grid, .hx-price__grid { grid-template-columns: 1fr; }
  .hx-own__cols { grid-template-columns: 1fr; }
  .hxf__grid2 { grid-template-columns: 1fr; }
  /* Height budget: below desktop widths the chat canvas (pinned to the
     dashboard view's height) can't fit the full 7-beat transcript, so the
     secondary 07:15 exchange drops out; the 11:42 update is higher-value
     and carries the checkout-fix story on its own. Desktop keeps all beats.
     Measured at 768px/375px in de (the longest locale): with this trim the
     transcript fits with zero clipping. */
  .hxf__msg-row--trim { display: none; }
}
@media (max-width: 720px) {
  .hx-team__grid { grid-template-columns: 1fr; }
  .hx-run__grid { grid-template-columns: 1fr; }
  .hx-team__card--cos { grid-column: span 1; grid-template-columns: 1fr; }
  .hxf__body { grid-template-columns: 1fr; }
  .hxf__side { display: none; }
  .hx-trust__inner { gap: 8px 20px; }
  .hxf__appr { flex-wrap: wrap; }
  .hxf__appr-actions { width: 100%; justify-content: flex-end; }
  /* Phone-width chat: bubbles widen to phone-app proportions so the trimmed
     transcript (see the 960px block) wraps less and fits without clipping. */
  .hxf__msg-row .hxf__msg { max-width: 88%; }
  .hxf__msg-row { margin-bottom: 12px; }
}

/* ============================================================
   INTEGRATIONS STRIP (homepage) — brand marks reused verbatim
   from /integrations.html (simple-icons, fill: currentColor).
   ============================================================ */
.hx-intlogos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  margin: 42px auto 0;
  padding: 0;
  max-width: 880px;
}
.hx-intlogo {
  /* Static logo wall — no hover/focus feedback: these tiles aren't
     clickable (no href/handler), so no state should imply that they are. */
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-secondary);
}
.hx-intlogo svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.hx-intlogo span { font-size: 0.84rem; letter-spacing: 0.01em; white-space: nowrap; }
.hx-intlogos-cta { margin-top: 36px; }
@media (max-width: 640px) {
  .hx-intlogo { padding: 8px 14px; }
  .hx-intlogo span { font-size: 0.78rem; }
}

/* ============================================================
   DIRECTION B — editorial devices ("A day with your team")
   ============================================================ */

/* ---------- THE DIFFERENCE (peak 1: left-aligned statement) ---------- */
.hx-diff { border-top: 1px solid var(--color-border); }
.hx-diff__h { font-size: clamp(2.4rem, 5.6vw, 4.2rem); max-width: 900px; }
.hx-diff__em {
  font-family: var(--hx-font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent);
}
.hx-diff__lead { max-width: 640px; margin-top: 22px; }

/* ---------- day chapters ---------- */
.hx-day__head { max-width: 760px; }
.hx-day__lead { margin-top: 4px; }
.hx-ch { margin-top: clamp(60px, 7.5vw, 96px); }
.hx-ch__marker { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.hx-ch__time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent-border, rgba(232,165,75,0.25));
  border-radius: 999px;
  padding: 7px 16px;
}
.hx-ch__rule { flex: 1 1 auto; height: 1px; background: var(--color-border); }
.hx-ch__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.hx-ch__grid--rev .hx-ch__text { order: 2; }
.hx-ch__grid--rev .hx-ch__excerpt { order: 1; }
.hx-ch__title {
  font-family: var(--hx-font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.008em;
  color: var(--color-text);
  margin: 0 0 12px;
}
.hx-ch__body { font-size: 1.0625rem; max-width: 480px; }
.hx-ch__text--wide { max-width: 640px; }
.hx-ch__link {
  display: inline-block; margin-top: 16px;
  font-weight: 650; font-size: 0.9375rem;
  color: var(--color-accent); text-decoration: none;
  border-bottom: 1px solid var(--color-accent-border, rgba(232,165,75,0.25));
  padding-bottom: 2px;
}
.hx-ch__link:hover { color: var(--color-accent-hover); border-color: var(--color-accent); }

/* transcript excerpt cards — fixed dark, depicting the real chat UI */
.hx-ch__excerpt { margin: 0; }
.hx-ex {
  background: #161412;
  border: 1px solid #2E2B27;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}
.hx-ex__who { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hx-ex__name { font-size: 12.5px; font-weight: 700; color: #E8E2D8; }
.hx-ex__time { font-family: var(--font-mono); font-size: 10px; color: #6B655D; }
.hx-ex__msg {
  margin: 0 0 10px; padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px; line-height: 1.6;
}
.hx-ex__msg:last-child { margin-bottom: 0; }
.hx-ex__msg--agent { background: #1E1B19; border: 1px solid #262320; color: #D9D2C7; border-bottom-left-radius: 4px; margin-right: 10%; }
.hx-ex__msg--user { background: rgba(232, 165, 75, 0.16); border: 1px solid rgba(232, 165, 75, 0.25); color: #F2EDE4; border-bottom-right-radius: 4px; margin-left: 22%; }

/* the product pull-quote (stands where a testimonial would — but it's the
   dashboard's own greeting, quoted from the frame above) */
.hx-pull {
  /* neutralise brand.css's generic blockquote panel — this device is a naked
     editorial quote: amber bar + display italic on the page canvas */
  background: none;
  margin: clamp(72px, 9vw, 128px) 0 0;
  padding: 6px 0 6px clamp(22px, 4vw, 44px);
  border-left: 4px solid var(--color-accent);
  max-width: 980px;
}
.hx-pull__quote {
  font-family: var(--hx-font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
  color: var(--color-text);
  margin: 0;
  text-wrap: balance;
}
/* Italic display swashes/descenders need a bit more room once this wraps to
   2–3 lines at mobile widths (desktop/tablet stay 1–2 lines at 1.12 — fine). */
@media (max-width: 640px) {
  .hx-pull__quote { line-height: 1.22; }
}
.hx-pull__attr {
  display: block; margin-top: 18px;
  font-family: var(--font-mono); font-style: normal;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- roster spread (peak 2) ---------- */
.hx-roster__head { max-width: 760px; }
.hx-roster__benchhead { margin-top: clamp(64px, 8vw, 96px); max-width: 760px; }
.hx-roster__h {
  font-family: var(--hx-font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.008em;
  color: var(--color-text);
  margin: 0 0 14px;
}
.hx-roster__lead { font-size: 1.0625rem; }
.hx-roster__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.hx-roster__card {
  background: var(--color-bg, #111010);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease;
}
.hx-roster__card:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.hx-roster__card:first-child { grid-column: span 2; }
.hx-roster__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.hx-roster__name {
  font-family: var(--hx-font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 0;
}
.hx-roster__tag {
  flex: none;
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent-border, rgba(232,165,75,0.25));
  border-radius: 4px; padding: 2px 7px;
}
.hx-roster__desc { font-size: 0.9rem; line-height: 1.6; }
.hx-team__note { justify-content: flex-start; }

/* ---------- MAKE IT YOURS (extensibility — hairline-row device) ----------
   The brief's Base44 capability-row pattern (large headline + hairline
   divider), re-expressed in B's display-serif system: mono index number,
   display title, body copy in a two-column row. */
.hx-make__head { max-width: 760px; }
.hx-make__lead { margin-top: 4px; max-width: 640px; }
.hx-make__rows { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--color-border); }
.hx-make__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--color-border);
}
.hx-make__title {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--hx-font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  letter-spacing: -0.008em;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0;
}
.hx-make__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}
.hx-make__body { font-size: 0.9375rem; max-width: 560px; }
@media (max-width: 720px) {
  .hx-make__row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- ownership (peak 3: the amber block) ----------
   Full-bleed brand amber with fixed dark ink — Lanoko's own colour doing what
   Base44's blue block does. Inner columns stay fixed-dark product-style cards
   (like .hxf frames), so their text colours are theme-independent. */
.hx-own--peak { background: var(--color-accent); }
.hx-own__head { max-width: 720px; }
.hx-own--peak .hx-kicker { color: rgba(28, 26, 24, 0.75); }
.hx-own--peak .hx-h2 { color: #1C1A18; }
.hx-own--peak .hx-own__col { background: #161412; border-color: rgba(17, 16, 16, 0.45); }
.hx-own--peak .hx-own__col--local { border-color: #111010; border-width: 2px; }
.hx-own--peak .hx-own__col-title { color: #F2EDE4; }
.hx-own--peak .hx-own__col li { color: #B8B0A4; }
.hx-own--peak .hx-own__col .hx-ic { color: #B8B0A4; }
.hx-own--peak .hx-own__col .hx-ic--accent { color: #E8A54B; }
.hx-own--peak .hx-own__foot { color: #1C1A18; font-weight: 550; text-align: left; }

/* ---------- responsive (Direction B additions) ---------- */
@media (max-width: 960px) {
  .hx-ch__grid { grid-template-columns: 1fr; gap: 24px; }
  .hx-ch__grid--rev .hx-ch__text { order: 0; }
  .hx-ch__grid--rev .hx-ch__excerpt { order: 1; }
  .hx-roster__grid { grid-template-columns: repeat(2, 1fr); }
  .hx-roster__card:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .hx-roster__grid { grid-template-columns: 1fr; }
  .hx-roster__card:first-child { grid-column: span 1; }
  .hx-mkt__stat { flex: 1 1 45%; padding: 6px 12px; }
  .hx-mkt__stat + .hx-mkt__stat { border-left: 0; }
  /* Delegate reflow (verdict fix: placeholder truncated against the star +
     send button at 375px). The field becomes a two-row composer — input on
     its own full-width row, send bottom-right — mirroring the product's own
     chat input bar; the star avatar yields its space to the text. JS types
     the short seed set at this width (see .hx-delegate__seeds--m). Input
     stays ≥16px so iOS doesn't zoom on focus. */
  .hx-delegate__field { flex-wrap: wrap; padding: 8px 12px 10px; gap: 0 9px; }
  .hx-delegate__avatar { display: none; }
  .hx-delegate__input { flex: 1 1 100%; width: 100%; font-size: 1rem; padding: 10px 2px; }
  .hx-delegate__send { width: 46px; height: 46px; margin-left: auto; }
  .hx-hero__ctas .hx-btn--lg, .hx-hero__ctas .hx-btn-ghost--lg { padding: 17px 28px; font-size: 1rem; }
}
