/* Coalfire Speak Up. Brand: Orange #E04A26, Black #141F20, Grey #F4F4F4, Arial.
   No web fonts, no external assets: nothing on this site contacts a third party. */

:root {
  --orange: #E04A26;
  --orange-dark: #B83A1C;
  --black: #141F20;
  --ink: #26302f;
  --muted: #5b6566;
  --line: #dfe2e2;
  --grey: #F4F4F4;
  --white: #fff;
  --good: #569122;
  --warn: #ED6F13;
  --crit: #AA2B04;
  --info: #02536C;
  --radius: 10px;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--white); }
a { color: var(--orange-dark); }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--black); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- header / footer ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { width: 190px; height: auto; }
.brand .prog { border-left: 2px solid var(--line); padding-left: 18px; font-weight: 700; color: var(--black); font-size: 1.05rem; white-space: nowrap; }
.badge-secure { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--good); background: #eef6e7; border: 1px solid #cfe5bb; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.badge-secure svg { width: 14px; height: 14px; }
.topnav { display: flex; gap: 20px; align-items: center; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.topnav a:hover { color: var(--orange); }

footer.site { background: var(--black); color: #c9cfcf; margin-top: 72px; padding: 40px 0; font-size: .88rem; }
footer.site a { color: #fff; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
footer.site img { width: 160px; margin-bottom: 14px; }

/* ---------- hero ---------- */
.hero { background: var(--black); color: #e8ecec; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -60px; width: 520px; height: 600px; background: var(--orange); opacity: .08; clip-path: var(--hex); }
.hero .wrap { padding-top: 72px; padding-bottom: 80px; position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 1.2rem; max-width: 680px; color: #cdd3d3; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--orange); margin-bottom: 14px; display: block; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .assure { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; font-size: .92rem; color: #b9c1c1; }
.hero .assure span::before { content: "✓"; color: var(--orange); font-weight: 900; margin-right: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 1rem var(--sans); padding: 14px 26px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { background: #fff; color: var(--black); border-color: var(--line); }
.btn-outline:hover { border-color: var(--black); color: var(--black); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-link { background: none; border: 0; color: var(--orange-dark); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.sunk { background: var(--grey); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2::after { content: ""; display: block; width: 48px; height: 4px; background: var(--orange); margin-top: 14px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 2px; }
.card p:last-child { margin-bottom: 0; }

.hexicon { width: 46px; height: 52px; clip-path: var(--hex); background: var(--black); display: grid; place-items: center; margin-bottom: 16px; }
.hexicon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .hexicon { background: var(--orange); }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
ol.steps li { counter-increment: s; position: relative; padding-top: 70px; }
ol.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 52px; height: 58px; background: var(--orange); color: #fff; font-weight: 900; font-size: 1.4rem; display: grid; place-items: center; clip-path: var(--hex); }

.callout { border-left: 4px solid var(--orange); background: #fff6f3; padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout.info { border-color: var(--info); background: #eef5f8; }
.callout.good { border-color: var(--good); background: #f1f7ea; }
.callout.warn { border-color: var(--warn); background: #fff4ea; }
.callout h3 { margin-bottom: 8px; }
.callout ul { margin: 0; padding-left: 20px; }
.callout li { margin: 4px 0; }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 14px; background: var(--orange); clip-path: var(--hex); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; }

/* ---------- forms ---------- */
.page-head { background: var(--grey); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.page-head h1 { font-size: 2.1rem; }
form.stack { display: grid; gap: 28px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 28px; margin: 0; background: #fff; }
legend { font-weight: 700; font-size: 1.15rem; color: var(--black); padding: 0 10px; margin-left: -10px; display: flex; align-items: center; gap: 12px; }
legend .n { width: 30px; height: 34px; background: var(--black); color: #fff; clip-path: var(--hex); display: inline-grid; place-items: center; font-size: .95rem; }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field:first-of-type { margin-top: 8px; }
label { font-weight: 700; color: var(--black); font-size: .95rem; }
label .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
input[type=text], input[type=password], input[type=email], select, textarea {
  width: 100%; font: 1rem var(--sans); color: var(--ink); padding: 12px 14px; border: 1.5px solid #c9cfcf; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(224,74,38,.15); }
textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; margin-top: 10px; font-weight: 400; }
.choice:hover { border-color: #b7bebe; }
.choice input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.choice strong { display: block; color: var(--black); }
.choice:has(input:checked) { border-color: var(--orange); background: #fff8f6; }
input[type=checkbox], input[type=radio] { accent-color: var(--orange); }

.dropzone { display: block; border: 2px dashed #c9cfcf; border-radius: var(--radius); padding: 26px; text-align: center; background: var(--grey); cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--orange); background: #fff6f3; }
.files { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.files li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: .9rem; }
.files .meta { grid-column: 1 / -1; font-size: .82rem; }
.lvl-removed { color: var(--good); }
.lvl-partial { color: var(--warn); }
.lvl-none { color: var(--crit); }

.strength { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.strength > i { display: block; height: 100%; width: 0; background: var(--crit); transition: width .2s, background .2s; }

.form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.error { color: var(--crit); font-weight: 700; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- receipt ---------- */
.receipt { background: var(--black); color: #fff; border-radius: 14px; padding: 36px; text-align: center; }
.receipt .code { font: 900 clamp(1.6rem, 5vw, 2.6rem) var(--mono); letter-spacing: .08em; color: #fff; margin: 14px 0; user-select: all; }
.receipt .ref { color: #b9c1c1; }

/* ---------- conversation ---------- */
.thread { display: grid; gap: 14px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; max-width: 88%; }
.msg.me { justify-self: end; background: #fff8f6; border-color: #f3c9bd; }
.msg.note { background: #fffbea; border-color: #f0e2a6; max-width: 100%; }
.msg .who { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.msg .body { white-space: pre-wrap; word-wrap: break-word; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--grey); color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.tag.good { background: #e6f2db; color: #3c6a14; }
.tag.warn { background: #fde9d6; color: #9a4507; }
.tag.crit { background: #f9dcd3; color: var(--crit); }
.tag.info { background: #dcecf2; color: var(--info); }
.tag.orange { background: var(--orange); color: #fff; }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
dl.kv dt { font-weight: 700; color: var(--black); }
dl.kv dd { margin: 0; white-space: pre-wrap; word-wrap: break-word; }

/* ---------- investigator portal ---------- */
.portal-bar { background: var(--black); color: #fff; }
.portal-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.portal-bar img { width: 150px; }
.portal-bar .who { font-size: .88rem; color: #c9cfcf; display: flex; gap: 14px; align-items: center; }
.portal-bar .who button { color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 28px 0 22px; }
.tabs button { background: none; border: 0; font: 700 .98rem var(--sans); padding: 12px 18px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected=true] { color: var(--black); border-color: var(--orange); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; border-top: 4px solid var(--black); }
.kpi.alert { border-top-color: var(--crit); }
.kpi .v { font-size: 2rem; font-weight: 900; color: var(--black); line-height: 1.1; }
.kpi .l { font-size: .85rem; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data th { background: var(--black); color: #fff; text-align: left; padding: 11px 14px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.data td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: #fff8f6; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); margin-right: 6px; }
.case-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.side { display: grid; gap: 16px; position: sticky; top: 20px; }
.fp { font-family: var(--mono); background: var(--grey); padding: 3px 8px; border-radius: 4px; font-size: .85rem; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--black); color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 700; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.center-card { max-width: 480px; margin: 64px auto; }

@media (max-width: 860px) {
  .grid-3, .grid-2, ol.steps, .row2, .kpis, .case-layout, footer.site .wrap { grid-template-columns: 1fr; }
  .brand .prog, .topnav a.hide-sm { display: none; }
  .brand img { width: 150px; }
  .side { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* utilities (inline style attributes are blocked by the CSP) */
.mb0 { margin-bottom: 0 !important; }
.mt0 { margin-top: 0 !important; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 28px; }
.right { text-align: right; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.text-white { color: #fff; }
.muted-light { color: #b9c1c1; }
textarea.short { min-height: 80px; }
a.btn.disabled { opacity: .45; pointer-events: none; }
.inv-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 8px; margin-top: 10px; font-weight: 400; cursor: pointer; }
.inv-row:has(input:not(:checked)) { background: var(--grey); color: var(--muted); text-decoration: line-through; }
.inv-row input { width: 18px; height: 18px; }
.portal-bar .brand .prog { color: #fff; border-color: rgba(255,255,255,.3); }
