/* ============================================================
   Capabilities page — extends the shared Ledger styles
   ============================================================ */

html { scroll-padding-top: 136px; }

/* ---- page hero ---- */
.phero { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); }
.phero__grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.phero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  font-weight: 650; line-height: 1.02; letter-spacing: -0.034em;
  max-width: 16ch; margin-bottom: clamp(20px, 2.6vw, 32px);
}
.phero__title mark {
  background: none; color: var(--green);
  background-image: linear-gradient(var(--mint-2), var(--mint-2));
  background-size: 100% 0.14em; background-position: 0 94%; background-repeat: no-repeat;
}
.phero .lead { max-width: 58ch; margin: 0; }
.facts { margin: 0; border-top: 1.5px solid var(--ink); }
.facts > div { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.facts dt { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); line-height: 1.3; }

/* ---- sticky pillar sub-nav ---- */
.subnav {
  position: sticky; top: 72px; z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.subnav__in {
  display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
  font-size: 14px; font-weight: 500;
}
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap;
  padding: 15px 0 13px; color: var(--mute);
  border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.subnav a span { font-family: var(--mono); font-size: 12px; color: var(--green); }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--green); }

/* ---- pillar sections ---- */
.pil { padding: clamp(48px, 5.5vw, 80px) 0; }
.subnav + .pil { padding-top: clamp(32px, 4vw, 56px); }
#integrations { padding: clamp(48px, 5.5vw, 80px) 0; }
.pil__head {
  display: flex; align-items: center; gap: 16px;
  padding-top: 18px; border-top: 1.5px solid var(--ink);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.pil__no {
  min-width: 48px; height: 48px; padding: 0 10px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .02em;
}
.pil__grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.pil__grid--rev { grid-template-columns: 5fr 7fr; }
.pil__grid--rev .pil__text { order: 2; }
.pil__grid--rev .pil__media { order: 1; }
.pil__text h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 650; line-height: 1.06; letter-spacing: -0.028em; margin-bottom: 12px; }
.pil__lead { font-family: var(--display); font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.015em; color: var(--green); margin-bottom: 16px; }
.pil__text > p { max-width: 62ch; }

.pil__media {
  margin: 0; position: sticky; top: 140px;
  aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--line);
}
.pil__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.pil__media--ui { aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; }

/* feature ledger */
.feat { margin: 24px 0 0; border-top: 1.5px solid var(--ink); }
.feat > div {
  display: grid; grid-template-columns: minmax(170px, 4fr) 8fr; gap: 6px 24px;
  padding: 14px 0; border-bottom: 1px solid var(--line-2);
}
.feat dt { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); line-height: 1.35; }
.feat dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.pil__for { margin: 20px 0 0; font-size: 15.5px; color: var(--ink); }
.pil__for .mono-label { color: var(--green); margin-bottom: 4px; }

/* ---- VI intelligence cards ---- */
.intel__head { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 3.5vw, 44px); }
.intel__head h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 650; line-height: 1.06; letter-spacing: -0.028em; max-width: 18ch; }
.intel__head p { margin: 0; }
.intel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.intel article { background: #fff; border: 1px solid var(--mint-2); border-top: 4px solid var(--green); border-radius: 14px; padding: 24px; }
.intel .mono-label { color: var(--green); margin-bottom: 14px; }
.intel h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.intel p { font-size: 15.5px; line-height: 1.55; margin: 0; }

/* ---- VIII cadence mock ---- */
.cad { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.cad li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.cad li:first-child { border-top: 0; }
.cad__t { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--green); }
.cad__d { font-size: 13px; color: var(--mute); line-height: 1.4; }
.cad__d b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.st--plan { background: var(--grey); color: var(--mute); border: 1px solid var(--line); }

/* ---- integrations table ---- */
.sec__no { white-space: nowrap; }
.integ td { color: var(--ink-2); }
.integ tbody th { width: 34%; }
.integ td:last-child { width: 1%; white-space: nowrap; padding-right: 0; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .intel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pil__grid--rev { grid-template-columns: 1fr; }
  html { scroll-padding-top: 128px; }
  .phero__grid, .pil__grid, .intel__head { grid-template-columns: 1fr; }
  .pil__grid--rev .pil__text, .pil__grid--rev .pil__media { order: 0; }
  .pil__media { position: static; aspect-ratio: 16 / 10; }
  .pil__media--ui { aspect-ratio: auto; max-width: 560px; }
}
@media (max-width: 640px) {
  .intel { grid-template-columns: 1fr; }
  .feat > div { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { font-size: 17px; }
  /* integrations: stack rows like the comparison table, without the "Legacy" prefix */
  .integ td:not(.us)::before { content: none; }
  .integ tbody th { width: auto; }
  .integ td:last-child { width: auto; margin-top: 8px; }
  .cad li { grid-template-columns: 44px 1fr; }
  .cad li .st { grid-column: 2; justify-self: start; }
}
