/* ============================================================
   home.css: the v0.5 homepage (front-page.php). Class prefix hm-.
   Builds on marketing.css (mk-), which loads first; read its header
   for the shared hero band, section headers, buttons, cards, demo band
   and animation classes. Enqueued for is_front_page() in functions.php.

   Design: Main.dc.html (Homepage v0.5). Layout, colours, borders, radii
   and composition follow the design; type follows the site scale
   (marketing.css / the previous homepage.css): section heads are
   .mk-head, cards use .mk-card__t / __x, small cards 16px / 14px
   (as .hp-mw__t / __x), mono micro-labels 10.5 to 12px, footnote lines
   15px / 1.6. The product window and the sample answer are drawn UI,
   so they keep the compact UI sizes of the design (13 to 14px), with
   no mono label under 10.5px.

   Colours are tokens. The design's amber "not met" family and the pale
   lilac panel ground have no token, so they are the custom properties
   on .hm-page below; the inline SVG drawings keep the design's
   colours as presentation attributes (CSS variables do not work there).

   Sections (ids are the design's): #hero, #product, #announcements,
   #problem, #solution, #who, #security, #demo (shared band).
   ============================================================ */

.hm-page {
  --hm-ground:    #F8F8FE;  /* lilac panel ground under drawings */
  --hm-grid:      #F0F0FA;  /* the fine 24px grid on that ground */
  --hm-warn:      #D98A3D;  /* amber accent: "not met", the riser */
  --hm-warn-bg:   #FCEFE2;
  --hm-warn-line: #E9B988;
  --hm-warn-fg:   #7A3F0B;
  --hm-shadow:    rgba(29, 15, 95, 0.1); /* purple-900 at 10% */
}

/* The design's .tk-grid-fine: a 24px grid on a light ground. */
.hm-fine {
  background-image:
    linear-gradient(var(--hm-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hm-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Shared bits of the drawn UI */
.hm-tile {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  color: var(--color-draft-white);
}
.hm-tile svg { display: block; width: 13px; height: 15px; }
.hm-tile--dark { background: var(--color-data-black); }
.hm-tile--arch { width: 30px; height: 30px; border-radius: var(--radius-md); background: var(--color-arch-purple); }
.hm-tile--arch svg { width: 14px; height: 16px; }
.hm-tile--sm { width: 22px; height: 22px; border-radius: var(--radius-sm); }
.hm-tile--sm svg { width: 11px; height: 13px; }

.hm-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--color-arch-purple);
}

.hm-doc { flex: none; display: block; }

.hm-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--fg-secondary);
}

.hm-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.hm-chip--outline { background: var(--color-draft-white); border-color: var(--color-arch-purple); color: var(--purple-800); }
.hm-chip--soft    { background: var(--purple-50); color: var(--purple-800); }
.hm-chip--solid   { background: var(--color-arch-purple); color: var(--color-draft-white); }
.hm-chip--warn    { background: var(--hm-warn-bg); border-color: var(--hm-warn-line); color: var(--hm-warn-fg); }


/* ---------- Hero (leaves room below for the product window) ---------- */

.hm-hero { padding: 72px 0 240px; }


/* ---------- Product view ---------- */

.hm-product {
  position: relative;
  z-index: 1;
  margin-top: -192px;
  padding-bottom: 56px;
}
.hm-product__inner { display: flex; flex-direction: column; gap: 16px; }

.hm-window {
  background: var(--color-draft-white);
  border: 1px solid var(--purple-100);
  border-radius: 10px;
  box-shadow: 0 30px 70px -24px rgba(16, 16, 16, 0.45), 0 8px 20px rgba(16, 16, 16, 0.1);
  overflow: hidden;
}

.hm-window__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 16px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--border-default);
}
.hm-window__proj { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hm-window__name { font-size: 14px; font-weight: var(--fw-semibold); line-height: 1.4; color: var(--color-data-black); }
.hm-window__tag {
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--purple-50);
  color: var(--purple-800);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.hm-window__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.hm-view { display: flex; flex-direction: column; }
.hm-view[hidden] { display: none; }
.hm-view:focus-visible { outline: 3px solid var(--purple-100); outline-offset: -3px; }
.hm-view__main { flex: 1 1 auto; display: flex; flex-direction: column; }

.hm-window__cap {
  padding: 11px 16px;
  background: var(--color-draft-white);
  border-top: 1px solid var(--border-default);
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-secondary);
  text-wrap: pretty;
}

/* 01 · the drawn view: past records -> requirements -> reviewed plan.
   One row needs 15 + 16 + 18rem of columns, two 24px arrows and four 12px
   gaps: 55rem (880px), so it fits from a 1002px window (1024 with a
   classic scrollbar too). The design's 20rem reviewed column wrapped at
   1024. Narrower than that (the container query measures the row itself,
   so scrollbars and gutters cannot fool it), the reviewed column takes a
   row of its own and the arrow into it goes, instead of pointing at
   nothing from the end of the first row. */
.hm-past {
  container: hm-past / inline-size;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 20px;
}
.hm-past__col { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hm-past__col--src   { flex: 1 1 15rem; }
.hm-past__col--req   { flex: 1 1 16rem; }
.hm-past__col--check { flex: 1.3 1 18rem; }
.hm-past__arrow { flex: 0 0 24px; align-self: center; display: flex; justify-content: center; }
.hm-past__arrow svg { display: block; }
@container hm-past (width < 55rem) {
  .hm-past__arrow--check { display: none; }
  .hm-past__col--check { flex-basis: 100%; }
}

.hm-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--purple-800);
}
.hm-step__n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--color-arch-purple);
  color: var(--color-draft-white);
  font-size: 10.5px;
  letter-spacing: 0;
}

.hm-rec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
}
.hm-rec__txt,
.hm-row__txt,
.hm-result__txt { min-width: 0; }
.hm-rec__t { font-size: 13px; font-weight: var(--fw-semibold); line-height: 1.35; color: var(--color-data-black); }

.hm-req {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 11px;
  background: var(--color-draft-white);
  border: 1px solid var(--purple-100);
  border-left: 3px solid var(--color-arch-purple);
  border-radius: var(--radius-md);
}
.hm-req__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hm-req__id {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--purple-800);
}
.hm-req__t { font-size: 14px; font-weight: var(--fw-semibold); line-height: 1.35; color: var(--color-data-black); }
.hm-past__note { margin-top: auto; font-size: 12.5px; line-height: 1.45; color: var(--fg-secondary); }

.hm-plan {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 8px 8px 26px;
  background-color: var(--color-draft-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
}
.hm-plan svg { display: block; width: 100%; height: auto; max-height: 176px; }
.hm-plan__sheet {
  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 1px 6px;
  background: var(--color-draft-white);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--fg-secondary);
}
/* The review sweep (.mk-scan moves it across once, then it is gone). */
.hm-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 18%;
  background: linear-gradient(90deg, rgba(81, 86, 219, 0) 0%, rgba(81, 86, 219, 0.08) 70%, rgba(81, 86, 219, 0.28) 100%);
  border-right: 1.5px solid rgba(81, 86, 219, 0.65);
}

.hm-result {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  background: var(--color-draft-white);
  border: 1px solid var(--hm-warn-line);
  border-left: 3px solid var(--hm-warn);
  border-radius: var(--radius-md);
}
.hm-result__txt { display: flex; flex-direction: column; gap: 3px; }
.hm-result__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hm-result__x { font-size: 12.5px; line-height: 1.4; color: var(--fg-secondary); }
.hm-past__sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-secondary);
}
/* The two chips wrap as a pair, never leaving "1 NOT MET" alone on a line. */
.hm-past__chips { display: inline-flex; gap: 10px; white-space: nowrap; }

/* 02 to 04 · product stills */
.hm-still {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
}
.hm-still img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-still__ring {
  position: absolute;
  left: 47.3%;
  top: 42.1%;
  width: 51.2%;
  height: 22.5%;
  border: 2px solid var(--color-arch-purple);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 4px rgba(81, 86, 219, 0.16);
}
.hm-still__chip {
  position: absolute;
  right: calc(1.45% + 12px);
  top: 42.1%;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  background: var(--color-arch-purple);
  color: var(--color-draft-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(-50%);
}

/* The four view tabs */
.hm-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 16px;
}
.hm-tab {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 12px;
  background: var(--gray-100);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--color-data-black);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.hm-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}
.hm-tab:hover { box-shadow: 0 6px 16px var(--hm-shadow); }
.hm-tab:focus-visible { outline: 3px solid var(--purple-100); outline-offset: 2px; }
.hm-tab[aria-selected="true"] { background: var(--color-draft-white); border: 1.5px solid var(--color-arch-purple); }
.hm-tab[aria-selected="true"]::after { background: var(--color-arch-purple); }

.hm-tab__pic {
  flex: none;
  display: block;
  width: 96px;
  height: auto;
  background: var(--color-draft-white);
  border: 1px solid var(--state-enabled-bg);
  border-radius: 5px;
}
.hm-tab__pic--still { aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.hm-tab__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-tab__num {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--fg-secondary);
}
.hm-tab[aria-selected="true"] .hm-tab__num { color: var(--purple-800); }
.hm-tab__t { font-size: 14px; font-weight: var(--fw-semibold); line-height: 1.3; }

/* The window on the first screen (pages/home.js has the timeline). */
@media screen and (prefers-reduced-motion: no-preference) {
  /* marketing.js arrived late and showed the hero as it is (.is-static):
     the window, which overlaps the hero, stays as painted too, never
     re-armed to .01 (home.js then marks it .is-in.is-static). */
  .mk-anim .hm-hero.is-static + .hm-product [data-mk-anim]:not(.is-in) :is(.mk-rise, .mk-pop, .mk-fade) { opacity: 1; transform: none; }

  /* The window rose on load with only its top edge on screen: the drawn
     view's own animations wait in their start state (.hm-hold, set by
     home.js) until its first record scrolls into view, then play. */
  .mk-anim [data-mk-anim].is-in .hm-hold :is(.mk-rise, .mk-pop, .mk-fade, .mk-scan) { animation: none; }
  .mk-anim [data-mk-anim].is-in .hm-hold :is(.mk-rise, .mk-pop, .mk-fade) { opacity: 0.01; }
  .mk-anim [data-mk-anim].is-in .hm-hold .mk-rise { transform: translateY(14px); }
  .mk-anim [data-mk-anim].is-in .hm-hold .mk-pop { transform: scale(0.4); }
}


/* ---------- Announcements ---------- */

.hm-news__label { margin-bottom: 16px; }
.hm-news__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* 22rem, not the design's 18rem: three in a row only once each headline
   has about 200px (a 1168px window), so the shortest one reads in full.
   Narrower, they run two and one (one per row under 768px). */
.hm-news__list > li { flex: 1 1 22rem; min-width: 0; display: flex; }
.hm-release {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--color-draft-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--color-data-black);
  text-decoration: none;
}
.hm-release:hover { color: var(--color-data-black); }
.hm-release:focus-visible { outline: 3px solid var(--purple-100); outline-offset: 2px; }
.hm-release__img {
  flex: 0 0 112px;
  width: 112px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--color-draft-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
}
/* The real headline, word for word; long ones are clamped, never cut. */
.hm-release__t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}
.hm-news__note { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--fg-secondary); text-wrap: pretty; }
.hm-news__note a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gray-500);
  text-underline-offset: 0.2em;
}
.hm-news__note a:hover { color: var(--purple-800); text-decoration-color: currentColor; }


/* ---------- The problem ---------- */

.hm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hm-stat {
  margin-top: 24px;
  padding-left: 12px;
  border-left: 3px solid var(--color-arch-purple);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-secondary);
  text-wrap: pretty;
}
.hm-stat strong { font-weight: var(--fw-semibold); color: var(--purple-800); }


/* ---------- The solution: Ask Tektome ---------- */

/* The heading's second sentence on a line of its own. A block, not a <br>:
   Chromium does not balance a block with a forced break, so the accent
   line would leave "after." alone on phones. As its own block it inherits
   .mk-h2's text-wrap: balance. */
.hm-solution .mk-h2 .accent { display: block; }

.hm-ask {
  max-width: 68rem;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
  padding: 20px;
  background: var(--color-draft-white);
  border: 1px solid var(--color-arch-purple);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(29, 15, 95, 0.08);
}
.hm-ask__side { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hm-ask__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: var(--fw-semibold);
  line-height: 1.32;
  letter-spacing: 0;
  color: var(--color-data-black);
}
.hm-ask__hint { font-size: 14px; line-height: 1.5; color: var(--fg-secondary); }
.hm-ask__qs { display: flex; flex-direction: column; gap: 8px; }
.hm-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--color-draft-white);
  color: var(--purple-800);
  border: 1.5px solid var(--color-arch-purple);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.hm-q:hover { box-shadow: 0 4px 12px rgba(29, 15, 95, 0.14); transform: translateX(2px); }
.hm-q:focus-visible { outline: 3px solid var(--purple-100); outline-offset: 2px; }
.hm-q[aria-selected="true"] { background: var(--color-arch-purple); color: var(--color-draft-white); }
.hm-q__arrow { flex: none; }
.hm-ask__cta { margin-top: auto; align-self: flex-start; }

.hm-answer {
  flex: 1.6 1 28rem;
  min-width: 0;
  min-height: 23rem;
  display: flex;
  flex-direction: column;
  background-color: var(--hm-ground);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hm-answer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: var(--color-draft-white);
  border-bottom: 1px solid var(--state-enabled-bg);
}
.hm-answer__proj {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}
.hm-answer__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--purple-800);
  white-space: nowrap;
}
/* All four answers share one grid cell, so the box keeps the height of the
   tallest and nothing below it moves when the question changes. The
   inactive ones keep the hidden attribute (so only the first shows without
   JS) but still take up their space, invisibly. */
.hm-answer__panels { flex: 1 1 auto; display: grid; }
.hm-answer__panel { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; }
.hm-answer__panel[hidden] { display: flex; visibility: hidden; }
.hm-answer__panel:focus-visible { outline: 3px solid var(--purple-100); outline-offset: -3px; }
.hm-answer__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.hm-answer__cap {
  padding: 10px 14px;
  background: var(--color-draft-white);
  border-top: 1px solid var(--state-enabled-bg);
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-secondary);
  text-wrap: pretty;
}

.hm-bubble {
  align-self: flex-end;
  max-width: 85%;
  padding: 8px 13px;
  background: var(--color-arch-purple);
  color: var(--color-draft-white);
  border-radius: 10px 10px 2px 10px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
}
.hm-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--purple-800);
}

.hm-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  background: var(--color-draft-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
.hm-row__t { font-size: 14px; font-weight: var(--fw-semibold); line-height: 1.35; color: var(--color-data-black); }
.hm-avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--purple-50);
  color: var(--purple-800);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-medium);
}

.hm-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  align-items: center;
  gap: 8px;
}
.hm-map__src {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: var(--color-draft-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
.hm-map__arrow { display: flex; justify-content: center; }
.hm-map__arrow svg { display: block; width: 20px; height: 20px; }
.hm-map__req {
  min-width: 0;
  padding: 7px 10px;
  background: var(--color-draft-white);
  border: 1px solid var(--purple-100);
  border-left: 3px solid var(--color-arch-purple);
  border-radius: var(--radius-md);
}
.hm-map__id {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--purple-800);
}
.hm-map__t { font-size: 13px; font-weight: var(--fw-semibold); line-height: 1.3; color: var(--color-data-black); }
.hm-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 11px;
  background: var(--purple-50);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
}
.hm-total strong { font-weight: var(--fw-semibold); }

.hm-score {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 11px;
  background: var(--color-draft-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
.hm-score__bar { display: flex; height: 10px; border-radius: var(--radius-pill); overflow: hidden; }
.hm-score__met  { flex: 0 0 82%; background: var(--color-arch-purple); }
.hm-score__not  { flex: 0 0 6%; background: var(--hm-warn); }
.hm-score__rest { flex: 1 1 auto; background: var(--gray-400); }
.hm-score__key { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 12.5px; line-height: 1.5; color: var(--fg-secondary); }
.hm-score__key strong { font-weight: var(--fw-semibold); color: var(--color-data-black); }

.hm-clause {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 12px;
  padding: 8px 11px;
  background: var(--color-draft-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
.hm-clause__t { font-size: 14px; line-height: 1.35; color: var(--color-data-black); }
.hm-clause__n { font-family: var(--font-mono); font-size: 12px; color: var(--purple-800); }
.hm-open { font-size: 13px; line-height: 1.5; color: var(--fg-secondary); }
.hm-open strong { font-weight: var(--fw-semibold); color: var(--color-data-black); }


/* ---------- The solution: outcomes ---------- */

.hm-outcomes { display: flex; flex-direction: column; gap: 20px; }
.hm-outcomes__head { display: flex; flex-direction: column; gap: 8px; }
/* Sub-heading inside a section: the site's light sub-head scale. */
.hm-h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--color-data-black);
}
.hm-outcomes__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-outcome {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--color-draft-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}
.hm-outcome__fig {
  background-color: var(--hm-ground);
  border: 1px solid var(--purple-50);
  border-radius: var(--radius-md);
}
.hm-outcome__fig svg { display: block; width: 100%; height: auto; }
.hm-outcome__t { font-size: 16px; font-weight: var(--fw-semibold); line-height: 1.35; color: var(--color-data-black); }
.hm-outcome__m { margin-top: auto; font-size: 14px; line-height: 1.5; color: var(--fg-secondary); }
.hm-outcome__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-800);
}
.hm-outcomes__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.hm-systems {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-sky-300);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.hm-systems__x { flex: 1 1 18rem; min-width: 0; font-size: 15px; line-height: 1.6; color: var(--fg-secondary); }
/* Equal columns, each as wide as the widest pill (SharePoint and its logo). */
.hm-systems__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-systems__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  min-height: 40px;
  padding: 0 12px;
  background: var(--color-draft-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--color-data-black);
}
/* The vendors' own logos (assets/images/brands/), shown as supplied: no
   recolouring, filter or shadow, and never squeezed. Sized in the markup so
   each visible mark is about 18px on its longest side: the Box tile 18px,
   the Forma symbol 20px (drawn 19 x 13), SharePoint 22px (its canvas has
   padding, so the mark is drawn 16.5 x 18). The 0.5px drop centres each
   mark on the capital letters: the names' baseline falls on a half pixel,
   so without it the marks round 1px high at about half of all widths. */
.hm-systems__logo { display: block; flex: none; position: relative; top: 0.5px; }
/* SharePoint's canvas leaves 3.7px empty to the right of the mark (the Box
   and Forma marks reach their edge), and its S stands closer to the mark
   than B and F do: take back 2.5px, so all three marks sit the same visible
   distance (about 9px) from their names. */
.hm-systems__logo--sharepoint { margin-inline-end: -2.5px; }


/* ---------- Who it's for ---------- */

.hm-who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hm-who__k {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-800);
}
.hm-who__link { margin-top: auto; align-self: flex-start; }


/* ---------- Security strip ---------- */

.hm-security__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.hm-security__certs { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hm-security__certs img { display: block; width: auto; height: 72px; }
.hm-security__copy {
  flex: 1 1 24rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.hm-security__x { font-size: 15px; line-height: 1.6; color: var(--color-data-black); text-wrap: pretty; }


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

@media (min-width: 901px) {
  /* The design's steady window height; a still is always taller. */
  .hm-view__main { min-height: 416px; }
}

@media (max-width: 1024px) {
  .hm-still__chip { display: none; }
  .hm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hm-hero { padding: 56px 0 184px; }
  .hm-product { margin-top: -136px; padding-bottom: 48px; }
  .hm-past__arrow { display: none; }
  .hm-outcomes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  /* Three columns get too narrow for the sector lines below this. */
  .hm-who__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .hm-hero { padding-bottom: 152px; }
  .hm-product { margin-top: -112px; }
  .hm-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hm-past { padding: 16px; }
  .hm-ask { padding: 16px; gap: 16px; }
  .hm-answer { flex-basis: 100%; min-height: 0; }
  .hm-answer__body { padding: 12px; }
  /* Rows: the chip drops under the text instead of squeezing it. */
  .hm-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; }
  .hm-row > .hm-chip { grid-column: 2; justify-self: start; }
  .hm-map { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hm-map__arrow { transform: rotate(90deg); }
  /* The pills fill the line: equal thirds where they fit (from about 440px);
     below that SharePoint keeps the width of its name and the other two
     share the rest. 10px sides keep all three on one line down to about
     356px.
     The wrap follows the names, not the screen: when they do not fit (a
     narrower phone, or text enlarged in the browser), Forma moves to a
     second line, centred under the other two at their width. */
  .hm-systems__list { display: flex; flex-wrap: wrap; justify-content: center; flex: 1 1 100%; }
  .hm-systems__list li { flex: 1 1 0; min-width: max-content; max-width: calc(50% - 4px); padding: 0 10px; }
  .hm-security__certs img { height: 60px; }
}

@media (max-width: 480px) {
  .hm-outcomes__grid { grid-template-columns: minmax(0, 1fr); }
}
