/* Hallmark · macrostructure: Dock + Install Rows · tone: utilitarian-friendly · anchor hue: ink + vendor marks
   Humantic AI · Components (/components), Website V2, rebuilt Oct 19 2026.
   Idea: the hero is a dock of the official marks grouped by where each component runs (AI assistants,
   browsers, inbox); each jumps to its section. Plugins are install rows with the real listing links, the
   extension / Outlook / web app share one block, and integrations are a logo ledger (no chip rows).
   Locked palette (vendor marks keep their own colours); desktop density ~80% zoom (h1 60px, h2 36px). */

html:has(body.cm) { overflow-x: clip; }
.cm {
  --gold: #FFC61E; --gold3: #FFE8A5; --ink: #110A33; --violet: #341D99; --lav: #DDD6FF; --mist: #F6F4FF; --cream: #FFF4D2; --slate: #5B6478; --white: #fff;
  --rule: rgba(17,10,51,.1);
  --disp: "Cabinet Grotesk", Cabinetgrotesk, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --sh-sm: 0 2px 8px rgba(17,10,51,.08); --sh-md: 0 12px 32px -12px rgba(17,10,51,.22);
  --pad: clamp(56px, 6vw, 80px);
  margin: 0; overflow-x: clip; background: var(--white); color: var(--ink); font-family: Manrope, Arial, sans-serif;
}
.cm *, .cm *::before, .cm *::after { box-sizing: border-box; }
:where(.cm main) :is(h1, h2, h3) { margin: 0; text-wrap: balance; }
:where(.cm main) p { margin: 0; text-wrap: pretty; }
:where(.cm main) :is(ul, ol, dl, dd, figure) { margin: 0; padding: 0; list-style: none; }
.cm-shell { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.cm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cm main a:focus-visible, .cm main button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 12px; }
.cm .hx-btn:active { transform: scale(.97); }
.cm main [id] { scroll-margin-top: 104px; }

.cm-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.cm-head h2 { font: 700 clamp(28px, 2.2vw + 12px, 36px)/1.12 var(--disp); letter-spacing: -.02em; }
.cm-head p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--slate); }
.cm-head a, .cm-foot a, .cm-kairos p a, .cm-link { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.cm-foot { margin-top: 24px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--slate); }
.cm-sec { padding: var(--pad) 0; }
.cm-sec--mist { background: var(--mist); }
.cm-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--lav); color: var(--ink); font: 700 12px/1.4 Manrope, Arial, sans-serif; white-space: nowrap; }
.cm-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--white); border: 1px solid var(--lav); box-shadow: var(--sh-sm); }
.cm-ic img, .cm-ic svg { display: block; width: 28px; height: 28px; object-fit: contain; }
.cm-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); color: var(--ink); font: 700 14px/1 var(--disp); text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .cm-act:hover { background: var(--ink); color: var(--white); } }
.cm-act:active { transform: scale(.97); }

/* ---------- Hero + dock ---------- */
.cm-hero { padding: 136px 0 var(--pad); text-align: center; background: var(--mist); }
.cm-hero h1 { max-width: 16ch; margin: 0 auto; font: 700 clamp(36px, 3.6vw + 10px, 60px)/1.04 var(--disp); letter-spacing: -.03em; }
.cm-lead { max-width: 640px; margin: 20px auto 0; font-size: 18px; line-height: 1.6; color: var(--slate); }
.cm-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.cm-dock { display: inline-flex; align-items: stretch; margin-top: 48px; padding: 12px 8px; border-radius: 28px; background: var(--white); border: 1px solid var(--lav); box-shadow: var(--sh-md); }
.cm-dock__g { padding: 0 16px; }
.cm-dock__g + .cm-dock__g { border-inline-start: 1px solid var(--rule); }
.cm-dock__g > p { font: 700 12px/1.4 Manrope, Arial, sans-serif; color: var(--slate); }
.cm-dock ul { display: flex; gap: 8px; margin-top: 8px; }
.cm-dock a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 4px 0; border-radius: 14px; color: var(--ink); text-decoration: none; }
.cm-dock__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mist); transition: transform .25s var(--ease), background-color .25s var(--ease); }
.cm-dock__ic img { width: 28px; height: 28px; object-fit: contain; }
.cm-dock__n { font: 700 13px/1.2 Manrope, Arial, sans-serif; }
@media (hover: hover) and (pointer: fine) { .cm-dock a:hover .cm-dock__ic { transform: translateY(-2px) scale(1.06); background: var(--lav); } }
.cm-dock a:active .cm-dock__ic { transform: scale(.96); }

/* ---------- Plugins ---------- */
.cm-plugins { max-width: 960px; margin: 0 auto; border-radius: 24px; border: 1px solid var(--lav); background: var(--white); box-shadow: var(--sh-sm); }
.cm-plugin { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 20px 24px; }
.cm-plugin + .cm-plugin { border-top: 1px solid var(--rule); }
.cm-plugin__id { display: flex; align-items: center; gap: 14px; }
.cm-plugin__id > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cm-plugin h3 { font: 700 19px/1.15 var(--disp); }
.cm-plugin__how p { font-size: 15px; line-height: 1.55; color: var(--slate); }
.cm-code { display: flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 10px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--mist); border: 1px solid var(--lav); }
.cm-code code { min-width: 0; overflow-wrap: anywhere; font: 600 13px/1.4 var(--mono); }
.cm-copy { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: 700 13px/1 Manrope, Arial, sans-serif; cursor: pointer; transition: transform .15s var(--ease); }
.cm-copy:active { transform: scale(.96); }

/* ---------- Browser + inbox ---------- */
.cm-pair { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.cm-card { padding: 24px; border-radius: 24px; background: var(--white); border: 1px solid var(--lav); }
.cm-card h3 { font: 700 20px/1.15 var(--disp); }
.cm-card p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--slate); }
.cm-install { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.cm-install a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 18px; border: 1px solid var(--lav); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.cm-install .cm-ic { width: 44px; height: 44px; box-shadow: none; border: 0; background: var(--mist); }
.cm-install b { display: block; font: 700 16px/1.2 var(--disp); }
.cm-install small { display: block; font-size: 13px; color: var(--slate); }
@media (hover: hover) and (pointer: fine) { .cm-install a:hover { border-color: var(--ink); transform: translateX(2px); } }
.cm-install a:active { transform: scale(.98); }
.cm-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 15px; }
.cm-stack { display: flex; flex-direction: column; gap: 16px; }
.cm-stack .cm-card { display: flex; gap: 16px; align-items: flex-start; flex: 1; }
.cm-stack .cm-act { margin-top: 16px; }

/* ---------- Integrations ledger ---------- */
.cm-ledger { max-width: 960px; margin: 0 auto; }
.cm-ledger > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px; padding: 14px 0; border-top: 1px solid var(--rule); }
.cm-ledger > div:last-child { border-bottom: 1px solid var(--rule); }
.cm-ledger dt { display: flex; flex-direction: column; gap: 2px; }
.cm-ledger dt b { font: 700 17px/1.2 var(--disp); }
.cm-ledger dt span { font-size: 14px; line-height: 1.5; color: var(--slate); }
.cm-ledger ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cm-ledger li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.cm-ledger img { display: block; width: 22px; height: 22px; object-fit: contain; }
.cm-wordmark { font-weight: 700; }
.cm-ledger li .cm-wordmark + span { display: none; }

/* ---------- Kairos band ---------- */
.cm-kairos { padding: 56px 0; background: var(--mist); text-align: center; }
.cm-kairos h2 { font: 700 clamp(24px, 1.4vw + 12px, 28px)/1.15 var(--disp); letter-spacing: -.02em; }
.cm-kairos p { max-width: 760px; margin: 12px auto 0; font-size: 16px; line-height: 1.7; color: var(--slate); }
.cm-kairos .cm-act { margin-top: 20px; }

/* ---------- Close ---------- */
.cm-close { padding: 64px 0; text-align: center; background: var(--mist); }
.cm-close h2 { font: 700 clamp(26px, 1.8vw + 12px, 32px)/1.15 var(--disp); letter-spacing: -.02em; }

/* ---------- Shared blocks on this page: same density ---------- */
@media (min-width: 1024px) {
  .cm .hxb { padding: 72px 24px; }
  .cm .hxb.hxb .hxb-h2 { font-size: 36px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .cm-plugin { grid-template-columns: minmax(0, 1fr) auto; }
  .cm-plugin__how { grid-column: 1 / -1; grid-row: 2; }
  .cm-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .cm-dock { display: grid; grid-template-columns: auto auto; justify-content: center; width: 100%; padding: 8px 4px; }
  .cm-dock__g { padding: 10px 6px; }
  .cm-dock__g:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--rule); }
  .cm-dock__g + .cm-dock__g { border-inline-start: 0; }
  .cm-dock__g:last-child { border-inline-start: 1px solid var(--rule); }
  .cm-dock ul { justify-content: center; gap: 4px; }
  .cm-dock a { width: 64px; }
  .cm-dock__ic { width: 46px; height: 46px; }
  .cm-ledger > div { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 599px) {
  .cm-shell { padding: 0 16px; }
  .cm-hero { padding: 112px 0 48px; }
  .cm-lead { font-size: 17px; }
  .cm-cta .hx-btn { width: 100%; justify-content: center; }
  .cm-plugin { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
  .cm-plugin__how { grid-row: auto; }
  .cm-plugin .cm-act { justify-self: start; }
  .cm-card { padding: 18px 16px; }
  .cm-stack .cm-card { flex-direction: column; gap: 12px; }
}
@media (max-width: 359px) {
  .cm-act { padding: 0 14px; font-size: 13px; }
  .cm-dock a { width: 56px; }
  .cm-dock__ic { width: 42px; height: 42px; }
  .cm-dock__n { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cm *, .cm *::before, .cm *::after { transition-duration: .01ms !important; }
  .cm-dock a:hover .cm-dock__ic { transform: none; }
}

/* Phones: inline links in FAQ answers get a 40px+ tap area without moving the text */

/* MOBILE-B (Oct 21): shorter /components on phones; the three browser installs sit two to a row */
@media (max-width: 767px) {
  .cm { --pad: 36px; }
  .cm-hero { padding: 100px 0 32px; }
  .cm-kairos { padding: 36px 0; }
  .cm-close { padding: 40px 0; }
  .cm-head { margin-bottom: 20px; }
  .cm-install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .cm-install a { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .cm-install a > svg { display: none; }
  .cm-install .cm-ic { width: 36px; height: 36px; }
  .cm-install b { font-size: 14px; }
  .cm-install small { font-size: 12px; }
  .cm-install li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cm-ledger > div { gap: 4px; padding-block: 12px; }
  .cm-card { padding: 16px 14px; }
  .cm-plugin { padding: 14px; }
}
@media (max-width: 359px) {
  .cm-install { grid-template-columns: minmax(0, 1fr); }
}

/* MOBILE-B (Oct 21): the hero's two CTAs share one row on phones (stack only below 360px) */
@media (min-width: 360px) and (max-width: 767px) {
  .cm-cta { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 8px; }
  .cm-cta .hx-btn { flex: 1 1 auto; width: auto; min-width: 0; justify-content: center; gap: 8px; white-space: nowrap; }
  .cm-cta .hx-btn-primary { padding-right: 14px; }
  .cm-cta .hx-btn-ghost { padding-left: 14px; padding-right: 14px; }
}
