/* Contract Intelligence: page-local styles (the kit owns everything else) */

.crumb { color: inherit; text-decoration: none; }
.crumb:hover { color: var(--ink); }
.ci-h1 { max-width: 15em; }

/* (01) scattered documents: four pills the line zigzags through */
.scatter { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(36px, 4vw, 64px); align-self: center; }
.scatter__i { display: block; width: max-content; padding-left: 22px; }
.scatter__i.s1 { margin-left: 34%; }
.scatter__i.s2 { margin-left: 0; }
.scatter__i.s3 { margin-left: 52%; }
.scatter__i.s4 { margin-left: 16%; }
.scatter-text .tag { margin-top: 22px; }

/* (02) beat captions: the visible, no-JS summary of the graph */
.beats { list-style: none; margin: clamp(48px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--ink); }
.beats li { padding: 18px 12px 0 0; }
.beats .num { display: block; margin-bottom: 10px; }
.beats p { font-size: 15.5px; line-height: 1.45; letter-spacing: -.005em; max-width: 19em; }
.sec--pregraph { padding-bottom: 0; }
.sec--graph { padding-top: 0; }
.graph-foot { margin-top: 28px; }


/* (04) fact ledger */
.ledger-wrap { margin-top: clamp(40px, 4vw, 64px); }
.ledger { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: clamp(15px, 1.1vw, 18px); }
.ledger th, .ledger td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--hair); vertical-align: baseline; font-weight: 400; }
.ledger thead th { font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 14px; padding-bottom: 14px; }
.ledger tbody th { font-weight: 500; width: 18%; }
.ledger td:nth-child(2) { width: 38%; }
.ledger td:last-child { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.qchip { display: inline-block; font: 400 12.5px/1.2 var(--f-mono); padding: 5px 9px 4px; border: 1px solid var(--hair-2); background: var(--paper-2); }
.qchip::before { content: "“"; color: var(--accent); margin-right: 4px; }
.ledger-tag { margin-top: 18px; }


/* (07) the CTA sentence is long, so it runs one size smaller than the kit default */
.ci-cta { font-size: clamp(46px, 5.6vw, 108px); max-width: 15em; }

.cta-foot { margin-top: clamp(40px, 4vw, 64px); display: grid; gap: 12px; }
.also { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
.also .link { color: var(--ink); }

@media (max-width: 1100px) {
  .beats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 1000px) {
  .js .beats { display: none; }  /* with JS the list view narrates each connection; without JS the summary stays */
  .beats { grid-template-columns: 1fr; row-gap: 0; }
  .beats li { padding: 14px 0; border-bottom: 1px solid var(--hair); }
}
@media (max-width: 760px) {
  .scatter { margin-top: 40px; gap: 26px; }
  .scatter__i, .scatter__i.s1, .scatter__i.s2, .scatter__i.s3, .scatter__i.s4 { margin-left: 0; padding-left: 0; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto !important; }
  .ledger tr { padding: 16px 0; border-bottom: 1px solid var(--hair); }
  .ledger th, .ledger td { border: 0; padding: 3px 0; }
  .ledger tbody th { font-size: 17px; margin-bottom: 4px; }
  .ledger td::before { content: attr(data-label); display: inline-block; width: 6.5em; font: 400 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .ci-cta { font-size: clamp(36px, 9.6vw, 48px); }
}

/* =================================================================== (02) Contract + Project Intelligence */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); margin-top: clamp(48px, 5vw, 72px); border-top: 1px solid var(--ink); }
.pair__col { padding: 26px 0 0; }
.pair__h { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -.025em; }
.pair__ic { display: inline-block; width: 14px; height: 11px; border: 1.5px solid currentColor; border-radius: 1px; }
.pair__ic--p { border-top-width: 3.5px; color: var(--accent); }
.pair__ic--c { width: 11px; height: 14px; box-shadow: inset 3px 0 0 var(--accent); }
.pair__list { list-style: none; margin: 18px 0 0; padding: 0; }
.pair__list li { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; padding: 12px 0; border-top: 1px solid var(--hair); max-width: 30em; }
.pair__chip { margin-top: 18px; }
.pair__chip .pill { font-family: var(--f-mono); font-size: 12px; }
.pair__plus { display: flex; justify-content: center; padding-top: 22px; font-weight: 500; font-size: 30px; color: var(--accent); }
.pair__join { margin-top: clamp(36px, 4vw, 56px); }
.pair__link { margin-top: 22px; }

/* =================================================================== (05) term review card */
.review-text .body { max-width: 30em; }
.rv { position: relative; margin: 0; align-self: start; }
.rv__card, .rv__ob { background: var(--paper-2); border: 1px solid var(--hair-2); }
.rv__card { border-top: 2px solid var(--accent); padding: 20px 22px 22px; font-size: 13px; line-height: 1.45; }
.rv__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rv__title { font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.stag { position: relative; display: inline-grid; font: 500 10.5px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.stag > span { grid-area: 1 / 1; padding: 5px 8px 4px; border: 1px solid; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.stag__a { color: var(--accent); border-style: dashed !important; opacity: 0; transform: translateY(-4px); }
.stag__b { color: var(--ink); background: var(--paper); }
.rv__k { margin-top: 16px; font: 400 11px/1.3 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.rv__v { margin-top: 4px; font-weight: 500; font-size: 17px; letter-spacing: -.015em; }
.rv__lbl { font: 400 10.5px/1.3 var(--f-mono); color: var(--muted); letter-spacing: .04em; margin-bottom: 6px; }
.rv__lbl i { font-style: normal; color: var(--accent); }
.rv__src { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); }
.rv__q { display: grid; gap: 4px; border-left: 2px solid var(--ink); padding-left: 10px; }
.rv__qn { font: 500 11px/1.3 var(--f-mono); }
.rv__qt { color: var(--muted); font-size: 12.5px; }
.rv__btns { display: flex; gap: 8px; margin-top: 16px; }
.rv__btns span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; font-weight: 500; font-size: 12.5px; border: 1px solid var(--ink); transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease); }
.rv__acc { background: var(--ink); color: var(--paper); }
.rv__rej { color: var(--muted); border-color: var(--hair-2) !important; }
.rv__field { margin-top: 16px; }
.rv__input { height: 36px; display: flex; align-items: center; padding: 0 10px; background: #fff; border-bottom: 1px solid var(--ink); font-size: 13px; overflow: hidden; }
.rv__typed { white-space: nowrap; clip-path: inset(0 0 0 0); transition: clip-path 1.5s steps(29, end); }
.rv__hint { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.rv__save { margin-top: 16px; display: flex; justify-content: flex-end; }
.rv__save span { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; font-weight: 500; font-size: 12.5px; background: var(--accent); color: var(--paper); transition: background-color .45s var(--ease), transform .3s var(--ease); }
.rv__ob { margin-top: 14px; padding: 16px 22px 18px; font-size: 13px; }
.rv__obt { font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.rv__obm { margin-top: 10px; display: grid; gap: 8px; }
.rv__obm > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rv__obm dt { color: var(--muted); font-size: 12.5px; }
.rv__obm dd { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.rv__owner dd { position: relative; }
.rv__av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 500 10px/1 var(--f-mono); }
/* the section's one light: a ring settles on the responsible owner */
.rv__ring { position: absolute; left: -9px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1.5px solid var(--accent); pointer-events: none;
  background: radial-gradient(circle, rgba(194, 73, 46, .16), rgba(194, 73, 46, 0) 70%); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.rv .tag { margin-top: 18px; }
/* initial states while the sequence plays (final state is the default) */
.seq:not(.s1) .rv__acc { background: transparent; color: var(--ink); }
.seq:not(.s2) .rv__typed { clip-path: inset(0 100% 0 0); }
.seq:not(.s3) .rv__save span { background: var(--ink); }
.rv.seq.s3:not(.s4) .rv__save span { transform: scale(.96); }
.seq:not(.s4) .stag__a { opacity: 1; transform: none; }
.seq:not(.s4) .stag__b { opacity: 0; transform: translateY(4px); }
.seq:not(.s5) .rv__ring { opacity: 0; transform: scale(.5); }

/* =================================================================== (06) version system */
.vs { margin: clamp(48px, 5vw, 72px) 0 0; }
.vs__strip { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; padding-bottom: 64px; border-bottom: 1px solid var(--hair); }
.vs__v { position: relative; background: var(--paper-2); border: 1px solid var(--hair-2); padding: 14px 16px 16px; transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .5s var(--ease); }
.vs__n { font-weight: 500; font-size: 17px; letter-spacing: -.015em; }
.vs__d { margin-top: 4px; font: 400 11px/1.3 var(--f-mono); color: var(--muted); }
.vs__v1 { opacity: .55; }
.vs__v3 { border-color: var(--accent); }
.vs__link { height: 1px; background: var(--hair-2); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.vs__cur { position: absolute; right: 12px; top: 12px; font: 500 10px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px 4px; background: var(--ink); color: var(--paper); transition: opacity .5s var(--ease); }
.vs__cur--2 { opacity: 0; }
.vs__glow { position: absolute; left: 50%; bottom: -34px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(194, 73, 46, .12), 0 0 28px 10px rgba(194, 73, 46, .22); transition: opacity .8s var(--ease); }
.vs__state { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vs__sl { font: 400 12px/1.3 var(--f-mono); color: var(--muted); }
.vs__st { display: inline-block; font: 500 10.5px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px 4px; border: 1px solid var(--ink); transition: opacity .5s var(--ease); }
.vs__stw { display: inline-grid; justify-items: start; }
.vs__stw > .vs__st { grid-area: 1 / 1; }
.vs__st--stale { opacity: 0; color: var(--accent); border: 1px dashed var(--accent); }
.vs__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); margin-top: 32px; align-items: start; }
.vs__task { background: var(--paper-2); border: 1px solid var(--hair-2); border-top: 2px solid var(--accent); padding: 20px 22px 20px; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.vs__tt { font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.vs__tb { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 40em; }
.vs__checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.vs__checks li { display: flex; align-items: center; gap: 10px; }
.vs__checks i { position: relative; flex: none; width: 18px; height: 18px; border: 1px solid var(--ink); background: var(--ink); transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.vs__checks i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--paper); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: opacity .3s var(--ease); }
.vs__fin { margin-top: 18px; }
.vs__fin span { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; font-weight: 500; font-size: 12.5px; background: var(--accent); color: var(--paper); transition: background-color .45s var(--ease); }
.vs__log { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); font: 400 12px/1.4 var(--f-mono); color: var(--muted); transition: opacity .6s var(--ease); }
.vs__chg { border-top: 1px solid var(--ink); padding-top: 16px; }
.vs__ct { font-weight: 500; font-size: 17px; letter-spacing: -.015em; }
.vs__cs { margin-top: 4px; font: 400 11px/1.3 var(--f-mono); color: var(--muted); }
.vs__term { margin-top: 16px; font-weight: 500; font-size: 14px; }
.vs__cmp { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 8px; align-items: start; }
.vs__lbl { font: 400 10.5px/1.3 var(--f-mono); color: var(--muted); letter-spacing: .04em; margin-bottom: 6px; }
.vs__old { font-size: 14px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--hair-2); }
.vs__new { font-size: 14px; font-weight: 500; }
.vs__arr { color: var(--accent); padding-top: 18px; }
.vs .tag { margin-top: 22px; }
/* initial states while the sequence plays */
.vs.seq:not(.s1) .vs__v3 { opacity: 0; transform: translateX(16px); }
.vs.seq:not(.s1) .vs__link--3 { transform: scaleX(0); }
.vs.seq.s1:not(.s8) .vs__st--stale { opacity: 1; }
.vs.seq.s1:not(.s8) .vs__st--ok { opacity: 0; }
.vs.seq:not(.s2) .vs__cur--3, .vs.seq:not(.s2) .vs__glow { opacity: 0; }
.vs.seq:not(.s2) .vs__cur--2 { opacity: 1; }
.vs.seq:not(.s2) .vs__v3 { border-color: var(--hair-2); }
.vs.seq:not(.s3) .vs__task { opacity: 0; transform: translateY(16px); }
.vs.seq:not(.s4) .vs__c1 i, .vs.seq:not(.s5) .vs__c2 i, .vs.seq:not(.s6) .vs__c3 i { background: transparent; }
.vs.seq:not(.s4) .vs__c1 i::after, .vs.seq:not(.s5) .vs__c2 i::after, .vs.seq:not(.s6) .vs__c3 i::after { opacity: 0; }
.vs.seq:not(.s7) .vs__fin span { background: var(--ink); }
.vs.seq:not(.s8) .vs__log { opacity: 0; }

@media (max-width: 1000px) {
  .rv { margin-top: 40px; }
  .vs__body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; }
  .pair__plus { justify-content: flex-start; padding: 18px 0 0; }
  .pair__col + .pair__plus + .pair__col { border-top: 1px solid var(--hair-2); margin-top: 10px; }
  .rv__card { padding: 16px 16px 18px; }
  .rv__ob { padding: 14px 16px 16px; }
  .rv__btns span { padding: 0 10px; font-size: 12px; }
  .rv__obm > div { flex-wrap: wrap; }
  .vs__strip { grid-template-columns: 1fr; gap: 0; padding-bottom: 20px; }
  .vs__state { position: static; margin-top: 18px; }
  .vs__link { width: 1px; height: 18px; margin-left: 24px; transform-origin: 50% 0; }
  .vs.seq:not(.s1) .vs__link--3 { transform: scaleY(0); }
  .vs__glow { left: auto; right: -6px; bottom: auto; top: 50%; margin-top: -6px; }
  .vs__cmp { grid-template-columns: 1fr; }
  .vs__arr { padding-top: 0; transform: rotate(90deg); width: max-content; }
}
@media (prefers-reduced-motion: reduce) {
  .rv *, .vs * { transition: none !important; }
}
