/* ------------------------------------------------------------------
   Two services: icon tiles, capability lists, homepage cards that open
   on hover (tap on touch screens), and the service page sections
   (loaded after services.css)
   ------------------------------------------------------------------ */
.tile { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--lettuce); color: var(--coach); display: grid; place-items: center; }
.tile svg { width: 21px; height: 21px; }
.tile--lg { width: 56px; height: 56px; border-radius: 15px; }
.tile--lg svg { width: 26px; height: 26px; }

/* Capability list in the style of the menu: tile + name + one line */
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.cap-list--3 { grid-template-columns: repeat(3, 1fr); }
.cap-list--4 { grid-template-columns: repeat(4, 1fr); }
.cap-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 12px; margin: -2px; border-radius: 16px; transition: background-color .15s ease; }
a.cap-item:hover, a.cap-item:focus-visible { background: var(--panel); outline: none; }
.cap-item b { display: block; font-size: 16.5px; font-weight: 600; color: var(--heading); letter-spacing: -0.1px; }
.cap-item small { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

.cap-sub { display: block; margin: 22px 0 8px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--evergreen); }
.cap-list .cap-sub { grid-column: 1 / -1; margin: 10px 0 0; }
.cap-group { display: grid; gap: 10px; max-width: 720px; padding-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 28px; }

/* Homepage: the two service cards */
.offer-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.offer-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 30px; border-radius: var(--r-xl); background: var(--cream); border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .25s ease; }
.offer-card__head { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.offer-card__label { font-size: 12.5px; font-weight: 600; color: var(--evergreen); }
.offer-card .h4 { margin: 4px 0 8px; }
.offer-card__head p { font-size: 15.5px; line-height: 1.55; color: var(--body); }
.offer-card__toggle { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px 9px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--panel); font: 600 14px var(--font); color: var(--heading); cursor: pointer; }
.offer-card__toggle svg { width: 16px; height: 16px; color: var(--evergreen); transition: transform .25s ease; }
.offer-card__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .7, .2, 1); }
.offer-card__inner { min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.offer-card__inner .cap-list { grid-template-columns: 1fr; padding-top: 12px; border-top: 1px solid var(--line); }
.offer-card__inner .btn-pair { justify-self: start; max-width: 100%; }
.offer-card__inner .btn { min-width: 0; height: auto; min-height: 47px; padding-block: 12px; white-space: normal; text-align: start; }
.offer-card__managed { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.offer-card__managed svg { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: var(--lettuce); color: var(--coach); }
.offer-card.open .offer-card__more { grid-template-rows: 1fr; }
.offer-card.open .offer-card__toggle svg { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .offer-card:hover, .offer-card:focus-within { border-color: var(--evergreen); box-shadow: 0 24px 60px rgb(5 25 20 / .12); }
  .offer-card:hover .offer-card__more, .offer-card:focus-within .offer-card__more { grid-template-rows: 1fr; }
  .offer-card:hover .offer-card__toggle svg, .offer-card:focus-within .offer-card__toggle svg { transform: rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) { .offer-card__more, .offer-card__toggle svg { transition: none; } }
.shared-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--line); }
.shared-strip > div { margin-inline-end: auto; }
.shared-strip b { display: block; font-size: 15px; color: var(--heading); }
.shared-strip small { font-size: 13px; color: var(--muted); }
.shared-strip a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--heading); }
.shared-strip .tile { width: 34px; height: 34px; border-radius: 10px; }
.shared-strip .tile svg { width: 17px; height: 17px; }

/* services.html: switch between the two services */
.offer-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer-switch a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--cream); transition: border-color .15s ease, background-color .15s ease; }
.offer-switch a .tile { background: var(--panel); }
.offer-switch a small { display: block; font-size: 12.5px; color: var(--muted); }
.offer-switch a b { display: block; font-size: 17px; font-weight: 600; color: var(--heading); }
.offer-switch a:hover { border-color: var(--evergreen); }
.offer-switch a.on { background: var(--coach); border-color: var(--coach); }
.offer-switch a.on .tile { background: var(--lettuce); }
.offer-switch a.on b { color: var(--cream); }
.offer-switch a.on small { color: color-mix(in srgb, var(--cream) 70%, transparent); }
.hl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hl-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 100px; background: color-mix(in srgb, var(--cream) 12%, transparent); font-size: 13.5px; color: var(--on-dark); }
.hl-chips svg { width: 14px; height: 14px; color: var(--lettuce); }

/* Every capability in detail: text + product scene, alternating sides */
.cap-rows { display: grid; gap: 96px; }
.cap-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; scroll-margin-top: 28px; }
.cap-row:nth-child(even) .cap-text { order: 2; }
.cap-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.cap-head { display: flex; align-items: center; gap: 16px; }
.cap-n { font-size: 12.5px; font-weight: 600; letter-spacing: .3px; color: var(--evergreen); }
.cap-n b { display: block; margin-top: 2px; font-size: 15px; letter-spacing: 0; color: var(--heading); }
.cap-lead { font-size: 16.5px; line-height: 1.6; color: var(--body); }
.cap-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.cap-roles div { padding: 14px 16px; border-radius: 16px; background: var(--panel); }
.cap-roles b { font-size: 14.5px; color: var(--heading); }
.cap-roles p { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.cap-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: cap; }
.cap-how li { display: grid; gap: 4px; align-content: start; padding: 14px 14px 16px; border-radius: 16px; border: 1px solid var(--line); counter-increment: cap; }
.cap-how li::before { content: counter(cap); display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 6px; border-radius: 50%; background: var(--coach); color: var(--lettuce); font-size: 12px; font-weight: 700; }
.cap-how b { font-size: 14px; font-weight: 600; color: var(--heading); }
.cap-how span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.cap-note { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cap-note svg { width: 18px; height: 18px; color: var(--evergreen); }
.cap-visual { min-width: 0; }
.cap-visual .stage { min-height: 520px; box-shadow: 0 24px 60px rgb(5 25 20 / .14); }
.feat--1 { grid-template-columns: 1fr; }
.feat--1 li { font-size: 15.5px; }

/* Comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--cream); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: start; vertical-align: top; border-top: 1px solid var(--line); }
.cmp thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.cmp tbody th { width: 22%; font-weight: 600; color: var(--heading); }
.cmp td { color: var(--body); line-height: 1.5; }
.cmp .us { background: color-mix(in srgb, var(--lettuce) 22%, var(--cream)); color: var(--heading); }
.cmp thead .us { color: var(--coach); }

/* Shared foundation with the weekly report */
.shared { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 44px; border-radius: 32px; background: var(--panel); scroll-margin-top: 28px; }
.shared__text { display: grid; gap: 16px; }
.shared .cap-list { grid-template-columns: 1fr; }
.shared .cap-item { scroll-margin-top: 28px; }
.ind-pager--one { justify-content: flex-end; }

@media (max-width: 1100px) {
  .cap-list--3, .cap-list--4 { grid-template-columns: 1fr 1fr; }
  .cap-row, .shared { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cap-row:nth-child(even) .cap-text { order: 0; }
  .mega-split { grid-template-columns: 260px 1fr; }
}
@media (max-width: 860px) {
  .offer-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cap-list, .cap-list--3, .cap-list--4, .cap-roles, .cap-how, .offer-switch { grid-template-columns: 1fr; }
  .offer-card { padding: 22px; }
  .offer-card__head { grid-template-columns: 1fr; gap: 14px; }
  .cap-rows { gap: 64px; }
  .cap-visual .stage { min-height: 0; }
  .shared { padding: 24px 18px; gap: 28px; }
  .offer-switch a { padding: 12px 14px; }
  .shared-strip { padding: 16px; }
  .shared-strip > div { width: 100%; }
}

/* "Leak Audit first" note under "What HumAI manages" */
.start-note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; max-width: 860px; margin: 4px 0 18px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--lettuce) 22%, var(--cream)); font-size: 15px; line-height: 1.55; color: var(--body); }
.start-note svg { width: 20px; height: 20px; margin-top: 1px; color: var(--evergreen); }
.start-note b { color: var(--heading); }
