/* ============================================================
   SOMA GOVERNANCE — page-specific components
   (Soma Index · Standards Index · Engagement phase pages)
   Loaded in addition to soma.css.
   ============================================================ */

/* ---- sub-page intro band ---- */
.page-head { padding-top: clamp(46px, 6vw, 84px); padding-bottom: clamp(34px, 4vw, 54px); border-bottom: 1px solid var(--rule); }
.page-head .crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; display: flex; gap: 10px; align-items: center; }
.page-head .crumb a { color: var(--muted); } .page-head .crumb a:hover { color: var(--pen); }
.page-head .crumb .sep { color: var(--rule); }
.page-head h1 { margin-bottom: 22px; max-width: 16ch; }
.page-head .standfirst { font-family: var(--serif); font-weight: 430; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.22; color: var(--ink-soft); max-width: 30ch; margin-bottom: 22px; }
.page-head .lede { margin-bottom: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- section heading reuse on light pages ---- */
.lband { padding-top: clamp(50px, 6vw, 88px); padding-bottom: clamp(50px, 6vw, 88px); }
.lband + .lband { border-top: 1px solid var(--rule); }
.kicker { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.kicker .section-no { white-space: nowrap; }
.kicker .ln { flex: 1; height: 1px; background: var(--rule); }

/* ============================================================
   SOMA INDEX — metrics (light)
   ============================================================ */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); margin-top: 8px; }
.metric { padding: clamp(26px,3vw,40px) clamp(24px,2.8vw,38px); border-right: 1px solid var(--rule); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: none; padding-right: 0; }
.metric .mbig { font-family: var(--serif); font-weight: 380; font-size: clamp(58px, 8vw, 104px); line-height: .86; letter-spacing: -.03em; }
.metric .mbig .u { font-size: .42em; }
.metric .mname { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--pen); margin: 16px 0 10px; font-weight: 600; }
.metric .mdesc { color: var(--ink-soft); font-size: 15px; line-height: 1.55; max-width: 34ch; }

/* sector rankings */
.rank-table { border-top: 2px solid var(--ink); margin-top: 8px; }
.rank-row { display: grid; grid-template-columns: 54px 1fr minmax(180px, 300px) 64px; gap: clamp(14px,2vw,30px); align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.rank-row .rk { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.rank-row .sector { font-family: var(--serif); font-size: clamp(18px,1.9vw,24px); letter-spacing: -.01em; }
.rank-row .bar { height: 7px; background: var(--paper-3); position: relative; overflow: hidden; }
.rank-row .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.rank-row.low .bar i { background: var(--pen); }
.rank-row .num { font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: right; }
.rank-row.low .num { color: var(--pen); }
.rank-row .num .den { color: var(--muted); font-weight: 400; }
.rank-head { display: grid; grid-template-columns: 54px 1fr minmax(180px, 300px) 64px; gap: clamp(14px,2vw,30px); padding-bottom: 12px; }
.rank-head span { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rank-head .r-r { text-align: right; }

/* posture tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); margin-top: 8px; }
.tier { padding: clamp(26px,3vw,36px) clamp(20px,2.4vw,30px); border-right: 1px solid var(--rule); }
.tier:last-child { border-right: none; }
.tier .trange { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tier .tname { font-family: var(--serif); font-size: clamp(26px,3vw,40px); line-height: 1; margin: 12px 0 16px; letter-spacing: -.02em; }
.tier .tdesc { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.tier.t-exposed .tname { color: var(--pen); }
.tier.t-attested { background: var(--obsidian); color: var(--on-dark); border-right: none; }
.tier.t-attested .trange { color: var(--muted-dark); }
.tier.t-attested .tname { color: var(--on-dark); }
.tier.t-attested .tdesc { color: var(--muted-dark); }

/* ============================================================
   STANDARDS — risk-map cards
   ============================================================ */
.riskmap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.rcard { border: 1px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; }
.rcard .rh { display: flex; gap: 16px; padding: 22px 24px 20px; border-bottom: 1px solid var(--ink); align-items: baseline; }
.rcard .rh .rn { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1; color: var(--pen); flex: none; }
.rcard .rh .rt { font-family: var(--serif); font-size: clamp(20px,2vw,25px); line-height: 1.1; letter-spacing: -.01em; }
.rcard .rmeta { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.rcard .rmeta .m { padding: 14px 24px; border-right: 1px solid var(--rule); }
.rcard .rmeta .m:last-child { border-right: none; }
.rcard .rmeta .m .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 5px; }
.rcard .rmeta .m .v { font-size: 14px; line-height: 1.4; color: var(--ink); }
.rcard .rburden { padding: 20px 24px 24px; }
.rcard .rburden .k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--pen); display: block; margin-bottom: 10px; font-weight: 600; }
.rcard .rburden p { font-size: 15px; line-height: 1.58; color: var(--ink-soft); }
.rcard .rburden p .pen-circle, .rcard .rburden p .pen-underline { white-space: nowrap; }
/* featured / full-width variants */
.rcard.span2 { grid-column: 1 / -1; }
.rcard.dark { background: var(--obsidian); color: var(--on-dark); border-color: var(--obsidian); }
.rcard.dark .rh { border-color: var(--rule-dark); }
.rcard.dark .rh .rt { color: var(--on-dark); }
.rcard.dark .rmeta { border-color: var(--rule-dark); }
.rcard.dark .rmeta .m { border-color: var(--rule-dark); }
.rcard.dark .rmeta .m .v { color: var(--on-dark); }
.rcard.dark .rburden p { color: var(--muted-dark); }

/* ---- standards matrix (compact ruled table) ---- */
.std-matrix { width: 100%; border-collapse: collapse; margin-top: 8px; border-top: 2px solid var(--ink); }
.std-matrix th { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: left; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--rule); }
.std-matrix th.h-r { text-align: left; }
.std-matrix td { padding: 17px 18px 17px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; transition: background .15s; }
.std-matrix tr:hover td { background: var(--paper-2); }
.std-matrix .c-no { font-family: var(--mono); font-size: 12px; color: var(--pen); white-space: nowrap; width: 34px; }
.std-matrix .c-fw { font-family: var(--serif); font-size: clamp(17px,1.7vw,21px); letter-spacing: -.01em; line-height: 1.16; }
.std-matrix .c-fw .sub { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.std-matrix .c-jur, .std-matrix .c-pen { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; white-space: nowrap; }
.std-matrix .c-status { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.std-matrix .c-status .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.std-matrix .dot.live { background: var(--pen); }
.std-matrix .dot.soon { background: #C0901E; }
.std-matrix .dot.vol { background: var(--muted); }
@media (max-width: 760px) {
  .std-matrix .c-jur, .std-matrix th.h-jur { display: none; }
}
/* mobile status legend (hidden on desktop; status shows text there) */
.std-legend { display: none; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.std-legend span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; }
.std-legend .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; }
.std-legend .dot.live { background: var(--pen); }
.std-legend .dot.soon { background: #C0901E; }
.std-legend .dot.vol { background: var(--muted); }
@media (max-width: 560px) {
  .std-matrix .c-fw { font-size: 16px; }
  .std-matrix .st-label { display: none; }
  .std-matrix .c-status { width: 26px; text-align: center; }
  .std-matrix .c-status .dot { margin-right: 0; }
  .std-matrix .c-pen { white-space: normal; font-size: 11px; }
  .std-legend { display: flex; }
}

/* accordion: tap a row for a one-line read */
.std-matrix tr.std-row { cursor: pointer; }
.std-matrix .c-x { width: 26px; text-align: right; }
.std-matrix .cx { font-family: var(--mono); font-size: 15px; color: var(--muted); display: inline-block; line-height: 1; transition: transform .25s ease, color .2s; }
.std-matrix tr.std-row:hover .cx { color: var(--pen); }
.std-matrix tr.std-row.open .cx { transform: rotate(45deg); color: var(--pen); }
.std-matrix tr.std-row.open td { background: var(--paper-2); border-bottom-color: transparent; }
.std-matrix tr.std-d { display: none; }
.std-matrix tr.std-d.open { display: table-row; }
.std-matrix tr.std-d td { padding: 0 18px 20px 52px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.std-d-in { animation: stdReveal .3s ease; max-width: 76ch; }
@keyframes stdReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.std-d-in .dd { display: flex; gap: 14px; padding: 4px 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.std-d-in .dd .ddk { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--pen); flex: none; width: 72px; padding-top: 4px; }
@media (max-width: 560px) {
  .std-d-in .dd { flex-direction: column; gap: 2px; }
  .std-d-in .dd .ddk { padding-top: 0; }
  .std-matrix tr.std-d td { padding-left: 26px; }
}

/* independence mandate */
.mandate { background: var(--obsidian); color: var(--on-dark); }
.mandate .m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,60px); align-items: start; }
.mandate h2 { color: var(--on-dark); }
.mandate .lede { color: var(--muted-dark); }
.nots { border-top: 1px solid var(--rule-dark); }
.nots .not { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule-dark); }
.nots .not .x { color: var(--pen); font-family: var(--mono); font-size: 15px; flex: none; }
.nots .not .nt { font-family: var(--serif); font-size: clamp(18px,2vw,23px); color: var(--on-dark); line-height: 1.2; }

/* ============================================================
   ENGAGEMENT — pipeline stepper + phase pages
   ============================================================ */
.pipeline { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, 1fr); background: var(--paper); }
.pipeline a { display: flex; flex-direction: column; gap: 6px; padding: 16px clamp(16px,2vw,26px); border-right: 1px solid var(--rule); transition: background .2s; }
.pipeline a:last-child { border-right: none; }
.pipeline a:hover { background: var(--paper-2); }
.pipeline a .pn { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pipeline a .pt { font-family: var(--serif); font-size: clamp(16px,1.7vw,20px); letter-spacing: -.01em; line-height: 1; }
.pipeline a .pp { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-soft); }
.pipeline a.active { background: var(--ink); }
.pipeline a.active .pn { color: var(--pen); }
.pipeline a.active .pt { color: var(--paper); }
.pipeline a.active .pp { color: var(--muted-dark); }
/* reorg: free lead-in + paid exit affordances */
.pipeline a.pl-free .pn { color: var(--muted); }
.pipeline a.pl-free .pt { color: var(--ink-soft); }
.pipeline a.pl-paid { background: rgba(206,22,32,.06); }
.pipeline a.pl-paid .pn { color: var(--pen); }
.pipeline a.pl-paid .pt { color: var(--pen); }
.pipeline a.pl-paid:hover { background: rgba(206,22,32,.11); }

/* Soma Index — free assessment block */
.assess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(28px,3.5vw,44px); }
.assess-card { border: 1px solid var(--ink); background: var(--paper); padding: clamp(24px,2.6vw,34px); display: flex; flex-direction: column; }
.assess-card .ac-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pen); margin-bottom: 14px; font-weight: 600; }
.assess-card h3 { font-family: var(--serif); font-weight: 440; font-size: clamp(22px,2.2vw,28px); line-height: 1.06; letter-spacing: -.01em; margin-bottom: 12px; }
.assess-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin-bottom: 22px; max-width: 40ch; }
.assess-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 720px) { .assess-grid { grid-template-columns: 1fr; } }

/* phase hero */
.phase-page { padding-top: clamp(44px,5vw,72px); padding-bottom: clamp(50px,6vw,88px); }
.phase-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(34px,5vw,72px); align-items: start; margin-top: clamp(28px,3vw,44px); }
.phase-lead .ptag { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.phase-lead .ptag .ln { width: 40px; height: 1px; background: var(--pen); }
.phase-lead h1 { margin-bottom: 20px; }
.phase-lead .standfirst { font-family: var(--serif); font-weight: 430; font-size: clamp(20px,2.2vw,27px); line-height: 1.22; color: var(--ink-soft); max-width: 32ch; margin-bottom: 24px; }
.phase-lead p.body { font-size: 17px; line-height: 1.62; color: var(--ink-soft); max-width: 56ch; }
.phase-lead p.body + p.body { margin-top: 16px; }
.phase-lead .block-label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--pen); margin: 30px 0 12px; font-weight: 600; }

/* price / scope card */
.scope-card { border: 1px solid var(--ink); background: var(--paper-2); position: sticky; top: 92px; }
.scope-card .sc-h { background: var(--ink); color: var(--paper); padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.scope-card .sc-h .label { color: var(--paper); }
.scope-card .sc-h .stamp { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--pen); }
.scope-card .sc-b { padding: 24px 20px; }
.scope-card .price { font-family: var(--serif); font-weight: 380; font-size: clamp(44px,5vw,64px); line-height: 1; letter-spacing: -.02em; }
.scope-card .price .cur { font-size: .5em; vertical-align: super; }
.scope-card .price-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-top: 8px; }
.scope-card .sc-rows { margin: 22px 0; border-top: 1px solid var(--rule); }
.scope-card .sc-rows .r { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dotted var(--rule); }
.scope-card .sc-rows .r .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.scope-card .sc-rows .r .v { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.scope-card .sc-rows .r .v.pen { color: var(--pen); }
.scope-card .sc-cta { width: 100%; justify-content: center; }
.scope-card .sc-note { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }

/* uncovers / deliverable list */
.uncover { border-top: 2px solid var(--ink); margin-top: 8px; }
.uncover .u { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.uncover .u .un { font-family: var(--mono); font-size: 12px; color: var(--pen); letter-spacing: .1em; }
.uncover .u .ut { font-family: var(--serif); font-size: clamp(18px,1.9vw,23px); line-height: 1.25; }
.uncover .u .ut .sub { display: block; font-family: var(--sans); font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin-top: 8px; max-width: 60ch; }

/* anonymous selector (signal check phase page) */
.anon-card { border: 1px solid var(--ink); background: var(--paper-2); padding: clamp(26px,3vw,40px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.anon-card .badge { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pen); border: 1px solid var(--pen); padding: 6px 12px; }
.anon-card .big-q { font-family: var(--serif); font-size: clamp(24px,3vw,38px); line-height: 1.08; letter-spacing: -.015em; }
.anon-feats { display: flex; gap: 0; border-top: 1px solid var(--rule); width: 100%; margin-top: 4px; }
.anon-feats .af { flex: 1; padding: 16px 0; border-right: 1px solid var(--rule); }
.anon-feats .af:last-child { border-right: none; padding-left: 16px; }
.anon-feats .af:first-child { padding-left: 0; }
.anon-feats .af .afn { font-family: var(--serif); font-size: 26px; line-height: 1; }
.anon-feats .af .afl { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* selectable scope option */
.select-row { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--pen); padding: 14px 16px; background: color-mix(in srgb, var(--pen) 7%, transparent); margin-bottom: 18px; }
.select-row .radio { width: 16px; height: 16px; border: 1.5px solid var(--pen); border-radius: 50%; position: relative; flex: none; }
.select-row .radio.checked::after { content: ""; position: absolute; inset: 3px; background: var(--pen); border-radius: 50%; }
.select-row .sel-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; flex: 1; line-height: 1.3; }
.select-row .sel-price { font-family: var(--serif); font-size: 20px; }

@media (max-width: 1000px) {
  .phase-grid { grid-template-columns: 1fr; }
  .scope-card { position: static; max-width: 460px; }
  .mandate .m-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--rule); padding-left: 0; padding-right: 0; }
  .metric:last-child { border-bottom: none; }
  .tiers { grid-template-columns: 1fr; }
  .tier { border-right: none; border-bottom: 1px solid var(--rule); }
  .tier.t-attested { border-bottom: none; }
  .riskmap { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline a { border-right: none; border-bottom: 1px solid var(--rule); flex-direction: row; align-items: baseline; gap: 12px; }
  .rank-row { grid-template-columns: 40px 1fr 60px; }
  .rank-row .bar { display: none; }
  .rank-head { display: none; }
}
