/* Digital Chrysalis — ISO 27001 Companion. Obsidian and gold, matching the site. */
:root {
  --ink: #0F1115; --band: #121419; --panel: #1A1D24; --panel-2: #20242C; --line: #1E222A; --line-2: #2A2E37;
  --bone: #E6E6E6; --muted: #9A9A9A; --faint: #6A6F78; --gold: #C8A96A; --gold-soft: rgba(200,169,106,.12);
  --gold-line: rgba(200,169,106,.35); --sage: #8FB39A; --sky: #8AA9C9; --rose: #C98A8A; --amber: #D4B26A;
  --radius: 2px;
}
.cx { font-family: var(--font-manrope), system-ui, sans-serif; color: var(--bone); }
.cx *, .cx *::before, .cx *::after { box-sizing: border-box; }
.cx a { text-decoration: none; }
.cx a:not(.cx-btn):not(.cx-stage):not(.cx-card):not(.cx-nav) { color: var(--gold); }
.cx a:not(.cx-btn):not(.cx-stage):not(.cx-card):not(.cx-nav):hover { color: var(--bone); }
.cx :focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.cx-wrap { padding: 0 24px 96px; max-width: 1360px; margin: 0 auto; }
@media (min-width: 640px) { .cx-wrap { padding: 0 40px 112px; } }
@media (min-width: 1024px) { .cx-wrap { padding: 0 96px 128px; } }

.cx-eyebrow { font-size: 11px; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.cx-h1 { font-weight: 200; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.15; margin: 0 0 22px; letter-spacing: .01em; }
.cx-h2 { font-weight: 300; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.25; margin: 0 0 14px; }
.cx-h3 { font-weight: 400; font-size: 1.05rem; line-height: 1.4; margin: 0 0 8px; letter-spacing: .01em; }
.cx-lede { font-size: 1.125rem; line-height: 1.75; color: var(--muted); font-weight: 300; max-width: 720px; margin: 0 0 18px; }
.cx-p { color: var(--muted); font-weight: 300; line-height: 1.7; margin: 0 0 12px; font-size: .97rem; }
.cx-small { font-size: .82rem; color: var(--faint); line-height: 1.6; }
.cx-rule { height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); border: 0; margin: 40px 0; }

/* buttons */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 22px; border: 1px solid var(--gold-line);
  background: transparent; color: var(--gold); font: 500 11px/1 var(--font-manrope), system-ui, sans-serif; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius); transition: background .25s, color .25s, border-color .25s; }
.cx-btn:hover { background: var(--gold-soft); color: var(--bone); }
.cx-btn--solid { background: var(--gold); color: #14161B; border-color: var(--gold); }
.cx-btn--solid:hover { background: #D7BC85; color: #0F1115; }
.cx-btn--quiet { border-color: var(--line-2); color: var(--muted); }
.cx-btn--quiet:hover { color: var(--bone); border-color: var(--gold-line); background: transparent; }
.cx-btn--danger { border-color: rgba(201,138,138,.45); color: var(--rose); }
.cx-btn--danger:hover { background: rgba(201,138,138,.08); color: #E8C1C1; }
.cx-btn--sm { min-height: 34px; padding: 8px 12px; font-size: 10px; letter-spacing: .18em; }
.cx-btn[disabled] { opacity: .45; cursor: not-allowed; }
.cx-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* panels */
.cx-panel { background: var(--panel); border: 1px solid var(--line-2); padding: 24px; border-radius: var(--radius); }
.cx-panel--gold { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(200,169,106,.06), rgba(200,169,106,0) 60%), var(--panel); }
.cx-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .cx-grid--2 { grid-template-columns: 1fr 1fr; } .cx-grid--3 { grid-template-columns: repeat(3, 1fr); } .cx-grid--main { grid-template-columns: 1.6fr 1fr; } }

/* landing */
.cx-hero { padding: 24px 0 56px; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .cx-hero { grid-template-columns: 1.15fr 1fr; padding-top: 40px; } }
.cx-hero__art { width: 100%; height: auto; display: block; }
.cx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cx-list li { position: relative; padding-left: 26px; color: var(--muted); font-weight: 300; line-height: 1.6; }
.cx-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1px; background: var(--gold); }
.cx-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.cx-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; color: var(--muted); font-weight: 300; line-height: 1.6; }
.cx-steps li::before { content: counter(s, decimal-leading-zero); color: var(--gold); font-size: 12px; letter-spacing: .2em; padding-top: 3px; }
.cx-price { font-weight: 200; font-size: 2.6rem; color: var(--bone); }
.cx-price small { font-size: .9rem; color: var(--muted); letter-spacing: .05em; }
.cx-faq details { border-top: 1px solid var(--line-2); padding: 16px 0; }
.cx-faq summary { cursor: pointer; color: var(--bone); font-weight: 400; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.cx-faq summary::after { content: "+"; color: var(--gold); }
.cx-faq details[open] summary::after { content: "–"; }
.cx-faq details p { margin: 12px 0 0; }

/* forms */
.cx-field { display: grid; gap: 8px; margin-bottom: 16px; }
.cx-label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cx-input, .cx-select, .cx-textarea { width: 100%; background: var(--ink); color: var(--bone); border: 1px solid var(--line-2); padding: 12px 14px; font: 300 15px/1.4 var(--font-manrope), system-ui, sans-serif; border-radius: var(--radius); }
.cx-input:focus, .cx-select:focus, .cx-textarea:focus { border-color: var(--gold-line); outline: none; }
.cx-textarea { min-height: 96px; resize: vertical; }
.cx-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.cx-msg { padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--gold-soft); color: var(--bone); font-size: .92rem; line-height: 1.55; margin: 0 0 16px; }
.cx-msg--error { border-color: var(--rose); background: rgba(201,138,138,.08); }
.cx-msg--ok { border-color: var(--sage); background: rgba(143,179,154,.08); }
.cx-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-2); margin-bottom: 22px; }
.cx-tab { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 12px 16px; color: var(--muted); font: 500 11px/1 var(--font-manrope), system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.cx-tab[aria-selected="true"] { color: var(--gold); border-color: var(--gold); }

/* app shell */
.cx-shell { display: grid; gap: 28px; }
@media (min-width: 1024px) { .cx-shell { grid-template-columns: 230px 1fr; gap: 48px; } }
.cx-side { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .cx-side { flex-direction: column; overflow: visible; border-bottom: 0; border-right: 1px solid var(--line); padding: 0 24px 0 0; position: sticky; top: 24px; align-self: start; } }
.cx-side a { white-space: nowrap; padding: 11px 12px; color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border-left: 1px solid transparent; }
@media (min-width: 1024px) { .cx-side a { border-left: 1px solid transparent; } }
.cx-side a[aria-current="page"] { color: var(--gold); border-left-color: var(--gold); background: linear-gradient(90deg, var(--gold-soft), transparent); }
.cx-side .cx-side__id { display: none; }
@media (min-width: 1024px) { .cx-side .cx-side__id { display: block; padding: 0 12px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); } }
.cx-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--line-2); color: var(--muted); border-radius: var(--radius); white-space: nowrap; }
.cx-badge--gold { color: var(--gold); border-color: var(--gold-line); }
.cx-badge--sage { color: var(--sage); border-color: rgba(143,179,154,.4); }
.cx-badge--sky { color: var(--sky); border-color: rgba(138,169,201,.4); }
.cx-badge--rose { color: var(--rose); border-color: rgba(201,138,138,.4); }
.cx-badge--amber { color: var(--amber); border-color: rgba(212,178,106,.4); }
.cx-banner { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 14px 18px; margin-bottom: 24px; border: 1px solid var(--gold-line); background: var(--gold-soft); font-size: .92rem; }
.cx-banner--warn { border-color: rgba(201,138,138,.45); background: rgba(201,138,138,.07); }

/* progress */
.cx-meter { height: 4px; background: var(--line-2); position: relative; overflow: hidden; border-radius: 2px; }
.cx-meter > span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #A88B52, var(--gold)); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.cx-ring { width: 148px; height: 148px; display: block; }
.cx-stat { display: grid; gap: 4px; }
.cx-stat b { font-weight: 200; font-size: 2rem; color: var(--bone); }
.cx-stat span { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.cx-track { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cx-track { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .cx-track { grid-template-columns: repeat(6, 1fr); } }
.cx-stage { display: block; padding: 16px; border: 1px solid var(--line-2); background: var(--panel); color: var(--bone); position: relative; }
.cx-stage:hover { border-color: var(--gold-line); color: var(--bone); }
.cx-stage[data-current="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(200,169,106,.25); }
.cx-stage__n { font-size: 10px; letter-spacing: .25em; color: var(--faint); }
.cx-stage__name { font-size: 1.05rem; font-weight: 300; margin: 6px 0 12px; letter-spacing: .04em; }

/* items, cards */
.cx-item { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .cx-item { grid-template-columns: 1fr 200px; align-items: start; } }
.cx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-chip { font-size: 11.5px; padding: 4px 8px; border: 1px solid var(--line-2); color: var(--muted); background: var(--ink); border-radius: var(--radius); }
.cx-chip b { color: var(--gold); font-weight: 500; letter-spacing: .04em; margin-right: 4px; }
.cx-card { border: 1px solid var(--line-2); background: var(--panel); padding: 16px; display: grid; gap: 10px; border-radius: var(--radius); }
.cx-card__t { color: var(--bone); font-weight: 400; line-height: 1.45; }
.cx-card__d { color: var(--muted); font-weight: 300; font-size: .9rem; line-height: 1.6; white-space: pre-line; }
.cx-cols { display: grid; gap: 18px; }
@media (min-width: 1000px) { .cx-cols { grid-template-columns: repeat(3, 1fr); } }
.cx-col h3 { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
.cx-col__list { display: grid; gap: 10px; }
.cx-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cx-table th { text-align: left; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.cx-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.cx-table td:first-child { color: var(--bone); }
@media (max-width: 760px) { .cx-table thead { display: none; } .cx-table tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); } .cx-table td { border: 0; padding: 3px 0; } }
.cx-drop { border: 1px dashed var(--gold-line); padding: 28px; text-align: center; background: rgba(200,169,106,.03); cursor: pointer; transition: background .2s; }
.cx-drop.is-over { background: var(--gold-soft); }

/* assistant */
.cx-chat { display: grid; gap: 18px; margin-bottom: 18px; }
.cx-q { justify-self: end; max-width: 80%; background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 16px; color: var(--bone); white-space: pre-wrap; line-height: 1.55; }
.cx-a { display: grid; gap: 10px; max-width: 920px; }
.cx-block { border-left: 2px solid var(--line-2); padding: 10px 0 10px 16px; }
.cx-block[data-src="dc"] { border-color: var(--gold); }
.cx-block[data-src="customer"] { border-color: var(--sky); }
.cx-block[data-src="general"] { border-color: var(--faint); }
.cx-block__h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.cx-block__t { color: var(--bone); font-weight: 300; line-height: 1.7; white-space: pre-wrap; font-size: .96rem; }
.cx-compose { display: grid; gap: 10px; padding-top: 8px; }
.cx-finding { border: 1px solid var(--line-2); background: var(--panel); padding: 16px; display: grid; gap: 8px; }
.cx-finding[data-kind="potential_gap"] { border-left: 2px solid var(--amber); }
.cx-finding[data-kind="evidence_incomplete"] { border-left: 2px solid var(--rose); }
.cx-finding[data-kind="observation"] { border-left: 2px solid var(--sky); }
.cx-finding[data-kind="strength"] { border-left: 2px solid var(--sage); }
.cx-note { font-size: .8rem; color: var(--faint); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.cx-spin { width: 14px; height: 14px; border: 1px solid var(--gold-line); border-top-color: var(--gold); border-radius: 50%; animation: cxspin .8s linear infinite; display: inline-block; vertical-align: -2px; }
@keyframes cxspin { to { transform: rotate(360deg); } }
.cx-hidden { display: none !important; }
.cx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.cx-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--gold-line); color: var(--bone); padding: 12px 18px; z-index: 100; font-size: .9rem; max-width: calc(100% - 32px); }

/* mobile nav (static header) */
.cx-mnav { position: fixed; inset: 0; z-index: 90; background: rgba(15,17,21,.98); display: flex; flex-direction: column; padding: 32px 24px; gap: 4px; }
.cx-mnav a { color: var(--muted); font-size: 13px; letter-spacing: .24em; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cx-mnav a[aria-current="page"] { color: var(--gold); }
.cx-mnav button { align-self: flex-end; margin-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .cx-meter > span { transition: none; } .cx-spin { animation-duration: 2s; } }
