/* ==========================================================================
   Modeloptic home page — AI-powered financial modeling
   Loaded only by templates/home.html. Scoped under .hm-page.
   Tokens follow landing-page-styles-new.css + design-system colors_and_type.css.
   Light theme only.
   ========================================================================== */

.hm-page {
  --navy: #002658;
  --blue: #486CA8;
  --blue-dk: #375383;
  --green: #09BC8A;
  --green-dk: #089970;
  --green-deep: #06714F;
  --ink: #252733;
  --ink-2: #2C3446;
  --muted: #4B506D;
  --muted-3: #6b7b93;
  --muted-4: #7A8199;
  --bg: #F7F8FC;
  --alt: #F0F3F7;
  --line: #DFE0EB;
  --line-2: #DCE2EA;
  --mint: #D4F5EA;
  --mint-2: #E6F8F2;
  --mint-line: #BFEADC;
  --sky: #eaf1ff;
  --sky-2: #f0f5fb;
  --input-blue: #1A56DB;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-family: Mulish, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.hm-page *, .hm-page *::before, .hm-page *::after { box-sizing: border-box; }
.hm-page a { color: var(--blue); text-decoration: none; }
.hm-page a:hover { text-decoration: underline; }
.hm-page p { margin: 0 0 1em; }
.hm-page p:last-child { margin-bottom: 0; }
.hm-page ul, .hm-page ol { margin: 0; padding: 0; list-style: none; }
.hm-page h1, .hm-page h2, .hm-page h3, .hm-page h4 { margin: 0; }
.hm-page img { max-width: 100%; height: auto; display: block; }
.hm-page .fa-solid, .hm-page .fa-regular, .hm-page .fa-brands { line-height: 1; }

/* ---------- Layout primitives ---------- */
.hm-section { padding: 96px 0; }
.hm-section--alt { background: var(--alt); }
.hm-section--white { background: #fff; }
.hm-section--navy { background: var(--navy); color: #fff; }
.hm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.hm-head { max-width: 780px; margin-bottom: 52px; }
.hm-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.hm-eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--green); }
.hm-section--navy .hm-eyebrow { color: #9DB6E3; }
.hm-h2 {
  font-size: clamp(28px, 3.3vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em;
  color: var(--navy); margin: 16px 0 14px; text-wrap: balance;
}
.hm-section--navy .hm-h2 { color: #fff; }
.hm-lede { font-size: 18px; line-height: 1.55; color: var(--muted); }
.hm-section--navy .hm-lede { color: #C9D6EA; }
.hm-h3 { font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.hm-small { font-size: 13px; color: var(--muted-3); }
.hm-more { margin-top: 28px; font-weight: 700; }
.hm-more i { font-size: 12px; margin-left: 4px; }

/* ---------- Buttons ---------- */
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hm-actions--center { justify-content: center; }
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 8px; font-weight: 800; font-size: 15px; line-height: 1;
  letter-spacing: .01em; text-decoration: none !important; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hm-btn:hover { transform: translateY(-1px); }
.hm-btn:active { transform: translateY(0); }
.hm-btn i { font-size: 13px; transition: transform .18s ease; }
/* .hm-page prefix: outrank the `.hm-page a` link color */
.hm-page .hm-btn--green {
  background: var(--green); color: #fff;
  box-shadow: 0 1px 2px rgba(0,38,88,.10), 0 6px 16px rgba(0,38,88,.12);
}
.hm-page .hm-btn--green:hover {
  background: var(--green-dk); color: #fff;
  box-shadow: 0 2px 4px rgba(0,38,88,.10), 0 10px 22px rgba(0,38,88,.16);
}
.hm-page .hm-btn--green:hover i { transform: translateX(3px); }
.hm-page .hm-btn--navy { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(0,38,88,.20); }
.hm-page .hm-btn--navy:hover { background: #064699; color: #fff; box-shadow: 0 10px 24px rgba(0,38,88,.26); }
.hm-page .hm-btn--ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,38,88,.06); }
.hm-page .hm-btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: #F8FAFF; box-shadow: 0 6px 16px rgba(0,38,88,.10); }
.hm-page .hm-btn--white { background: #fff; color: var(--navy); }
.hm-page .hm-btn--white:hover { background: #E8EEF8; color: var(--navy); }
.hm-page .hm-btn--outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.hm-page .hm-btn--outline-white:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.hm-btn:focus-visible, .hm-page a:focus-visible, .hm-page summary:focus-visible { outline: 3px solid #9daedc; outline-offset: 2px; }

/* ---------- Hero ---------- */
.hm-hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(1200px 640px at 50% -10%, #ffffff 0%, rgba(255,255,255,0) 62%),
    linear-gradient(to right, rgba(72,108,168,.07) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(72,108,168,.07) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
}
.hm-hero-copy { max-width: 880px; margin: 0 auto; text-align: center; }
.hm-hero-copy .hm-eyebrow { justify-content: center; }
.hm-hero-copy .hm-eyebrow::before { display: none; }
.hm-h1 {
  font-size: clamp(38px, 5vw, 64px); font-weight: 900; line-height: 1.02; letter-spacing: -.03em;
  color: var(--navy); margin: 18px auto 22px; text-wrap: balance;
}
.hm-h1 em { font-style: normal; color: var(--green-dk); }
.hm-hero .hm-lede { font-size: 19px; max-width: 720px; margin: 0 auto 30px; }
.hm-hero .hm-btn { padding: 17px 32px; font-size: 16px; }

/* Hero video card: the launch video's poster, with the proof receipt (a logged agent run) as its footer.
   Clicking the poster opens the video in .hm-video-dialog; nothing autoplays. */
.hm-watch {
  margin: 26px auto 0; max-width: 760px; text-align: left;
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 22px 50px rgba(0,38,88,.14), 0 2px 6px rgba(0,38,88,.06);
}
.hm-page .hm-watch-poster {
  position: relative; display: block; aspect-ratio: 16 / 9; background: #001a44;
  color: #fff; text-decoration: none !important; cursor: pointer;
}
.hm-watch-poster img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s ease; }
.hm-watch-poster:hover img { filter: brightness(1.06); }
.hm-watch-poster:focus-visible { outline: 3px solid #9daedc; outline-offset: -3px; }
/* The frame's own headline sits 6.25% from the left and ends near 62% down; the pill lines up beneath it,
   high enough to stay above the fold of a 13" laptop browser (~790px tall). */
.hm-watch-play {
  position: absolute; left: 6.25%; top: 65.5%;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 18px 6px 6px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 800; font-size: 16px; line-height: 1;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.hm-watch-play .ic {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--green-dk);
}
.hm-watch-play .ic svg { width: 16px; height: 16px; margin-left: 3px; }
.hm-watch-play .len { font-family: var(--mono); font-size: 13px; font-weight: 700; opacity: .85; }
.hm-watch-poster:hover .hm-watch-play { background: var(--green-dk); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0,0,0,.4); }
.hm-watch-bar { display: flex; align-items: center; gap: 26px; padding: 18px 24px; border-top: 1px solid var(--line-2); }
.hm-watch-link { display: inline-block; margin-top: 5px; font-size: 13px; font-weight: 700; }
.hm-watch-link i { font-size: 11px; margin-left: 3px; transition: transform .18s ease; }
.hm-watch-link:hover i { transform: translateX(3px); }
.hm-receipt-info { min-width: 0; }
.hm-receipt-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep);
}
.hm-receipt-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px var(--mint-2);
}
.hm-receipt-desc { margin-top: 8px; font-size: 14.5px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.hm-page .hm-receipt-stats { display: flex; align-items: stretch; margin-left: auto; flex-shrink: 0; }
.hm-receipt-stats li {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 2px 20px; border-left: 1px solid var(--line-2);
}
.hm-receipt-stats b { font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.hm-receipt-stats span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); white-space: nowrap; }
/* .hm-page prefix: outrank the `.hm-page ul` margin/padding reset */
.hm-page .hm-checks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 44px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.hm-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hm-checks i { color: var(--green); font-size: 12px; }

/* ---------- The real run (unedited product screenshots) ----------
   Three actual screenshots from prompt 3 of the SaaS LBO walkthrough:
   the prompt box, the agent's task plan, and the LBO tab it produced.
   Everything around the images (labels, window bar) is clearly editorial. */
.hm-run { margin: 0 auto; max-width: 1080px; text-align: left; }
.hm-run-stage { position: relative; }
.hm-run .n {
  flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0;
}
.hm-run img { width: 100%; }
.hm-run-main {
  margin: 0 0 0 auto; width: 68.3%;
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,38,88,.14), 0 2px 6px rgba(0,38,88,.06);
}
.hm-run-bar {
  display: flex; align-items: center; gap: 9px; padding: 9px 16px; background: #F5F7FA;
  border-bottom: 1px solid var(--line-2);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
}
.hm-run-bar .dots { display: inline-flex; gap: 6px; margin-right: 5px; }
.hm-run-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: #D6DCE6; }
.hm-run-side {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 33%; z-index: 2;
  display: flex; flex-direction: column; gap: 18px;
}
.hm-run-card {
  margin: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 34px -8px rgba(0,38,88,.18), 0 2px 6px rgba(0,38,88,.06);
}
.hm-run-lbl {
  display: flex; align-items: center; gap: 9px; padding: 8px 14px;
  background: #F5F7FA; border-bottom: 1px solid var(--line-2);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
}
.hm-run-note { margin: 14px 0 0; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--muted-3); }
.hm-run-note a { font-weight: 700; }

/* ---------- Proof (walkthrough) ---------- */
.hm-proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.hm-prompts { display: flex; flex-direction: column; gap: 14px; }
.hm-prompt-card { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.hm-prompt-card .lbl { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.hm-prompt-card .lbl .n { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.hm-prompt-card .lbl .what { color: var(--muted-3); font-weight: 700; letter-spacing: .04em; text-transform: none; font-size: 12px; }
.hm-prompt-card p { font-size: 14px; line-height: 1.55; color: var(--ink); margin: 0; }
.hm-unprompted { margin-top: 22px; background: var(--mint-2); border: 1px solid var(--mint-line); border-radius: 10px; padding: 16px 18px; }
.hm-unprompted .t { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px; }
.hm-unprompted li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-bottom: 6px; }
.hm-unprompted li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hm-shot { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,38,88,.10), 0 2px 6px rgba(0,38,88,.05); }
.hm-shot-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #F5F7FA; border-bottom: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--muted-3); }
.hm-shot-bar .dots { display: inline-flex; gap: 6px; }
.hm-shot-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: #D6DCE6; }
.hm-shot img { width: 100%; }
.hm-shot figcaption { padding: 10px 14px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-2); }
.hm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.hm-stat { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 14px 12px; }
.hm-stat .v { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.hm-stat .v small { font-size: 14px; font-weight: 700; color: var(--muted-3); margin-left: 2px; }
.hm-stat .k { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.hm-proof-actions { margin-top: 24px; }
.hm-proof-actions .hm-btn { padding: 13px 20px; }
.hm-proof-files { margin-top: 12px; font-size: 13px; color: var(--muted-3); }
.hm-proof-files a { font-weight: 700; }

/* ---------- How it works ---------- */
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hm-step { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 24px 22px 22px; position: relative; }
.hm-step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; margin-bottom: 16px; }
.hm-step .hm-h3 { margin-bottom: 8px; }
.hm-step p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.hm-builds { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hm-builds .t { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); margin-right: 6px; }
.hm-chip { font-size: 13px; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }

/* ---------- Why it matters (chain) ---------- */
.hm-chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.hm-chain-card { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 24px 22px 22px; }
.hm-chain-card .k { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px; }
.hm-chain-card .hm-h3 { margin-bottom: 8px; }
.hm-chain-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.hm-chain-arr { align-self: center; color: #B8C4D9; font-size: 17px; }
.hm-matters-note {
  margin-top: 28px; background: var(--mint-2); border: 1px solid var(--mint-line); border-radius: 12px;
  padding: 18px 22px; font-size: 15px; color: var(--ink-2); line-height: 1.55;
}
.hm-matters-note .t { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 6px; }

/* ---------- Why it works (compare) ---------- */
.hm-compare {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; margin-top: 8px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,38,88,.08), 0 1px 3px rgba(0,38,88,.04);
}
.hm-stack { display: flex; flex-direction: column; min-width: 0; }
.hm-stack--good { border-left: 1px solid var(--line-2); background: linear-gradient(180deg, #F3FBF7 0%, #FCFEFD 60%); }
.hm-stack-head { padding: 16px 22px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--muted); background: #F5F7FA; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.hm-stack--good .hm-stack-head { background: var(--mint-2); color: var(--green-deep); border-bottom-color: var(--mint-line); }
.hm-stack-head i { color: var(--muted-3); }
.hm-stack--good .hm-stack-head i { color: var(--green); }
.hm-flow { display: flex; flex-direction: column; align-items: center; padding: 32px 24px 18px; gap: 0; }
.hm-node { font-size: 13.5px; font-weight: 800; color: var(--navy); background: var(--sky); border: 1px solid #D4DEEE; border-radius: 8px; padding: 10px 20px; text-align: center; }
.hm-node.soft { background: #fff; border-color: var(--line-2); font-weight: 700; color: var(--ink-2); }
.hm-node.good { background: var(--mint-2); border-color: var(--mint-line); color: var(--green-deep); }
.hm-node small { display: block; font-size: 11px; font-weight: 600; color: var(--muted-3); margin-top: 2px; }
.hm-arr { width: 2px; height: 24px; background: #B8C4D9; position: relative; margin: 6px 0; }
.hm-arr::after { content: ""; position: absolute; left: -4px; bottom: -1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #B8C4D9; }
.hm-arr-split { flex: none; width: 264px; height: 30px; margin: 6px 0 8px; color: #B8C4D9; }
.hm-leaves { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.hm-leaf { font-size: 12.5px; font-weight: 800; border-radius: 8px; padding: 8px 14px; border: 1px solid; white-space: nowrap; min-width: 120px; text-align: center; }
.hm-leaf.ui { color: var(--navy); background: var(--sky); border-color: #D4DEEE; }
.hm-leaf.xl { color: #1D6F42; background: #E8F5EE; border-color: #BFE2CD; }
.hm-leaf.gray { color: var(--muted); background: #F5F7FA; border-color: var(--line-2); }
/* .hm-page prefix: outrank the `.hm-page ul` padding reset */
.hm-page .hm-stack-points { padding: 14px 26px 24px 22px; margin-top: auto; }
.hm-stack-points li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-bottom: 10px; }
.hm-stack-points li i { position: absolute; left: 0; top: 5px; font-size: 11px; color: var(--muted-4); }
.hm-stack--good .hm-stack-points li i { color: var(--green); }
.hm-stack-points li.key { font-weight: 700; color: var(--navy); }
.hm-vs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2);
  box-shadow: 0 4px 14px rgba(0,38,88,.12); display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800; color: var(--muted-3); letter-spacing: .06em;
}
.hm-fight {
  margin: 34px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px;
  font-size: 15px; font-weight: 700; color: var(--navy); text-align: center;
}
.hm-fight .pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.hm-fight .pill.good { border-color: var(--mint-line); background: var(--mint-2); color: var(--green-deep); }
.hm-fight .vs { color: var(--muted-3); font-size: 13px; letter-spacing: .06em; margin: 0 4px; }
.hm-fight .plus { color: var(--green-dk); font-weight: 900; }
.hm-fight-line { text-align: center; margin-top: 12px; font-size: 15px; color: var(--muted); }
.hm-fight-line a { font-weight: 700; }
.hm-figs-cta { margin-top: 30px; }
.hm-figs-cta .hm-btn { padding: 11px 20px; font-size: 14px; font-weight: 700; }
.hm-figs-cta .hm-btn i { font-size: 12px; }
.hm-figs-cta .hm-btn:hover i { transform: translateX(3px); }

/* ---------- Why it works (model-logic diagram) ---------- */
.hm-figs { max-width: 720px; margin: 8px auto 0; }
.hm-fig {
  margin: 0; display: flex; align-items: center; justify-content: center;
  padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,38,88,.08), 0 1px 3px rgba(0,38,88,.04);
}
.hm-figs .matchup-chip {
  display: inline-block; border: 1px solid #D4DEEE; border-radius: 8px; padding: 7px 14px;
  font-size: 14px; font-weight: 800; line-height: 1.3; letter-spacing: .01em; white-space: nowrap;
  color: var(--navy); background: var(--sky);
}
.hm-figs .matchup-chip.good { background: #E8F8F2; border-color: var(--mint-line); color: var(--green-dk); }
.hm-figs .matchup-chip.excel { background: #FCF6E9; border-color: #EBD3A0; color: #7A5411; }
.hm-figs .matchup-chip.ui { background: var(--sky); border-color: #B9C9E6; color: #2E4A78; }
.hm-figs .matchup-vs { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-4); }
/* flow diagram: LLM <-> Excel vs LLM <-> model logic -> browser UI / Excel */
.hm-figs .blog-flow { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 0; }
.hm-figs .flow-side { display: flex; flex-direction: column; align-items: center; }
.hm-figs .flow-caption {
  margin-bottom: 12px; color: var(--muted-4); font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; line-height: 18px; white-space: nowrap;
}
.hm-figs .flow-side:last-child .flow-caption { color: var(--blue); }
/* vs sits level with the arrows row: caption + LLM chip + half the arrows block */
.hm-figs .blog-flow .matchup-vs { margin: 70px 16px 0; }
.hm-figs .flow-arrows { display: block; margin: 4px 0; }
.hm-figs .flow-fork { display: block; margin: 2px 0 4px; }
.hm-figs .flow-leaves { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; width: 220px; }
.hm-figs .blog-flow svg path { fill: none; stroke: #B8C4D9; stroke-width: 2; stroke-linecap: round; }
.hm-figs .blog-flow svg polygon { fill: #B8C4D9; }
/* ---------- Pillars ---------- */
.hm-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.hm-pillar { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 20px 22px 18px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.hm-pillar:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(72,108,168,.14); transform: translateY(-1px); }
.hm-pillar .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hm-pillar .ic { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 14px; }
.hm-pillar .hm-h3 { font-size: 16px; }
.hm-pillar p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- Review & control ---------- */
.hm-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hm-ctl { border-top: 3px solid var(--green); padding-top: 16px; }
.hm-ctl .when { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 6px; }
.hm-ctl .hm-h3 { margin-bottom: 8px; }
.hm-ctl p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.hm-shots { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; margin-top: 40px; }
.hm-shots .hm-shot--wide { grid-column: 1 / -1; }
.hm-audit { margin-top: 40px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 28px; }
.hm-audit .hm-h3 { font-size: 22px; margin-bottom: 10px; }
.hm-audit p { font-size: 15px; color: var(--muted); }
.hm-audit .hm-shot { box-shadow: 0 12px 30px rgba(0,38,88,.10); }

/* ---------- Audience ---------- */
.hm-aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-aud-card { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 24px 22px; }
.hm-aud-card .who { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.hm-aud-card .hm-h3 { margin-bottom: 10px; }
.hm-aud-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.hm-aud-card li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; line-height: 1.45; }
.hm-aud-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Plans ---------- */
.hm-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.hm-plan-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 24px 22px 22px;
  display: flex; flex-direction: column; position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
/* The card's button link stretches over the whole card, making the card itself clickable. */
.hm-plan-card .hm-btn::after { content: ""; position: absolute; inset: 0; }
/* A transform on the button would become the stretched link's containing block and collapse it to button size. */
.hm-plan-card .hm-btn:hover, .hm-plan-card .hm-btn:active { transform: none; }
.hm-plan-card:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(72,108,168,.14); transform: translateY(-1px); }
.hm-plan-card--hi { border-color: var(--green); box-shadow: 0 10px 30px rgba(9,188,138,.12); }
.hm-plan-card--hi:hover { border-color: var(--green-dk); box-shadow: 0 14px 34px rgba(9,188,138,.20); }
.hm-plan-card .tag { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); }
.hm-plan-card--hi .tag { color: var(--green-deep); }
.hm-plan-card .price { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin: 8px 0 4px; line-height: 1.1; }
.hm-plan-card .price small { font-size: 14px; font-weight: 700; color: var(--muted-3); letter-spacing: 0; margin-left: 4px; }
.hm-plan-card .equiv { font-size: 11.5px; color: var(--muted-3); margin: 0 0 10px; }
.hm-plan-card .desc { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.hm-plan-card ul { margin-bottom: 22px; }
.hm-plan-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; line-height: 1.45; }
.hm-plan-card li i { color: var(--green); font-size: 12px; margin-top: 5px; }
.hm-plan-card .hm-btn { margin-top: auto; width: 100%; }
.hm-call { margin-top: 28px; background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hm-call .txt { flex: 1 1 420px; font-size: 15px; color: var(--muted); }
.hm-call .txt b { color: var(--navy); }

/* ---------- Trust ---------- */
.hm-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hm-trust-item { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 20px; }
.hm-trust-item .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 14px; margin-bottom: 12px; }
.hm-trust-item .hm-h3 { font-size: 15.5px; margin-bottom: 6px; }
.hm-trust-item p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.hm-trust-note { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.hm-trust-note a { font-weight: 700; }

/* ---------- Blog ---------- */
.hm-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hm-post { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; color: inherit; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.hm-post:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(72,108,168,.14); transform: translateY(-1px); color: inherit; }
.hm-post .cover { aspect-ratio: 5 / 3; background: var(--alt); overflow: hidden; border-bottom: 1px solid var(--line-2); }
.hm-post .cover img { width: 100%; height: 100%; object-fit: cover; }
.hm-post .body { padding: 16px 18px 18px; }
.hm-post .kind { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 6px; }
.hm-post .hm-h3 { font-size: 16px; margin-bottom: 6px; }
.hm-post p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.hm-post .read { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--blue); }

/* ---------- FAQ ---------- */
.hm-faq { max-width: 860px; margin: 0 auto; }
.hm-faq details { border-bottom: 1px solid var(--line); }
.hm-faq details:first-of-type { border-top: 1px solid var(--line); }
.hm-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px; font-size: 17px; font-weight: 700; color: var(--navy); }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary .pm { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); font-size: 12px; transition: transform .2s ease; }
.hm-faq details[open] summary .pm { transform: rotate(45deg); background: var(--sky); }
.hm-faq .a { padding: 0 4px 20px; font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 760px; }

/* ---------- Close ---------- */
.hm-close { padding: 96px 0 88px; text-align: center; }
.hm-close .hm-h2 { font-size: clamp(30px, 3.8vw, 46px); }
.hm-close .hm-lede { max-width: 680px; margin: 0 auto 30px; }
.hm-fpa { margin-top: 26px; font-size: 14px; color: #A9BCDA; }
.hm-fpa a { color: #fff; font-weight: 700; }

/* ---------- Screenshot enlargement ---------- */
.hm-image-link { display: block; cursor: zoom-in; }
.hm-image-link img { display: block; }
.hm-image-link:focus-visible { outline: 3px solid var(--green-deep); outline-offset: -3px; }
.hm-image-dialog {
  width: calc(100vw - 32px); max-width: 1800px; max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; color: var(--navy); box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.hm-image-dialog::backdrop { background: rgba(0,20,46,.75); }
body:has(.hm-image-dialog[open]) { overflow: hidden; }
.hm-image-toolbar { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line-2); }
.hm-image-toolbar button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.hm-image-toolbar button:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 2px; }
.hm-image-viewport { max-height: calc(100dvh - 96px); overflow: auto; overscroll-behavior: contain; }
.hm-image-dialog .hm-image-full { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 96px); margin: 0 auto; }
.hm-image-dialog.is-zoomed .hm-image-full { max-width: none; max-height: none; }

/* ---------- Launch video dialog: fills most of the viewport at 16:9 ---------- */
.hm-video-dialog {
  width: min(92vw, calc((100dvh - 150px) * 16 / 9)); max-width: none; max-height: none;
  margin: auto; padding: 52px 0 0; border: 0; background: transparent; overflow: visible;
}
.hm-video-dialog::backdrop { background: rgba(0,12,30,.9); }
body:has(.hm-video-dialog[open]) { overflow: hidden; }
.hm-video-frame {
  aspect-ratio: 16 / 9; background: #001a44; border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.hm-video-frame video { display: block; width: 100%; height: 100%; background: #001a44; }
.hm-video-close {
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent;
  color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.hm-video-close:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hm-video-close:focus-visible { outline: 3px solid #9daedc; outline-offset: 2px; }
.hm-video-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.hm-video-foot .hm-btn { padding: 12px 22px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hm-section { padding: 76px 0; }
  .hm-hero { padding: 56px 0 64px; }
  .hm-run-side {
    position: static; transform: none; width: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px;
  }
  .hm-run-main { width: 100%; }
  .hm-run-note { text-align: left; }
  .hm-proof-grid { grid-template-columns: 1fr; gap: 32px; }
  .hm-steps { grid-template-columns: 1fr 1fr; }
  .hm-compare { grid-template-columns: 1fr; }
  .hm-stack--good { border-left: none; border-top: 1px solid var(--line-2); }
  .hm-vs { display: none; }
  .hm-pillars { grid-template-columns: 1fr 1fr; }
  .hm-control { grid-template-columns: 1fr; gap: 20px; }
  .hm-shots { grid-template-columns: 1fr; }
  .hm-audit { grid-template-columns: 1fr; }
  .hm-aud { grid-template-columns: 1fr; }
  .hm-plans { grid-template-columns: 1fr 1fr; }
  .hm-trust { grid-template-columns: 1fr 1fr; }
  .hm-chain { grid-template-columns: 1fr; gap: 12px; }
  .hm-chain-arr { justify-self: center; transform: rotate(90deg); }
  .hm-posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hm-wrap { padding: 0 18px; }
  .hm-hero-copy .hm-eyebrow { font-size: 11px; letter-spacing: .1em; }
  .hm-run-side { grid-template-columns: 1fr; }
  .hm-section { padding: 60px 0; }
  .hm-hero { padding: 44px 0 52px; }
  .hm-hero .hm-lede { font-size: 17px; }
  .hm-btn { width: 100%; }
  .hm-actions { width: 100%; }
  .hm-watch { margin-top: 28px; border-radius: 12px; }
  .hm-watch-play { padding: 4px 12px 4px 4px; gap: 8px; }
  .hm-watch-play .lbl { display: none; }
  .hm-watch-play .ic { width: 28px; height: 28px; }
  .hm-watch-play .ic svg { width: 11px; height: 11px; margin-left: 2px; }
  .hm-watch-play .len { font-size: 12px; }
  .hm-watch-bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 18px; }
  .hm-video-dialog { padding-top: 48px; }
  .hm-video-foot { flex-direction: column; }
  .hm-page .hm-receipt-stats { margin-left: 0; border-top: 1px solid var(--line-2); padding-top: 12px; justify-content: space-around; }
  .hm-receipt-stats li { border-left: none; padding: 0 8px; }
  .hm-receipt-stats b { font-size: 17px; }
  .hm-stats { grid-template-columns: 1fr 1fr; }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-pillars { grid-template-columns: 1fr; }
  .hm-plans { grid-template-columns: 1fr; }
  .hm-trust { grid-template-columns: 1fr; }
  .hm-posts { grid-template-columns: 1fr; }
  .hm-faq summary { font-size: 16px; }
  .hm-call { padding: 18px; }
  .hm-fig { padding: 20px 16px 18px; }
  .hm-figs .blog-flow { flex-direction: column; align-items: center; gap: 12px; }
  .hm-figs .blog-flow .matchup-vs { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-page * { transition: none !important; }
}
