/* ==========================================================================
   Precedent Labs — Services page
   All selectors namespaced under body.page-services
   ========================================================================== */

body.page-services {
  --rail-w: 252px;
  --rail-bp: 1180px; /* documentation only; see media queries */
}

/* ---------- Layout wrapper: hero + five services share a sticky rail ---------- */
.page-services .services-layout { position: relative; }

/* Hero */
.page-services .page-hero .lede { max-width: 40rem; }
.page-services .hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-top: var(--space-6); font-size: var(--text-sm); color: var(--fg-muted); }
.page-services .hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Jump-list / rail — mobile & tablet: a horizontal strip under the hero */
.page-services .services-rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.page-services .services-rail-inner { display: flex; align-items: center; gap: var(--space-4) var(--space-5); flex-wrap: wrap; padding-block: var(--space-4); }
.page-services .services-rail .rail-title { color: var(--fg-subtle); }
.page-services .services-rail ol { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.page-services .services-rail a {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--fg-muted); padding-block: 0.25rem;
  transition: color var(--dur);
}
.page-services .services-rail a .n { color: var(--fg-subtle); }
.page-services .services-rail a::before { content: ""; width: 0; height: 1px; background: var(--accent); transition: width var(--dur) var(--ease-out); }
.page-services .services-rail a:hover { color: var(--fg); }
.page-services .services-rail a:hover::before { width: 0.75rem; }
.page-services .services-rail a[aria-current] { color: var(--fg); }
.page-services .services-rail a[aria-current]::before { width: 1.25rem; }
.page-services .services-rail a[aria-current] .n { color: var(--accent-strong); }

@media (min-width: 1180px) {
  .page-services .services-rail {
    position: absolute; z-index: 5;
    top: calc(var(--nav-h) + clamp(3.5rem, 9vw, 7rem)); bottom: 0;
    left: max(var(--gutter), calc((100% - var(--container-wide)) / 2 + var(--gutter)));
    width: var(--rail-w); border: 0; background: transparent; pointer-events: none;
  }
  .page-services .services-rail-inner {
    position: sticky; top: calc(var(--nav-h) + 2.25rem);
    display: block; padding: 0; pointer-events: auto;
    /* keep the eyebrow's cap-height alignment with the hero eyebrow */
    padding-top: 0.15rem;
  }
  .page-services .services-rail .rail-title { display: block; margin-bottom: var(--space-4); }
  .page-services .services-rail ol { display: block; }
  .page-services .services-rail li + li { margin-top: 0.55rem; }
  .page-services .services-rail a { padding-block: 0.15rem; white-space: nowrap; }
  .page-services .services-rail a::before { width: 0.75rem; background: var(--line-strong); }
  .page-services .services-rail a:hover::before { width: 0.75rem; background: var(--accent); }
  .page-services .services-rail a[aria-current]::before { width: 1.5rem; background: var(--accent); }
  /* colour flip while the rail overlaps the dark section */
  .page-services .services-rail.is-on-dark .rail-title { color: var(--ink-400); }
  .page-services .services-rail.is-on-dark a { color: var(--fg-on-dark-muted); }
  .page-services .services-rail.is-on-dark a .n { color: var(--ink-400); }
  .page-services .services-rail.is-on-dark a::before { background: var(--line-on-dark); }
  .page-services .services-rail.is-on-dark a:hover,
  .page-services .services-rail.is-on-dark a[aria-current] { color: var(--fg-on-dark); }
  .page-services .services-rail.is-on-dark a[aria-current]::before,
  .page-services .services-rail.is-on-dark a:hover::before { background: var(--brass-400); }
  .page-services .services-rail.is-on-dark a[aria-current] .n { color: var(--brass-400); }

  /* leave room for the rail */
  .page-services .services-layout > .section > .container-wide { padding-left: calc(var(--gutter) + var(--rail-w) + var(--space-6)); }
}

/* ---------- Service sections ---------- */
.page-services .service { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.page-services .service .split { align-items: center; }
@media (min-width: 900px) {
  .page-services .service .split { gap: clamp(2.5rem, 6vw, 5.5rem); }
  .page-services .service .split.flip { grid-template-columns: 7fr 5fr; }
  .page-services .service .split.flip > .service-copy { order: 2; }
}
.page-services .service h2 { max-width: 18ch; }
.page-services .service-copy > p { color: var(--fg-muted); max-width: 52ch; text-wrap: pretty; }
.page-services .service-copy > p:first-of-type { margin-top: var(--space-5); }
.page-services .on-dark .service-copy > p { color: var(--fg-on-dark-muted); }

.page-services .build-list { margin-top: var(--space-6); }
.page-services .build-list-title { display: block; color: var(--fg-subtle); margin-bottom: var(--space-3); }
.page-services .on-dark .build-list-title { color: var(--ink-400); }
.page-services .build-list ul { border-top: 1px solid var(--line); }
.page-services .on-dark .build-list ul { border-color: var(--line-on-dark); }
.page-services .build-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  font-size: var(--text-sm); line-height: 1.5; text-wrap: pretty;
}
.page-services .on-dark .build-list li { border-color: var(--line-on-dark); }
.page-services .build-list li svg { flex: none; width: 16px; height: 16px; margin-top: 0.2rem; color: var(--accent-strong); }
.page-services .on-dark .build-list li svg { color: var(--brass-400); }

.page-services .service-tags { margin-top: var(--space-5); gap: 0.5rem; }

/* Figure container */
.page-services .service-figure { margin: 0; min-width: 0; }
.page-services .service-figure figcaption { margin-top: var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--fg-subtle); }
.page-services .on-dark .service-figure figcaption { color: var(--ink-400); }

/* ---------- Shared UI-mockup primitives ---------- */
.page-services .ui {
  --ui-line: var(--line);
  --ui-shade: var(--paper-200);
  --ui-chrome: var(--paper-100);
  position: relative; max-width: 100%; min-width: 0;
  font-family: var(--font-sans); font-size: 11px; line-height: 1.45; color: var(--ink-900);
  background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.page-services .ui-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--ui-line); background: var(--ui-chrome);
}
.page-services .ui-bar .dots { display: inline-flex; gap: 5px; }
.page-services .ui-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-200); }
.page-services .ui-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-services .ui-label.strong { color: var(--ink-900); }
.page-services .ln { height: 6px; border-radius: 3px; background: var(--ui-shade); }
.page-services .ln + .ln { margin-top: 7px; }
.page-services .ln.w-95 { width: 95%; } .page-services .ln.w-90 { width: 90%; } .page-services .ln.w-80 { width: 80%; }
.page-services .ln.w-70 { width: 70%; } .page-services .ln.w-60 { width: 60%; } .page-services .ln.w-45 { width: 45%; } .page-services .ln.w-30 { width: 30%; }
.page-services .ui-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--ink-500); background: var(--bg-elev); white-space: nowrap;
}
.page-services .ui-chip.brass { border-color: transparent; background: var(--accent-soft); color: var(--accent-strong); }
.page-services .ui-chip.ink { border-color: var(--ink-900); background: var(--ink-900); color: var(--paper-50); }
.page-services .ui-chip .dot { width: 5px; height: 5px; }
.page-services .ui-chip .dot.brass { background: var(--brass-500); }
.page-services .ui-chip .dot.ink { background: var(--ink-300); }
.page-services .ui-avatar { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 8px; color: var(--paper-50); background: linear-gradient(135deg, var(--ink-600), var(--ink-900)); border: 1.5px solid var(--bg-elev); }
.page-services .ui-avatar.brass { background: linear-gradient(135deg, var(--brass-400), var(--brass-600)); color: var(--ink-950); }
.page-services .ui-avatar.verdigris { background: linear-gradient(135deg, var(--verdigris-400), var(--verdigris-500)); }
.page-services .ui-btn { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 500; line-height: 1; background: var(--ink-900); color: var(--paper-50); white-space: nowrap; }
.page-services .ui-btn.ghost { background: transparent; color: var(--ink-600); border: 1px solid var(--line-strong); }

/* ---------- 01 Contract automation ---------- */
.page-services .ui-contract-body { display: grid; grid-template-columns: 168px 1fr; min-height: 340px; }
.page-services .clause-lib { border-right: 1px solid var(--ui-line); background: var(--paper-50); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.page-services .ui-search { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-elev); color: var(--ink-400); font-size: 10px; }
.page-services .ui-search svg { width: 11px; height: 11px; }
.page-services .clause-lib ul { display: flex; flex-direction: column; gap: 2px; }
.page-services .clause-lib li { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 500; color: var(--ink-700); }
.page-services .clause-lib li small { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-400); font-weight: 400; }
.page-services .clause-lib li.is-active { background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink-900); }
.page-services .clause-lib li.is-active::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); border-radius: 2px; }
.page-services .clause-lib li.is-active small { color: var(--accent-strong); }
.page-services .doc-pane { position: relative; padding: 18px 20px 20px; background: var(--paper-100); min-width: 0; }
.page-services .doc-page { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px 22px; box-shadow: var(--shadow-sm); }
.page-services .doc-title { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-900); margin-bottom: 4px; }
.page-services .doc-h { font-size: 10.5px; font-weight: 600; margin: 12px 0 6px; color: var(--ink-800); }
.page-services .doc-p { font-family: var(--font-display); font-size: 11px; line-height: 1.55; color: var(--ink-700); text-wrap: pretty; margin: 0 0 8px; }
.page-services .doc-p del { color: var(--ink-400); text-decoration: line-through; text-decoration-color: var(--ink-400); }
.page-services .doc-p ins { text-decoration: none; color: var(--ink-900); background: var(--accent-soft); border-bottom: 1px solid var(--brass-500); padding: 0 1px; }
.page-services .doc-p.redline { position: relative; padding-left: 10px; }
.page-services .doc-p.redline::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 2px; background: var(--brass-500); border-radius: 2px; }
.page-services .suggest {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 10px 0 14px; padding: 8px 8px 8px 10px; border-radius: 8px;
  background: var(--bg-elev); border: 1px solid var(--brass-400); box-shadow: var(--shadow);
  font-size: 10.5px; color: var(--ink-800);
}
.page-services .suggest .ui-label { color: var(--accent-strong); }
.page-services .suggest .ui-btn { margin-left: auto; }
.page-services .doc-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
@media (max-width: 560px) {
  .page-services .ui-contract-body { grid-template-columns: 1fr; }
  .page-services .clause-lib { border-right: 0; border-bottom: 1px solid var(--ui-line); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .page-services .clause-lib .ui-search { display: none; }
  .page-services .clause-lib ul { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .page-services .clause-lib li { padding: 4px 7px; }
  .page-services .clause-lib li:not(.is-active) small { display: none; }
  .page-services .doc-pane { padding: 14px; }
  .page-services .doc-page { padding: 16px; }
}

/* ---------- 02 Intake: flow diagram ---------- */
.page-services .ui-flow { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; align-items: stretch; padding-bottom: 12px; }
.page-services .flow-node { display: flex; flex-direction: column; box-shadow: var(--shadow-sm); min-width: 0; overflow: visible; }
.page-services .flow-node .ui-bar { padding: 8px 12px; }
.page-services .flow-node .node-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.page-services .kv { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 10.5px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.page-services .kv:last-child { border-bottom: 0; padding-bottom: 0; }
.page-services .kv span:first-child { color: var(--ink-400); white-space: nowrap; }
.page-services .kv span:last-child { font-weight: 500; text-align: right; color: var(--ink-800); min-width: 0; }
.page-services .party { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.page-services .party:last-of-type { border-bottom: 0; padding-bottom: 0; }
.page-services .party .status { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; }
.page-services .party .status .dot { width: 5px; height: 5px; }
.page-services .party .status.hold { color: var(--accent-strong); }
.page-services .party .status.hold .dot { background: var(--brass-500); }
.page-services .flow-link { position: relative; min-height: 30px; }
.page-services .flow-link::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 5px; border-left: 1px dashed var(--ink-300); }
.page-services .flow-link::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; border-right: 1px solid var(--ink-400); border-bottom: 1px solid var(--ink-400); transform: translateX(-50%) rotate(45deg); }
.page-services .flow-link span { position: absolute; left: calc(50% + 12px); top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); white-space: nowrap; }
.page-services .team { display: flex; align-items: center; gap: 8px; }
.page-services .team .avatars { display: flex; }
.page-services .team .avatars .ui-avatar + .ui-avatar { margin-left: -6px; }
.page-services .team .who { display: flex; flex-direction: column; font-size: 10.5px; line-height: 1.3; }
.page-services .team .who small { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-400); }
.page-services .cap { display: flex; flex-direction: column; gap: 4px; }
.page-services .cap .bar { height: 4px; border-radius: 2px; background: var(--paper-200); overflow: hidden; }
.page-services .cap .bar i { display: block; height: 100%; width: 62%; background: var(--ink-700); border-radius: 2px; }
.page-services .sla { position: absolute; right: 12px; bottom: 0; z-index: 2; box-shadow: var(--shadow); }
.page-services .sla .dot { background: var(--verdigris-500); }
.page-services .sla time { color: var(--ink-900); font-weight: 500; letter-spacing: 0.02em; }
@media (min-width: 640px) {
  .page-services .flow-node { flex-direction: row; }
  .page-services .flow-node .ui-bar { flex: 0 0 150px; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 5px; padding: 12px 14px; border-bottom: 0; border-right: 1px solid var(--ui-line); }
  .page-services .flow-node .ui-bar .ui-label { white-space: normal; }
  .page-services .flow-node .node-body { display: grid; grid-template-columns: 1fr; gap: 7px 18px; align-content: start; padding: 12px 16px; }
  .page-services .flow-node .node-body .kv, .page-services .flow-node .node-body .party { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
  .page-services .flow-node .node-body .ln { display: none; }
  .page-services .flow-node .node-body .team, .page-services .flow-node .node-body .cap { grid-column: 1 / -1; }
  .page-services .flow-node .node-body .cap { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
}

/* two-column node bodies only where the figure column is wide enough (no rail, or wide desktop) */
@media (min-width: 640px) and (max-width: 1179px), (min-width: 1320px) {
  .page-services .flow-node .node-body { grid-template-columns: 1fr 1fr; }
}

/* ---------- 03 AI document review (dark) ---------- */
.page-services .ui.ui-dark { background: var(--bg-dark-elev); border-color: var(--line-on-dark); color: var(--fg-on-dark); box-shadow: 0 24px 60px rgba(0,0,0,0.4); --ui-line: var(--line-on-dark); --ui-chrome: rgba(255,255,255,0.03); }
.page-services .ui-dark .ui-bar .dots i { background: rgba(255,255,255,0.14); }
.page-services .ui-dark .ui-label { color: var(--ink-400); }
.page-services .ui-dark .ui-label.strong { color: var(--fg-on-dark); }
.page-services .ui-review-body { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 340px; }
.page-services .review-doc { padding: 16px; border-right: 1px solid var(--line-on-dark); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.page-services .review-doc .doc-page { padding: 18px 18px 20px; border-color: transparent; background: var(--paper-50); color: var(--ink-900); box-shadow: 0 10px 30px rgba(0,0,0,0.35); flex: 1; }
.page-services .review-doc .doc-page .ln { background: var(--paper-300); opacity: 0.8; }
.page-services .review-doc .page-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.page-services .para { position: relative; padding-left: 22px; margin-top: 12px; }
.page-services .para::before { content: attr(data-para); position: absolute; left: 0; top: -1px; font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-400); letter-spacing: 0.04em; }
.page-services .para .doc-p { font-size: 10.5px; margin: 0; }
.page-services .para.is-hit .doc-p { background: var(--accent-soft); box-shadow: -3px 0 0 var(--brass-500); padding: 2px 4px 2px 6px; border-radius: 0 3px 3px 0; color: var(--ink-900); }
.page-services .para.is-hit .doc-p mark { background: transparent; color: inherit; border-bottom: 1px solid var(--brass-500); }
.page-services .para.is-hit::before { color: var(--accent-strong); }
.page-services .findings { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.page-services .findings-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-on-dark); }
.page-services .finding { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border-radius: 8px; border: 1px solid transparent; }
.page-services .finding .title { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 10.5px; font-weight: 500; color: var(--fg-on-dark); line-height: 1.35; }
.page-services .finding .cite { flex: none; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.06); color: var(--ink-300); border: 1px solid var(--line-on-dark); }
.page-services .finding .conf { display: flex; align-items: center; gap: 8px; }
.page-services .finding .conf .bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.09); overflow: hidden; }
.page-services .finding .conf .bar i { display: block; height: 100%; background: var(--ink-300); border-radius: 2px; }
.page-services .finding .conf span { font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-400); letter-spacing: 0.04em; min-width: 3.4em; text-align: right; }
.page-services .finding.is-active { background: rgba(255,255,255,0.04); border-color: rgba(212,173,99,0.45); }
.page-services .finding.is-active .cite { color: var(--brass-400); border-color: rgba(212,173,99,0.4); background: rgba(212,173,99,0.1); }
.page-services .finding.is-active .conf .bar i { background: var(--brass-400); }
.page-services .finding.is-active .conf span { color: var(--brass-400); }
.page-services .finding .actions { display: flex; gap: 6px; margin-top: 2px; }
.page-services .ui-dark .ui-btn { background: var(--paper-50); color: var(--ink-950); }
.page-services .ui-dark .ui-btn.ghost { background: transparent; color: var(--ink-300); border-color: var(--line-on-dark); }
.page-services .findings-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-on-dark); display: flex; justify-content: space-between; gap: 8px; }
.page-services .findings-foot .ui-label { min-width: 0; }
@media (max-width: 560px) {
  .page-services .ui-review-body { grid-template-columns: 1fr; }
  .page-services .review-doc { border-right: 0; border-bottom: 1px solid var(--line-on-dark); }
}

/* ---------- 04 Compliance: tracker + toast ---------- */
.page-services .ui-wrap { position: relative; padding-bottom: 30px; }
.page-services .ui-compliance-body { display: grid; grid-template-columns: 196px 1fr; min-height: 320px; }
.page-services .cal { padding: 14px; border-right: 1px solid var(--ui-line); background: var(--paper-50); min-width: 0; }
.page-services .cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.page-services .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.page-services .cal-grid .dow { font-family: var(--font-mono); font-size: 8px; text-align: center; color: var(--ink-400); letter-spacing: 0.04em; padding-bottom: 2px; }
.page-services .cal-grid .d { position: relative; aspect-ratio: 1; display: grid; place-items: center; font-size: 9.5px; color: var(--ink-600); border-radius: 5px; }
.page-services .cal-grid .d.off { color: var(--ink-300); }
.page-services .cal-grid .d.has::after { content: ""; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--ink-400); }
.page-services .cal-grid .d.has.due::after { background: var(--brass-500); }
.page-services .cal-grid .d.has.ok::after { background: var(--verdigris-500); }
.page-services .cal-grid .d.today { background: var(--ink-900); color: var(--paper-50); font-weight: 500; }
.page-services .cal-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; }
.page-services .cal-legend span { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-400); }
.page-services .cal-legend .dot { width: 5px; height: 5px; }
.page-services .cal-legend .dot.brass { background: var(--brass-500); }
.page-services .cal-legend .dot.ink { background: var(--ink-400); }
.page-services .tracker { padding: 10px 14px 14px; min-width: 0; }
.page-services .tracker-head, .page-services .ob { display: grid; grid-template-columns: 2fr 0.9fr 0.55fr auto; gap: 10px; align-items: center; }
.page-services .tracker-head { padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.page-services .ob { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10.5px; }
.page-services .ob:last-child { border-bottom: 0; }
.page-services .ob .name { display: flex; flex-direction: column; min-width: 0; }
.page-services .ob .name strong { font-weight: 500; color: var(--ink-900); line-height: 1.3; }
.page-services .ob .name small { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-400); }
.page-services .ob .owner { display: flex; align-items: center; gap: 6px; color: var(--ink-600); white-space: nowrap; }
.page-services .ob .due { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-600); white-space: nowrap; }
.page-services .ob .ui-chip { justify-self: end; }
.page-services .ob .ui-chip.ok { color: var(--verdigris-500); border-color: rgba(63,143,133,0.35); }
.page-services .ob .ui-chip.ok .dot { background: var(--verdigris-500); }
.page-services .toast {
  position: absolute; right: -10px; bottom: 0; z-index: 3;
  display: flex; align-items: flex-start; gap: 10px; max-width: 300px;
  padding: 10px 12px; border-radius: 10px; background: var(--ink-900); color: var(--paper-50);
  box-shadow: var(--shadow-lg); font-size: 10.5px; line-height: 1.4;
}
.page-services .toast .pulse { flex: none; margin-top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--brass-400); box-shadow: 0 0 0 3px rgba(212,173,99,0.25); }
.page-services .toast strong { display: block; font-weight: 500; }
.page-services .toast span { color: var(--ink-300); }
.page-services .toast .ui-btn { flex: none; align-self: center; background: var(--paper-50); color: var(--ink-950); }
@media (max-width: 640px) {
  .page-services .ui-compliance-body { grid-template-columns: 1fr; }
  .page-services .cal { border-right: 0; border-bottom: 1px solid var(--ui-line); }
  .page-services .cal-grid { max-width: 260px; }
  .page-services .tracker-head, .page-services .ob { grid-template-columns: 1.6fr 0.7fr auto; }
  .page-services .tracker-head .h-owner, .page-services .ob .owner { display: none; }
  .page-services .toast { right: 0; max-width: calc(100% - 16px); }
}

/* ---------- 05 Integrations: hub & spoke ---------- */
.page-services .ui-hub {
  position: relative; width: 100%; aspect-ratio: 4 / 3; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center;
  overflow: visible;
}
.page-services .ui-hub::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at center, transparent 30%, var(--bg-elev) 85%); pointer-events: none; }
.page-services .ui-hub svg.spokes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.page-services .ui-hub svg.spokes line { stroke: var(--ink-300); stroke-width: 1; vector-effect: non-scaling-stroke; }
.page-services .ui-hub svg.spokes circle { fill: var(--bg-elev); stroke: var(--ink-400); stroke-width: 1; vector-effect: non-scaling-stroke; }
.page-services .node {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-700); white-space: nowrap;
}
.page-services .node .glyph { width: 14px; height: 14px; border-radius: 3px; background: var(--paper-200); display: grid; place-items: center; }
.page-services .node .glyph svg { width: 9px; height: 9px; color: var(--ink-500); }
.page-services .node.hub {
  flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 12px;
  border-color: var(--brass-500); box-shadow: 0 0 0 6px rgba(185,141,60,0.10), var(--shadow); text-transform: none; letter-spacing: 0; font-family: var(--font-sans);
}
.page-services .node.hub strong { font-weight: 500; font-size: 11.5px; color: var(--ink-900); }
.page-services .node.hub small { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); }
.page-services .node.hub .brand-mark { width: 22px; height: 22px; color: var(--ink-900); margin-bottom: 2px; }
.page-services .hub-caption { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .page-services .ui-hub { aspect-ratio: 1 / 1.05; }
  .page-services .node { padding: 5px 8px; font-size: 9px; }
  .page-services .node .glyph { display: none; }
  .page-services .node.hub { padding: 10px 12px; }
  .page-services .hub-caption { display: none; }
}

/* ---------- Engagement models ---------- */
.page-services .model .card-num { display: inline-flex; }
.page-services .model h3 { max-width: 14ch; }
.page-services .model .good { margin-top: var(--space-5); }
.page-services .model .good-title { display: block; margin-bottom: var(--space-2); color: var(--fg-subtle); }
.page-services .model .good li { position: relative; padding-left: 1.1rem; font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.55; }
.page-services .model .good li + li { margin-top: 0.4rem; }
.page-services .model .good li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.5rem; height: 1px; background: var(--accent); }
.page-services .model .price { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.page-services .model .price strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); letter-spacing: -0.02em; color: var(--fg); font-variation-settings: "opsz" 96; }
.page-services .model .price span { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-subtle); }
.page-services .models-note { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--fg-subtle); max-width: 60ch; }

/* ---------- FAQ ---------- */
.page-services .faq-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 900px) { .page-services .faq-grid { grid-template-columns: 4fr 8fr; gap: var(--space-8); } }
.page-services .faq-grid .section-header { margin-bottom: 0; }
.page-services .faq-aside { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--fg-muted); }
.page-services .accordion-panel p + p { margin-top: 0.6em; }

/* ---------- CTA ---------- */
.page-services .cta-band .cta-inner { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .page-services .cta-band .cta-inner { grid-template-columns: 1fr auto; gap: var(--space-8); } }
.page-services .cta-band .lede { margin-top: var(--space-4); }
