/* ClearTrust — Capabilities page tile grid (R5). Replaces the eight capability pages.
   Each tile carries the retired page's hero (headline + lead) with its body band behind
   an expandable. Two columns, one below 900px. Colour only from --ct-* tokens.
   R6a: each tile is its own card at rest (own outline, raised fill, real gutters); before,
   a 1px-gap grid on a hairline read as one table until a tile was hovered. */
.ct-captiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.ct-captile {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 28px 28px 24px; box-sizing: border-box;
  background: color-mix(in srgb, var(--ct-surface-raised) 72%, transparent);
  outline: 1px solid var(--ct-rule); outline-offset: -1px;
  color: var(--ct-text);
  transition: background .4s cubic-bezier(.2,.7,.2,1), outline-color .4s cubic-bezier(.2,.7,.2,1);
  scroll-margin-top: 96px;
}
.ct-captile:hover, .ct-captile[data-ct-open="true"] { background: var(--ct-surface-raised); outline-color: var(--ct-rule-strong); }
.ct-captile-eyebrow {
  font-family: var(--ct-f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ct-link);
}
.ct-captile-h {
  font-family: var(--ct-f-display); font-weight: 600; font-size: 24px; line-height: 1.25;
  letter-spacing: var(--ct-track-h1); margin: 0; max-width: 24ch; text-wrap: pretty;
}
.ct-captile-p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ct-text-secondary); max-width: 62ch; text-wrap: pretty; }
.ct-captile-more { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ct-rule); }
.ct-captile-more[hidden] { display: none; }
.ct-captile-h4 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.35; max-width: 34ch; text-wrap: pretty; }
.ct-captile-link { align-self: flex-start; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--ct-link); }
.ct-captile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.ct-captile-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ct-text);
}
.ct-captile-toggle::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .3s cubic-bezier(.2,.7,.2,1);
  color: var(--ct-text-quiet);
}
.ct-captile-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.ct-captile-toggle:hover::after, .ct-captile-toggle:focus-visible::after { color: var(--ct-text); }
.ct-captile-toggle:focus-visible, .ct-captile-cta:focus-visible { outline: 2px solid var(--ct-text); outline-offset: 2px; }
.ct-captile-cta { align-self: flex-start; margin-top: 4px; font-size: 14px; padding: 11px 20px; background: var(--ct-button); color: var(--ct-button-text); }
.ct-captile-cta:hover { color: var(--ct-button-text); }
@media (max-width: 900px) {
  .ct-captiles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ct-captile { padding: 22px 20px 18px; }
  .ct-captile-h { font-size: 21px; }
}
