/* =====================================================================================
   Home page v3: concise. One idea per section; the detail lives on /how-it-works/.
   Page-only rules on top of lg-core.css (tokens) and site.css (shared s- classes).
   Every class here starts with hm-. Colours only through --lg-* tokens and color-mix().
   The ink bands (hero, final call) stay dark in both palettes, so text on them uses
   white mixes; everything else follows the palette.
   ===================================================================================== */

:root {
  --hm-ink: color-mix(in srgb, var(--lg-black) 89%, var(--lg-accent));
  --hm-on-ink: var(--lg-white);
  --hm-on-ink-2: color-mix(in srgb, var(--lg-white) 74%, transparent);
  --hm-on-ink-3: color-mix(in srgb, var(--lg-white) 56%, transparent);
  --hm-ink-line: color-mix(in srgb, var(--lg-white) 12%, transparent);
  --hm-ink-accent: color-mix(in srgb, var(--lg-accent) 40%, var(--lg-white));
  --hm-sec: clamp(80px, 9vw, 152px);
  --hm-row: color-mix(in srgb, var(--lg-text) 4.5%, transparent);
  --hm-overlap: clamp(96px, 12vw, 220px);
  --hm-card-shadow: 0 0 0 1px var(--lg-separator), 0 1px 2px color-mix(in srgb, var(--lg-black) 5%, transparent), 0 24px 60px -24px color-mix(in srgb, var(--lg-black) 26%, transparent);
}
:root[data-theme="dark"] {
  --hm-ink: color-mix(in srgb, var(--lg-bg) 55%, var(--lg-black));
  --hm-ink-accent: color-mix(in srgb, var(--lg-accent) 72%, var(--lg-white));
  --hm-card-shadow: 0 0 0 1px var(--lg-separator), 0 24px 60px -24px color-mix(in srgb, var(--lg-black) 70%, transparent);
}

.hm-main { overflow-x: clip; }
.hm-main .s-ic { width: 1.1em; height: 1.1em; }

/* ---------- Shared type -------------------------------------------------------------- */

.hm-h2 {
  font-family: var(--lg-font-display); font-weight: 700;
  font-size: clamp(32px, 3.5vw, 56px); line-height: 1.06; letter-spacing: -0.032em;
  color: var(--lg-text); text-wrap: balance;
}
.hm-text {
  margin-top: 20px; max-width: 34em;
  font-size: clamp(17px, 1.2vw, 20px); line-height: 1.55; color: var(--lg-text-secondary); text-wrap: pretty;
}
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: var(--lg-t-label); font-weight: 600; color: var(--lg-accent-text);
}
.hm-eyebrow .s-ic { width: 18px; height: 18px; }

/* ---------- 1. Hero ------------------------------------------------------------------ */

.hm-hero {
  position: relative; isolation: isolate; display: flow-root;
  background: var(--hm-ink); color: var(--hm-on-ink);
  padding-top: calc(var(--header-h) + clamp(56px, 7vw, 112px));
  margin-bottom: var(--hm-overlap);
}
.hm-hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(48% 46% at 50% 0%, color-mix(in srgb, var(--lg-accent) 46%, transparent), transparent 72%),
    radial-gradient(34% 40% at 6% 70%, color-mix(in srgb, var(--lg-indigo) 22%, transparent), transparent 72%),
    radial-gradient(34% 40% at 94% 72%, color-mix(in srgb, var(--lg-blue) 16%, transparent), transparent 72%);
}
.hm-hero-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--hm-ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--hm-ink-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 60% 52% at 50% 18%, var(--lg-black), transparent 80%);
  mask-image: radial-gradient(ellipse 60% 52% at 50% 18%, var(--lg-black), transparent 80%);
  opacity: .5;
}
.hm-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hm-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: var(--lg-r-pill);
  background: color-mix(in srgb, var(--lg-white) 8%, transparent); box-shadow: inset 0 0 0 1px var(--hm-ink-line);
  color: var(--hm-on-ink-2); font-size: var(--lg-t-label); font-weight: 600;
}
.hm-pill .s-ic { width: 16px; height: 16px; color: var(--hm-ink-accent); }
.hm-h1 {
  margin-top: 28px; max-width: 17ch;
  font-family: var(--lg-font-display); font-weight: 700;
  font-size: clamp(42px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -0.042em; text-wrap: balance;
  background: linear-gradient(180deg, var(--lg-white) 40%, var(--hm-ink-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-lead {
  margin-top: 28px; max-width: 38em;
  font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; color: var(--hm-on-ink-2); text-wrap: balance;
}
.hm-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hm-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.hm-hero-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--hm-on-ink-2); font-size: var(--lg-t-label); font-weight: 500; }
.hm-hero-links a:hover { color: var(--hm-on-ink); }
.hm-hero-links .s-ic { width: 14px; height: 14px; color: var(--hm-ink-accent); transition: transform var(--lg-dur) var(--lg-ease); }
.hm-hero-links a:hover .s-ic { transform: translateX(2px); }

/* The product shot hangs over the end of the hero into the page below. */
.hm-shot { position: relative; margin-top: clamp(56px, 6.5vw, 96px); margin-bottom: calc(var(--hm-overlap) * -1); }

/* ---------- The drawn workspace (hero) ------------------------------------------------ */

.hm-app {
  max-width: 1320px; margin-inline: auto; overflow: hidden; text-align: left;
  border-radius: 18px; background: var(--lg-surface-solid); color: var(--lg-text);
  font-size: 13px; line-height: 1.35;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--lg-white) 14%, transparent),
    0 0 0 9px color-mix(in srgb, var(--lg-white) 5%, transparent),
    0 60px 120px -40px color-mix(in srgb, var(--lg-black) 70%, transparent);
}
.hm-app-bar {
  display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 14px;
  background: color-mix(in srgb, var(--lg-bg) 45%, var(--lg-surface-solid));
  border-bottom: 1px solid var(--lg-separator);
}
.hm-app-dots { display: flex; gap: 7px; flex: none; }
.hm-app-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--lg-fill-strong); }
.hm-app-search {
  display: inline-flex; align-items: center; gap: 8px; margin-inline: auto; width: min(420px, 60%); height: 28px; padding: 0 12px;
  border-radius: 8px; background: var(--lg-fill); color: var(--lg-text-tertiary); font-size: 12.5px; white-space: nowrap; overflow: hidden;
}
.hm-app-search .s-ic { width: 14px; height: 14px; }
.hm-app-me { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: var(--lg-accent-soft); color: var(--lg-accent-text); }

.hm-app-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 340px; }

.hm-app-side {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 10px;
  background: color-mix(in srgb, var(--lg-bg) 50%, var(--lg-surface-solid));
  border-right: 1px solid var(--lg-separator);
}
.hm-side-item {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px;
  color: var(--lg-text-secondary); font-weight: 500;
}
.hm-side-item .s-ic { width: 17px; height: 17px; }
.hm-side-item b { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: var(--lg-r-pill); background: var(--lg-accent-fill); color: var(--lg-on-accent); }
.hm-side-item.hm-on { background: var(--lg-accent-soft); color: var(--lg-accent-text); font-weight: 600; }
.hm-side-zaron { margin-top: auto; color: var(--lg-accent-text); }

.hm-app-main { position: relative; padding: 18px; background: color-mix(in srgb, var(--lg-bg) 28%, var(--lg-surface-solid)); min-width: 0; overflow: hidden; }
.hm-board-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.hm-board-title { font-size: 15px; font-weight: 700; margin-right: 6px; }
.hm-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hm-col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; font-size: 12px; font-weight: 600; color: var(--lg-text-secondary); }
.hm-col-head b { font-weight: 600; color: var(--lg-text-tertiary); }
.hm-lead-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 11px 12px;
  border-radius: 10px; background: var(--lg-surface-solid);
  box-shadow: 0 0 0 1px var(--lg-separator), 0 1px 2px color-mix(in srgb, var(--lg-black) 5%, transparent);
}
.hm-lead-card .hm-chip { grid-column: 2; justify-self: start; margin-top: 4px; }
.hm-lead-card.hm-on { box-shadow: 0 0 0 2px var(--lg-accent), 0 6px 18px -8px color-mix(in srgb, var(--lg-accent) 50%, transparent); }

.hm-app-panel { padding: 20px; border-left: 1px solid var(--lg-separator); background: var(--lg-surface-solid); display: flex; flex-direction: column; gap: 16px; }
.hm-deal-head { display: flex; align-items: center; gap: 12px; }
.hm-deal-who { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; }
.hm-deal-who small { font-size: 12px; font-weight: 500; color: var(--lg-text-tertiary); margin-top: 2px; }
.hm-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.hm-stages li { position: relative; padding-top: 10px; font-size: 10.5px; font-weight: 600; color: var(--lg-text-tertiary); text-align: center; }
.hm-stages li::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 4px; background: var(--lg-fill); }
.hm-stages li.hm-done::before { background: color-mix(in srgb, var(--lg-accent) 55%, transparent); }
.hm-stages li.hm-now::before { background: var(--lg-accent); }
.hm-stages li.hm-now { color: var(--lg-accent-text); }
.hm-panel-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--lg-accent-text); text-transform: uppercase; letter-spacing: .04em; }
.hm-panel-label .s-ic { width: 14px; height: 14px; }
.hm-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -6px 0 0; }
.hm-facts div { padding: 10px; border-radius: 10px; background: var(--hm-row); }
.hm-facts dt { font-size: 11px; color: var(--lg-text-tertiary); }
.hm-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.hm-mini-draft { padding: 14px; border-radius: 12px; background: var(--lg-accent-softer, var(--lg-accent-soft)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lg-accent) 22%, transparent); }
.hm-mini-draft-k { font-size: 11.5px; font-weight: 700; color: var(--lg-accent-text); }
.hm-mini-draft-t { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--lg-text); }
.hm-mini-draft-row { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- Drawn UI atoms ------------------------------------------------------------ */

.hm-av {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  --av: var(--lg-accent);
  background: color-mix(in srgb, var(--av) 18%, var(--lg-surface-solid));
  /* 50% toward the ink: the initials read 4.5:1 on their tint in every Direction (72% gave 2.96:1 orange in Operator). */
  color: color-mix(in srgb, var(--av) 50%, var(--lg-text));
}
.hm-av--lg { width: 40px; height: 40px; font-size: 13px; }
.hm-av--b { --av: var(--lg-blue); }
.hm-av--c { --av: var(--lg-orange); }
.hm-av--d { --av: var(--lg-success); }
.hm-av--e { --av: var(--lg-pink); }
.hm-av--f { --av: var(--lg-indigo); }
.hm-av--n { --av: var(--lg-text-secondary); }
.hm-lc-t { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 600; color: var(--lg-text); }
.hm-lc-t small { font-size: 11.5px; font-weight: 500; color: var(--lg-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hm-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--lg-r-pill);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  background: var(--lg-fill); color: var(--lg-text-secondary);
}
.hm-main .hm-chip .s-ic { width: 12px; height: 12px; }
.hm-chip--ok { background: var(--lg-success-soft); color: var(--lg-success-ink); }
.hm-chip--warn { background: var(--lg-warning-soft); color: var(--lg-warning-ink); }
.hm-chip--ai { background: var(--lg-accent-soft); color: var(--lg-accent-text); }

.hm-fake-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--lg-r-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--lg-surface-solid); color: var(--lg-text); box-shadow: 0 0 0 1px var(--lg-separator-strong, var(--lg-separator));
}
.hm-main .hm-fake-btn .s-ic { width: 13px; height: 13px; }
.hm-fake-btn--primary { background: var(--lg-accent-fill); color: var(--lg-on-accent); box-shadow: none; }

/* ---------- 2. Built for ------------------------------------------------------------- */

.hm-for { padding: clamp(40px, 4vw, 64px) 0 0; }
.hm-for .s-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hm-for-k { font-size: var(--lg-t-secondary); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lg-text-tertiary); }
.hm-for-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(20px, 3.4vw, 56px); margin: 0; padding: 0; }
.hm-for-list li { display: inline-flex; align-items: center; gap: 9px; font-family: var(--lg-font-display); font-weight: 600; font-size: clamp(16px, 1.25vw, 19px); color: var(--lg-text-secondary); }
.hm-for-list .s-ic { width: 20px; height: 20px; color: var(--lg-text-tertiary); }

/* ---------- 3-6. Feature rows -------------------------------------------------------- */

.hm-feature { padding-top: var(--hm-sec); }
.hm-feature-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 128px); align-items: center; }
.hm-feature--flip .hm-copy { order: 2; }
.hm-feature--flip .hm-feature-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.hm-copy { max-width: 560px; }
.hm-feature--flip .hm-copy { justify-self: start; }
.hm-points { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; }
.hm-points li { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(16px, 1.05vw, 17px); font-weight: 500; color: var(--lg-text); line-height: 1.45; text-wrap: pretty; }
.hm-points .s-ic {
  flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 0; border-radius: 50%;
  background: var(--lg-accent-soft); color: var(--lg-accent-text);
}
.hm-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 36px; font-weight: 600; font-size: var(--lg-t-control); color: var(--lg-accent-text); }
.hm-more .s-ic { width: 16px; height: 16px; transition: transform var(--lg-dur) var(--lg-ease); }
.hm-more:hover .s-ic { transform: translateX(3px); }

/* The tinted stage each product card sits on. */
.hm-stage {
  --tint: var(--lg-accent);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  min-height: clamp(420px, 36vw, 600px); padding: clamp(28px, 4.5vw, 80px);
  border-radius: var(--lg-r-2xl);
  background: var(--lg-surface);
  box-shadow: inset 0 0 0 1px var(--lg-separator);
}
.hm-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 70% at 100% 0%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, color-mix(in srgb, var(--tint) 12%, transparent), transparent 70%);
}
.hm-stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--lg-fill-ink) 1px, transparent 1px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, var(--lg-black), transparent 85%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, var(--lg-black), transparent 85%);
  opacity: .7;
}
.hm-stage--b { --tint: var(--lg-orange); }
.hm-stage--c { --tint: var(--lg-indigo); }
.hm-stage--d { --tint: var(--lg-success); }

.hm-card {
  width: 100%; max-width: clamp(320px, 30vw, 540px); padding: 20px; border-radius: 20px; text-align: left;
  background: var(--lg-surface-solid); color: var(--lg-text); font-size: 13px; line-height: 1.4;
  box-shadow: var(--hm-card-shadow);
}
.hm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--lg-separator); }
.hm-card-title { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.hm-main .hm-card-title .s-ic { width: 16px; height: 16px; color: var(--lg-accent-text); }
.hm-sub-k { margin: 18px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lg-text-tertiary); }

/* Thread + AI draft */
.hm-msg { display: flex; gap: 12px; }
.hm-msg-body { min-width: 0; }
.hm-msg-who { font-weight: 700; font-size: 13px; }
.hm-msg-who small { margin-left: 6px; font-weight: 500; color: var(--lg-text-tertiary); font-size: 11.5px; }
.hm-msg-t { margin-top: 6px; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--hm-row); font-size: 13.5px; line-height: 1.5; }
.hm-draft {
  margin-top: 16px; padding: 16px; border-radius: 16px;
  background: var(--lg-accent-softer, var(--lg-accent-soft));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lg-accent) 26%, transparent);
}
.hm-draft-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--lg-accent-text); }
.hm-draft-k span { font-weight: 500; color: var(--lg-text-tertiary); }
.hm-main .hm-draft-k .s-ic { width: 14px; height: 14px; }
.hm-draft-t { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--lg-text); }
.hm-sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.hm-sources li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--lg-r-pill); background: var(--lg-surface-solid); font-size: 11.5px; font-weight: 600; box-shadow: 0 0 0 1px var(--lg-separator); }
.hm-sources small { font-weight: 500; color: var(--lg-text-tertiary); font-size: 11px; }
.hm-main .hm-sources .s-ic { width: 13px; height: 13px; color: var(--lg-success); }
.hm-draft-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Showings */
.hm-agent { display: flex; align-items: center; gap: 10px; }
.hm-slots { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; }
.hm-slots li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--hm-row);
  font-weight: 600;
}
.hm-slots time { font-variant-numeric: tabular-nums; color: var(--lg-text-secondary); font-size: 12.5px; }
.hm-slots small { margin-left: 6px; font-weight: 500; color: var(--lg-text-tertiary); }
.hm-slots li.hm-clash { background: color-mix(in srgb, var(--lg-orange) 12%, var(--lg-surface-solid)); box-shadow: inset 3px 0 0 var(--lg-orange); }
.hm-why { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--lg-warning-soft); color: var(--lg-text); font-size: 13px; line-height: 1.45; }
.hm-main .hm-why .s-ic { width: 18px; height: 18px; color: var(--lg-warning-ink); margin-top: 1px; }
.hm-alt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: 0 0 0 1px var(--lg-separator); }
.hm-alt + .hm-alt { margin-top: 8px; }
.hm-alt:first-of-type { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--lg-success) 55%, transparent); }

/* Application + signing (two overlapping cards) */
.hm-stack { position: relative; width: 100%; max-width: 560px; padding-bottom: 212px; }
.hm-stack .hm-app-card { max-width: 440px; }
.hm-sign-card { position: absolute; right: 0; bottom: 0; max-width: 300px; padding: 16px; }
.hm-sign-card .hm-card-head { padding-bottom: 10px; margin-bottom: 10px; }
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 0 16px; padding: 0; list-style: none; }
.hm-steps li { position: relative; padding-top: 10px; font-size: 11px; font-weight: 600; color: var(--lg-text-tertiary); }
.hm-steps li::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 4px; background: var(--lg-fill); }
.hm-steps li.hm-done::before { background: color-mix(in srgb, var(--lg-indigo) 55%, transparent); }
.hm-steps li.hm-now::before { background: var(--lg-indigo); }
.hm-steps li.hm-now { color: var(--lg-text); }
.hm-checks { display: grid; gap: 6px; margin: 0; padding: 0; }
.hm-checks li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--hm-row); font-weight: 600; }
.hm-main .hm-checks li > .s-ic { width: 18px; height: 18px; color: var(--lg-text-secondary); }
.hm-checks small { display: block; font-weight: 500; font-size: 11px; color: var(--lg-text-tertiary); }
.hm-signers { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hm-signers li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 2px; font-weight: 600; font-size: 12.5px; }
.hm-signers .hm-av { width: 26px; height: 26px; font-size: 10px; }
.hm-signers li:not(.hm-done):not(.hm-now) { color: var(--lg-text-tertiary); }

/* Invoice */
.hm-inv-k { font-size: 12px; color: var(--lg-text-tertiary); font-weight: 600; }
.hm-inv-total { margin-top: 2px; font-family: var(--lg-font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hm-bar { height: 8px; margin-top: 14px; border-radius: 8px; background: var(--lg-fill); overflow: hidden; }
.hm-bar i { display: block; width: 50%; height: 100%; border-radius: 8px; background: var(--lg-success); }
.hm-inv-sub { margin-top: 8px; font-size: 12.5px; color: var(--lg-text-secondary); }
.hm-inv-sub b { color: var(--lg-text); }
.hm-splits { display: grid; gap: 6px; margin: 0; padding: 0; }
.hm-splits li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--hm-row); }
.hm-amt { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-amt small { font-weight: 500; font-size: 11px; color: var(--lg-text-tertiary); }
.hm-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--lg-success-ink); }
.hm-main .hm-note .s-ic { width: 16px; height: 16px; }

/* ---------- 7. Everything else ------------------------------------------------------- */

.hm-more-sec { padding-top: var(--hm-sec); }
.hm-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 3.5vw, 56px); }
.hm-sec-head .hm-text { margin-top: 16px; }
.hm-all-btn { flex: none; }
.hm-all-btn .s-ic { width: 16px; height: 16px; }
.hm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.hm-tile {
  display: flex; flex-direction: column; height: 100%; padding: clamp(22px, 2vw, 32px); border-radius: var(--lg-r-xl);
  background: var(--lg-surface); box-shadow: inset 0 0 0 1px var(--lg-separator);
  color: var(--lg-text); text-decoration: none !important;
  transition: background-color var(--lg-dur) var(--lg-ease), box-shadow var(--lg-dur) var(--lg-ease), transform var(--lg-dur) var(--lg-ease);
}
.hm-tile:hover { background: var(--lg-surface-solid); box-shadow: inset 0 0 0 1px var(--lg-separator), var(--lg-elev-2); transform: translateY(-2px); }
.hm-tile:focus-visible { outline: 2px solid var(--lg-focus-ring); outline-offset: 3px; }
.hm-tile-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lg-accent-soft); color: var(--lg-accent-text); }
.hm-main .hm-tile-ic .s-ic { width: 22px; height: 22px; }
.hm-tile h3 { margin-top: 22px; font-family: var(--lg-font-display); font-size: clamp(17px, 1.2vw, 19px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.hm-tile p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--lg-text-secondary); text-wrap: pretty; }
.hm-nobr { white-space: nowrap; }

/* ---------- 8. Numbers --------------------------------------------------------------- */

.hm-nums { padding-top: var(--hm-sec); }
.hm-nums-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--lg-separator); border-bottom: 1px solid var(--lg-separator); }
.hm-nums-grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 40px); }
.hm-nums-grid > div + div { box-shadow: inset 1px 0 0 var(--lg-separator); }
.hm-nums-grid > div:first-child { padding-left: 0; }
.hm-nums-grid dd {
  margin: 0; font-family: var(--lg-font-display); font-weight: 700;
  font-size: clamp(48px, 5.4vw, 88px); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--lg-text) 30%, var(--lg-accent-text));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-nums-grid dt { max-width: 24ch; font-size: clamp(15px, 1vw, 16px); line-height: 1.45; color: var(--lg-text-secondary); }

/* ---------- 9. Final call ------------------------------------------------------------ */

.hm-cta { padding: var(--hm-sec) 0 0; }
.hm-cta-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(56px, 8vw, 128px) clamp(20px, 5vw, 80px);
  border-radius: var(--lg-r-2xl); background: var(--hm-ink); color: var(--hm-on-ink);
}
.hm-cta-glow { background: radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--lg-accent) 42%, transparent), transparent 72%); }
.hm-cta-glow::after { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, var(--lg-black), transparent 80%); mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, var(--lg-black), transparent 80%); }
.hm-cta-h {
  max-width: 21ch; font-family: var(--lg-font-display); font-weight: 700;
  font-size: clamp(34px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -0.038em; text-wrap: balance;
  background: linear-gradient(180deg, var(--lg-white) 45%, var(--hm-ink-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-cta-sub { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; color: var(--hm-on-ink-2); text-wrap: balance; }
.hm-cta .hm-hero-cta { margin-top: 36px; }

/* In dark mode the ink panel sits on an equally dark page, so it gets a hairline edge. */
:root[data-theme="dark"] .hm-cta-panel { box-shadow: inset 0 0 0 1px var(--hm-ink-line); }

/* ---------- Motion ------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hm-hero-inner > * { animation: hm-rise .8s var(--lg-ease) both; }
  .hm-hero-inner > :nth-child(2) { animation-delay: .06s; }
  .hm-hero-inner > :nth-child(3) { animation-delay: .12s; }
  .hm-hero-inner > :nth-child(4) { animation-delay: .18s; }
  .hm-hero-inner > :nth-child(5) { animation-delay: .22s; }
  .hm-app { animation: hm-rise 1s var(--lg-ease) .2s both; }
  .hm-lead-card.hm-on { animation: hm-glow 2.8s ease-in-out 1.4s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-tile, .hm-tile:hover, .hm-more .s-ic, .hm-hero-links .s-ic { transition: none; transform: none; }
}
/* A rise only: the hero is readable from the first frame (no fade from 0), so it paints at once. */
@keyframes hm-rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes hm-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--lg-accent), 0 6px 18px -8px color-mix(in srgb, var(--lg-accent) 50%, transparent); }
  50% { box-shadow: 0 0 0 2px var(--lg-accent), 0 0 0 6px color-mix(in srgb, var(--lg-accent) 16%, transparent); }
}

/* ---------- Responsive --------------------------------------------------------------- */

@media (max-width: 1280px) {
  .hm-app-body { grid-template-columns: 180px minmax(0, 1fr) 320px; }
  .hm-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-col:nth-child(4) { display: none; }
}
@media (max-width: 1100px) {
  .hm-app-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .hm-app-side { display: none; }
  .hm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-col:nth-child(n+3) { display: none; }
  .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-nums-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-nums-grid > div:nth-child(3) { box-shadow: none; padding-left: 0; }
  .hm-nums-grid > div:nth-child(n+3) { border-top: 1px solid var(--lg-separator); }
}
@media (max-width: 900px) {
  .hm-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-feature--flip .hm-copy { order: 0; }
  .hm-feature--flip .hm-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-copy { max-width: 640px; }
  .hm-stage { min-height: 0; }
  .hm-sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .hm-app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hm-app-main { display: none; }
  .hm-app-panel { border-left: 0; }
  .hm-app-search { width: auto; flex: 1; margin-inline: 0; }
}
@media (max-width: 560px) {
  :root { --hm-overlap: 88px; --hm-sec: 80px; }
  .hm-hero { padding-top: calc(var(--header-h) + 40px); }
  .hm-h1 { font-size: clamp(38px, 11vw, 46px); letter-spacing: -0.035em; }
  .hm-hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hm-hero-cta .s-btn { width: 100%; }
  .hm-shot { margin-top: 44px; }
  .hm-app { border-radius: 14px; }
  .hm-app-dots { display: none; }
  .hm-app-panel { padding: 16px; }
  .hm-stage { padding: 20px 14px; border-radius: var(--lg-r-xl); }
  .hm-card { padding: 16px; }
  .hm-stack { padding-bottom: 0; }
  .hm-sign-card { position: relative; margin: 12px 0 0 auto; max-width: none; }
  .hm-tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hm-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 18px; border-radius: var(--lg-r-lg); }
  .hm-tile-ic { grid-row: span 2; width: 40px; height: 40px; }
  .hm-tile h3 { margin-top: 1px; }
  .hm-tile p { margin-top: 4px; font-size: 14.5px; }
  .hm-all-btn { width: 100%; }
  .hm-nums-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-nums-grid > div { padding-left: 0; padding-right: 0; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 20px; }
  .hm-nums-grid > div + div { box-shadow: none; border-top: 1px solid var(--lg-separator); }
  .hm-nums-grid dd { flex: none; min-width: 3ch; font-size: 52px; }
  .hm-alt .hm-lc-t small { white-space: normal; }
  .hm-cta-panel { border-radius: var(--lg-r-xl); }
}

/* The board fades at its foot, like a cropped screenshot. */
.hm-app-main::after { content: ""; position: absolute; inset: auto 0 0; height: 56px; pointer-events: none; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--lg-bg) 28%, var(--lg-surface-solid))); }
