:root {
  --graphite: #15181D;
  --graphite-2: #262B33;
  --graphite-3: #3A404A;
  --paper: #F3F4F6;
  --sheet: #FFFFFF;
  --ink: #14171C;
  --ink-2: #4A5260;
  --ink-3: #6B7380;
  --rule: #DCE0E6;
  --accent: #3B5BDB;
  --ready: #1C7C4A;
  --conditional: #9A6400;
  --notready: #B42318;
  --blocked: #5A6472;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --w: 1080px;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; font: 15.5px/1.6 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: .86em; overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--sheet); padding: 8px 12px; z-index: 9; }

/* top bar */
.bar { background: var(--graphite); color: #E8EAEE; border-bottom: 1px solid var(--graphite-3); }
.bar-in { max-width: var(--w); margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 650; letter-spacing: -.005em; }
.mark { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 2px; position: relative; }
.mark::after { content: ""; position: absolute; inset: 3px; background: var(--accent); }
nav { display: flex; gap: 4px 18px; flex-wrap: wrap; flex: 1; }
nav a { color: #B9BFCA; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: #fff; }
nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.key { display: flex; gap: 8px; align-items: center; }
.key label { font-size: .85rem; color: #9AA1AD; }
.key input { width: 12.5rem; background: var(--graphite-2); border: 1px solid var(--graphite-3); color: #fff; }

main { display: block; max-width: var(--w); margin: 0 auto; padding: 40px 20px 72px; outline: none; }
.foot { border-top: 1px solid var(--rule); }
.foot-in { max-width: var(--w); margin: 0 auto; padding: 18px 20px; color: var(--ink-3); font-size: .85rem; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 16px 20px; }

h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 10px; letter-spacing: -.02em; font-weight: 650; }
h2 { font-size: 1.15rem; margin: 44px 0 14px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 0 0 6px; font-weight: 650; }
p { margin: 0 0 10px; }
.lede { color: var(--ink-2); max-width: 64ch; font-size: 1.05rem; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.back { margin: 0 0 16px; font-size: .92rem; }

input, select, button { font: inherit; }
input[type=password], input[type=text], select { padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); color: var(--ink); }
button, .btn { display: inline-block; padding: 10px 18px; border-radius: 4px; border: 1px solid var(--accent); background: var(--accent);
               color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.3; }
button.ghost, .btn.ghost { background: transparent; color: var(--accent); }
.bar button.ghost { color: #fff; border-color: var(--graphite-3); }
button:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.error { color: var(--notready); font-weight: 600; }

/* landing */
.hero { background: var(--graphite); color: #EEF0F3; margin: -40px calc(50% - 50vw) 0; padding: 72px 20px 64px;
        background-image: linear-gradient(var(--graphite-2) 1px, transparent 1px), linear-gradient(90deg, var(--graphite-2) 1px, transparent 1px);
        background-size: 48px 48px; background-position: -1px -1px; border-bottom: 1px solid var(--graphite-3); }
.hero-in { max-width: var(--w); margin: 0 auto; }
.hero .kicker { color: #9AA1AD; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); max-width: 17ch; color: #fff; letter-spacing: -.03em; margin-bottom: 18px; }
.hero .lede { color: #C3C8D1; }
.hero .row { margin-top: 26px; }
.hero .btn.ghost { color: #fff; border-color: #5A6170; }
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; padding: 0; list-style: none; border: 1px solid var(--rule); background: var(--sheet); }
.cycle li { padding: 22px 20px; border-left: 1px solid var(--rule); counter-increment: c; }
.cycle li:first-child { border-left: 0; }
.cycle .step { color: var(--ink-3); font-size: .85rem; }
.cycle h3 { font-size: 1.35rem; letter-spacing: -.015em; margin: 4px 0 8px; }
.cycle p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.chain-strip { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.chain-strip li { padding: 8px 14px; border: 1px solid var(--rule); background: var(--sheet); margin: 0 -1px -1px 0; font-weight: 600; }
.chain-strip li + li::before { content: "→"; color: var(--ink-3); margin-right: 10px; font-weight: 400; }

/* tables and data */
table { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: .93rem; }
th { color: var(--ink-2); font-weight: 600; background: #FAFAFB; }
tr:last-child td { border-bottom: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.panel { background: var(--sheet); border: 1px solid var(--rule); padding: 20px 22px; }

/* readiness states */
.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--blocked)); }
.s-READY { --tone: var(--ready); }
.s-CONDITIONAL { --tone: var(--conditional); }
.s-NOT_READY { --tone: var(--notready); }
.s-BLOCKED { --tone: var(--blocked); }
.s-IN_PROGRESS { --tone: var(--accent); }
.cap-PROVEN { --tone: var(--ready); }
.cap-AVAILABLE { --tone: var(--accent); }
.cap-LIMITED { --tone: var(--conditional); }
.cap-OPEN, .cap-NOT_SUPPORTED { --tone: var(--notready); }

/* the decision: the one bold element */
.decision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; background: var(--sheet);
            border: 1px solid var(--rule); border-top: 6px solid var(--tone); margin: 8px 0 0; }
.decision > div { padding: 26px 28px; }
.decision > div + div { border-left: 1px solid var(--rule); }
.decision .label { color: var(--ink-2); font-size: .9rem; margin-bottom: 4px; }
.decision .word { font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; font-weight: 700; letter-spacing: -.02em; color: var(--tone); margin: 6px 0 14px; }
.decision ul { margin: 0; padding-left: 18px; }
.decision li { margin-bottom: 4px; }

/* live stages */
.stages { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--rule); }
.stages li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 13px 18px; border-bottom: 1px solid var(--rule); }
.stages li:last-child { border-bottom: 0; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rule); display: grid; place-items: center; font-size: .75rem; color: #fff; margin-top: 1px; }
.st-done .dot { background: var(--ready); border-color: var(--ready); }
.st-failed .dot { background: var(--notready); border-color: var(--notready); }
.st-active .dot { border-color: var(--accent); box-shadow: 0 0 0 0 rgba(59, 91, 219, .45); animation: pulse 1.6s ease-out infinite; }
.st-pending { color: var(--ink-3); }
.stages .detail { grid-column: 2; color: var(--ink-2); font-size: .88rem; overflow-wrap: anywhere; }
.st-pending .detail { color: var(--ink-3); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 91, 219, .45); } 100% { box-shadow: 0 0 0 9px rgba(59, 91, 219, 0); } }

/* proof chain */
.chain { list-style: none; margin: 0; padding: 0; position: relative; }
.chain li { position: relative; padding: 0 0 18px 30px; }
.chain li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 2px; background: var(--ready); }
.chain li.no::before { background: var(--notready); }
.chain li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--rule); }
.chain li:last-child::after { display: none; }
.chain strong { display: block; }
.chain span { color: var(--ink-2); font-size: .9rem; overflow-wrap: anywhere; }

/* forms */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 30px 46px; border-left: 1px solid var(--rule); margin-left: 15px; }
.steps > li:last-child { border-left-color: transparent; }
.steps > li::before { content: counter(s); position: absolute; left: -16px; top: -2px; width: 32px; height: 32px; border-radius: 50%;
                      background: var(--sheet); border: 1px solid var(--ink); display: grid; place-items: center; font-weight: 650; font-size: .9rem; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rule); background: var(--sheet); margin-bottom: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.choice small { display: block; color: var(--ink-2); }
.identity { margin-top: 12px; }
.note { font-size: .88rem; color: var(--ink-2); margin: 8px 0 0; }
.sev { font-weight: 650; text-transform: capitalize; }
.sev-critical, .sev-high { color: var(--notready); }
.sev-medium { color: var(--conditional); }
.ok { color: var(--ready); font-weight: 650; }
.bad { color: var(--notready); font-weight: 650; }
details > summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.files { max-height: 22rem; overflow: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cmd { display: block; background: var(--graphite); color: #E8EAEE; padding: 12px 14px; border-radius: 4px; overflow-x: auto; white-space: pre; font-family: var(--mono); font-size: .85rem; }

@media (max-width: 760px) {
  .cycle { grid-template-columns: 1fr 1fr; }
  .cycle li:nth-child(3) { border-left: 0; }
  .cycle li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .decision, .grid2 { grid-template-columns: 1fr; }
  .decision > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .cycle { grid-template-columns: 1fr; }
  .cycle li { border-left: 0; border-top: 1px solid var(--rule); }
  .cycle li:first-child { border-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .key input { width: 100%; }
  .key { width: 100%; }
  .table-scroll { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.decision { --tone: var(--blocked); }
.decision.s-READY { --tone: var(--ready); }
.decision.s-CONDITIONAL { --tone: var(--conditional); }
.decision.s-NOT_READY { --tone: var(--notready); }
.decision.s-BLOCKED { --tone: var(--blocked); }
.decision .facts { margin-top: 6px; font-size: .92rem; }
.decision .label + .facts, .decision p + .label, .decision .small + .label { margin-top: 14px; }
.decision .label:not(:first-child) { margin-top: 16px; }
.row h1 { margin-right: auto; }
.panel h3 { margin-bottom: 12px; }
input[type=file] { max-width: 100%; }
select, input[type=text], input[type=password] { max-width: 100%; }

/* ---- Assessment Experience V1 */
[hidden] { display: none !important; }
.label { color: var(--ink-3); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin: 0 0 6px; }
.decision .label { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 400; color: var(--ink-2); }
.pillars { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
           border: 1px solid var(--rule); background: var(--sheet); }
.pillars li { padding: 20px 18px; border-left: 1px solid var(--rule); }
.pillars li:first-child { border-left: 0; }
.pillars h3 { font-size: .98rem; margin-bottom: 6px; }
.pillars p { color: var(--ink-2); font-size: .9rem; margin: 0; }
.principle { margin: 28px 0 0; font-size: 1.02rem; color: var(--ink); border-left: 3px solid var(--ink); padding: 2px 0 2px 14px; max-width: 64ch; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 8px; }
.paths p:last-child { color: var(--ink-2); margin: 0; }
.constraints { margin: 20px 0 32px; border: 1px solid var(--rule); background: var(--sheet); }
.sandbox { background: var(--graphite); color: #E8EAEE; padding: 12px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.sandbox .tag { margin-left: auto; border: 1px solid #5A6170; border-radius: 3px; padding: 1px 8px; font-size: .8rem; color: #fff; }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cgrid > div { padding: 18px 20px; border-left: 1px solid var(--rule); min-width: 0; }
.cgrid > div:first-child { border-left: 0; }
.cgrid .facts { grid-template-columns: 1fr; gap: 2px 0; font-size: .9rem; }
.cgrid .facts dd { margin-bottom: 8px; }
ul.plain { margin: 0; padding-left: 18px; }
ul.plain li { margin-bottom: 4px; }
.ahead { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 14px 0 16px; margin: 6px 0 22px; }
.ahead .aid { font-size: 1.15rem; margin: 0 0 10px; font-weight: 600; }
.limits { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); background: var(--sheet); }
.limits li { padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.limits li:last-child { border-bottom: 0; }
.limits p { margin: 6px 0 0; color: var(--ink-2); font-size: .92rem; }
.cta { margin: 44px 0 0; border: 1px solid var(--ink); background: var(--sheet); padding: 24px 26px; }
.cta h2 { margin: 0 0 8px; font-size: 1.4rem; }
.includes { columns: 2; column-gap: 28px; margin: 6px 0 20px; padding-left: 18px; }
.includes li { margin-bottom: 4px; break-inside: avoid; }
.reqform, .req { margin-top: 18px; }
.field { display: grid; gap: 4px; max-width: 34rem; }
.field input, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); color: var(--ink); font: inherit; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li { border-left: 0; border-top: 1px solid var(--rule); }
  .pillars li:nth-child(even) { border-left: 1px solid var(--rule); }
  .pillars li:nth-child(-n+2) { border-top: 0; }
  .cgrid { grid-template-columns: 1fr; }
  .cgrid > div { border-left: 0; border-top: 1px solid var(--rule); }
  .cgrid > div:first-child { border-top: 0; }
}
@media (max-width: 560px) {
  .pillars, .paths { grid-template-columns: 1fr; }
  .pillars li, .pillars li:nth-child(even) { border-left: 0; }
  .pillars li:nth-child(2) { border-top: 1px solid var(--rule); }
  .includes { columns: 1; }
  .cta { padding: 20px 16px; }
  .sandbox .tag { margin-left: 0; }
}
nav a { white-space: nowrap; }
.bar-in { gap: 10px 24px; }
.key input { width: 10rem; }
.sandbox > span:not(.tag) { flex: 1 1 18rem; }
@media (max-width: 560px) { .key input { width: 100%; } }
