/* Security subsite (Habeas and Aegis): additions on top of the shared Forensic Intelligence stylesheet
   (../assets/css/site.css). Only subsite-specific stages, illustrations and tables live here. */

:root {
  --ae-navy: #0b1f3f;
  --ae-blue: #1f7fd6;
  --ae-sky: #6cbcf2;
  --ae-ember: #f0532d;
  --ae-slate: #141c21;
  --ae-slate-2: #1e2a31;
  --ae-cyan: #62d2e3;
}

/* ---------------------------------------------------------------- Family hub */
.stage-aegis {
  background:
    radial-gradient(700px 420px at 22% 0%, rgba(31, 127, 214, .55) 0%, rgba(31, 127, 214, 0) 70%),
    radial-gradient(700px 420px at 80% 100%, rgba(98, 210, 227, .35) 0%, rgba(98, 210, 227, 0) 70%),
    #0a1218;
  min-height: 0; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 64px);
}
.family { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 56px); flex-wrap: wrap; }
.family figure { margin: 0; text-align: center; color: #fff; }
.family img { width: clamp(120px, 17vw, 200px); height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); background: #fbfbf8; }
.family figcaption { margin-top: 16px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.family figcaption small { display: block; font-weight: 400; font-size: 14px; color: rgba(255, 255, 255, .66); margin-top: 2px; }
.family .plus { color: rgba(255, 255, 255, .4); font-size: 44px; font-weight: 300; line-height: 1; margin-bottom: 48px; }

.tile--recovery { background: linear-gradient(180deg, #eaf4ff 0%, #cfe5fb 100%); }
.tile--decathlon { background: var(--ae-slate); color: #fff; }
.tile--decathlon p { color: rgba(255, 255, 255, .72); }
.tile--decathlon .textlink { color: var(--ae-cyan); }
.tile-art .ae-icon { width: min(230px, 56%); height: auto; aspect-ratio: 1; border-radius: 22%; margin-bottom: 40px; background: #fbfbf8; box-shadow: 0 24px 50px rgba(11, 31, 63, .22); }
.tile--decathlon .tile-art .ae-icon { background: none; box-shadow: none; border-radius: 0; }

.compare-card .cc-head img { background: #fbfbf8; }
.compare-card .price { font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin: 18px 0 6px; }
.compare-card .btn, .compare-card .textlink { margin-top: 24px; align-self: flex-start; }

/* ---------------------------------------------------------------- Recovery */
.stage-recovery {
  background:
    radial-gradient(900px 500px at 55% 0%, #2b8be0 0%, rgba(43, 139, 224, 0) 70%),
    radial-gradient(600px 400px at 100% 100%, rgba(240, 83, 45, .45) 0%, rgba(240, 83, 45, 0) 60%),
    var(--ae-navy);
}
.rv-body { display: grid; grid-template-columns: 180px 1fr; min-height: 350px; }
.rv-side { background: #f6f8fa; border-right: 1px solid #e7ebef; padding: 16px 10px; font-size: 13px; }
.rv-side h5 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #7b8894; margin: 0 8px 6px; font-weight: 700; }
.rv-side div { padding: 7px 10px; border-radius: 8px; color: #3b4751; }
.rv-side div.on { background: var(--ae-blue); color: #fff; font-weight: 600; }
.rv-main { padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.rv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; color: #67788a; }
.rv-head b { font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.rv-job { border: 1px solid #e3e8ed; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; font-size: 13px; }
.rv-job .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.rv-job .name { font-weight: 600; font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.rv-job small { color: #67788a; font-size: 12px; }
.rv-bar { height: 6px; border-radius: 3px; background: #e8edf2; overflow: hidden; }
.rv-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ae-blue), var(--ae-sky)); }
.rv-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #e6f0fb; color: #1463ad; white-space: nowrap; }
.rv-pill.g { background: var(--green-bg); color: var(--green); }
.rv-pill.f { background: #fdeee9; color: #b83a1b; }

.rc-rv { background: linear-gradient(135deg, #eaf4ff, #cfe5fb); }
.rc-rv-2 { background: linear-gradient(135deg, #fff1ec, #ffdccf); }
.rc-rv-3 { background: var(--ae-navy); }
.rc-word { font: 700 15px/1 var(--mono); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 24px; }
.rc-word span { background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); color: var(--ae-navy); }
.rc-rv-3 .rc-word span { background: rgba(255, 255, 255, .1); color: #d6e9fb; box-shadow: none; }
.rc-rv-2 .rc-word span { color: #9c3415; }

.mask { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 440px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.mask-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.mask-row code { font: 600 15px/1 var(--mono); background: var(--wash); padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.mask-row.total { border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink); font-weight: 600; }

.chain { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.chain div { background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.chain em { font-style: normal; font: 600 12px/1 var(--mono); color: var(--ae-blue); white-space: nowrap; }
.chain .arrow { background: none; box-shadow: none; padding: 0; justify-content: center; color: var(--ink-3); font-size: 16px; line-height: 1; }

.fmt-wrap { overflow-x: auto; border-radius: var(--radius); background: #fff; }
.fmt { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
.fmt th { text-align: start; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fmt td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.fmt tr:last-child td { border-bottom: 0; }
.fmt td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.fmt .tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--wash); color: var(--ink-2); white-space: nowrap; }
.fmt .tag.free { background: var(--green-bg); color: var(--green); }

/* ---------------------------------------------------------------- Decathlon */
.stage-decathlon {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(98, 210, 227, .42) 0%, rgba(98, 210, 227, 0) 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(120, 130, 200, .35) 0%, rgba(120, 130, 200, 0) 60%),
    #0a1014;
}
.dc-body { display: grid; grid-template-columns: 176px 1fr; min-height: 360px; font-size: 13px; }
.dc-side { background: #1a1c22; border-right: 1px solid #2b2c35; padding: 16px 10px; }
.dc-side h5 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #7d8090; margin: 0 8px 6px; font-weight: 700; }
.dc-side div { padding: 6px 10px; border-radius: 8px; color: #b9bbc8; display: flex; justify-content: space-between; }
.dc-side div.on { background: rgba(98, 210, 227, .16); color: var(--ae-cyan); font-weight: 600; }
.dc-side div span { color: #6f7283; font-family: var(--mono); font-size: 11.5px; }
.dc-main { padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.dc-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dc-head b { font-size: 16px; letter-spacing: -0.01em; }
.dc-scope { font-size: 11.5px; font-weight: 700; color: #7ee2a8; background: rgba(126, 226, 168, .12); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.dc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dc-kpi { background: #20222a; border-radius: 10px; padding: 10px 12px; }
.dc-kpi small { display: block; color: #8a8d9d; font-size: 11px; }
.dc-kpi b { font-size: 20px; letter-spacing: -0.02em; }
.dc-kpi.c b { color: #ff7a6b; } .dc-kpi.h b { color: #ffb37a; } .dc-kpi.m b { color: #ffd480; } .dc-kpi.v b { color: #7ee2a8; }
.dc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dc-table th { text-align: left; color: #7d8090; font-weight: 600; padding: 6px 8px; border-bottom: 1px solid #2b2c35; font-size: 11px; }
.dc-table td { padding: 8px; border-bottom: 1px solid #24262e; color: #d5d7e2; }
.dc-table td:nth-child(3) { font-family: var(--mono); font-size: 11.5px; color: #9a9cab; }
.sev { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.sev.c { background: rgba(255, 122, 107, .16); color: #ff8f82; }
.sev.h { background: rgba(255, 179, 122, .16); color: #ffb37a; }
.sev.m { background: rgba(255, 212, 128, .14); color: #ffd480; }
.sev.ok { background: rgba(126, 226, 168, .12); color: #7ee2a8; }

.disc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: disc; }
.disc > div { background: #fff; border-radius: var(--radius); padding: 24px 22px 26px; counter-increment: disc; }
.disc > div::before { content: counter(disc, decimal-leading-zero); display: block; font: 600 13px/1 var(--mono); color: #0e8a9c; margin-bottom: 18px; }
.disc h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.25; }
.disc p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }
@media (max-width: 1180px) { .disc { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .disc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .disc { grid-template-columns: 1fr; } }

.path { display: grid; gap: 0; width: 100%; max-width: 400px; }
.path .node { background: #20222a; color: #e8e8ee; border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.path .node em { font-style: normal; font: 600 11.5px/1 var(--mono); color: var(--ae-cyan); white-space: nowrap; }
.path .node.goal { background: rgba(255, 122, 107, .16); color: #ffc2ba; }
.path .node.goal em { color: #ff8f82; }
.path .edge { width: 2px; height: 18px; background: #3a3d49; margin: 0 auto; }

.gate { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.gate small { color: var(--ink-3); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.gate h4 { font-size: 18px; letter-spacing: -0.015em; margin: 8px 0 6px; }
.gate p { font-size: 14px; color: var(--ink-2); margin: 0; }
.gate .acts { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.gate .acts span { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 99px; background: var(--wash); color: var(--ink); }
.gate .acts span.go { background: var(--blue); color: #fff; }
.gate .acts span.stop { background: #fdeee9; color: #b83a1b; }

.rc-dc { background: var(--ae-slate); }
.rc-dc-2 { background: linear-gradient(135deg, #e6f7fa, #cdeef3); }
.rc-dc .rc-word span { background: rgba(255, 255, 255, .08); color: #c9eef4; box-shadow: none; }
.rc-dc-2 .rc-word span { color: #0b5f6c; }

@media (max-width: 640px) {
  .rv-body, .dc-body { grid-template-columns: 1fr; }
  .rv-side, .dc-side { display: none; }
  .dc-kpis { grid-template-columns: repeat(2, 1fr); }
  .dc-table th:nth-child(3), .dc-table td:nth-child(3) { display: none; }
  .family .plus { display: none; }
}
