/* ══ SENTINEL landing: Chapter 4 story layer ════════════════════════════════
   Loaded only from templates/fraud/index.html. Uses tokens from fraud-enterprise.css. */

.sx { --sx-gap: 24px; margin-bottom: 28px; }
.sx * { box-sizing: border-box; }
.sx h2, .sx h3 { font-family: var(--font-serif); color: var(--ink); letter-spacing: -0.015em; }
.sx p { color: var(--ink-3); }
.sx-eyebrow { display: inline-block; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.sx-eyebrow b { color: var(--ink); font-weight: 600; }

/* ── Hero ── */
.sx-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); }
.sx-hero-main { padding: 32px 36px; }
.sx-hero h2 { font-size: clamp(1.625rem, 2.6vw, 2.375rem); line-height: 1.1; margin: 0 0 14px; font-weight: 500; }
.sx-lede { font-size: 1.0625rem; line-height: 1.6; margin: 0 0 22px; max-width: 680px; }
.sx-ctas { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.sx-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 10px 18px; font-size: .875rem; font-weight: 600; border-radius: 2px; text-decoration: none; }
.sx-btn:hover { background: var(--accent); color: #fff; }
.sx-link { font-size: .875rem; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.sx-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-hero-side { background: var(--ink); color: #fff; padding: 32px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.sx-stat-v { font-family: var(--font-serif); font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; font-weight: 500; color: #fff; letter-spacing: -0.03em; }
.sx-stat-l { color: rgba(255,255,255,.82); font-size: .9375rem; line-height: 1.5; margin: 10px 0 6px; }
.sx-stat-s { color: rgba(255,255,255,.55); font-size: .75rem; }
.sx-shift { border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-size: .8125rem; }
.sx-shift span { color: rgba(255,255,255,.65); }
.sx-shift strong { color: #fff; font-weight: 600; }
.sx-shift i { color: var(--cyan); }

/* ── Section heads ── */
.sx-sec { margin-top: 28px; }
.sx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 16px; margin-bottom: 16px; }
.sx-head h3 { font-size: 1.5rem; margin: 0; font-weight: 500; }
.sx-head p { margin: 0; max-width: 560px; font-size: .9375rem; }

/* ── Threat map ── */
.sx-threats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sx-t { background: var(--surface); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; position: relative; transition: background .2s ease; min-width: 0; }
a.sx-t:hover { background: var(--accent-soft); }
.sx-t-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sx-t-ic { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); font-size: 1.0625rem; }
.sx-t-who { font-size: .625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-2); padding: 2px 6px; white-space: nowrap; }
.sx-t-who.sub { color: var(--negative); border-color: rgba(200,38,45,.35); }
.sx-t h4 { font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 600; margin: 4px 0 0; color: var(--ink); }
.sx-t p { font-size: .8125rem; line-height: 1.5; margin: 0; }
.sx-t-sig { font-size: .75rem; color: var(--ink-2); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.sx-t-sig b { color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .625rem; margin-right: 4px; }
.sx-t-go { font-size: .75rem; font-weight: 600; color: var(--accent); }
.sx-t.lead { background: var(--ink); }
.sx-t.lead h4 { color: #fff; font-size: 1.25rem; }
.sx-t.lead p { color: rgba(255,255,255,.75); }
.sx-t.lead .sx-t-ic { background: rgba(255,255,255,.08); color: var(--cyan); }
.sx-t.lead .sx-t-sig { color: rgba(255,255,255,.8); border-top-color: rgba(255,255,255,.2); }
.sx-t.lead .sx-t-sig b { color: rgba(255,255,255,.55); }
.sx-t.lead .sx-t-go { color: var(--cyan); }
a.sx-t.lead:hover { background: #0b2a40; }
.sx-t-all { background: var(--accent-soft); }
a.sx-t-all:hover { background: #E2E8FF; }

/* ── OODA loop ── */
.sx-ooda { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); position: relative; }
.sx-o { padding: 20px 20px 18px; position: relative; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; min-width: 0; transition: background .2s ease; }
.sx-o + .sx-o { border-left: 1px solid var(--line); }
.sx-o:hover { background: var(--surface-2); }
.sx-o + .sx-o::before { content: '\F285'; font-family: 'bootstrap-icons'; position: absolute; left: -11px; top: 26px; width: 22px; height: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .625rem; color: var(--accent); z-index: 1; }
.sx-o-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sx-o-n { font-family: var(--font-serif); font-size: 1rem; color: var(--ink-4); }
.sx-o-live { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.sx-o-live small { font-family: var(--font-sans); font-size: .6875rem; color: var(--ink-4); margin-left: 4px; }
.sx-o h4 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; margin: 0; color: var(--ink); }
.sx-o p { font-size: .8125rem; line-height: 1.5; margin: 0; flex: 1; }
.sx-o-who { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-chip { font-size: .6875rem; font-weight: 600; padding: 3px 8px; border-radius: 2px; display: inline-flex; gap: 5px; align-items: center; }
.sx-chip.agent { background: var(--accent-soft); color: var(--accent); }
.sx-chip.human { background: var(--warning-soft); color: var(--warning); }
.sx-chip.log { background: var(--surface-2); color: var(--ink-3); }
.sx-loop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: var(--surface-2); border: 1px solid var(--line); border-top: 0; font-size: .8125rem; color: var(--ink-2); }
.sx-loop i { color: var(--positive); font-size: 1rem; }
.sx-loop strong { color: var(--ink); }
.sx-loop .sx-link { margin-left: auto; }

/* ── Reading guide ── */
.sx-guide { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.sx-g { border-top: 1px solid var(--line-2); padding-top: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.sx-g:hover h5 { color: var(--accent); }
.sx-g span { font-family: var(--font-serif); color: var(--accent); font-size: .9375rem; }
.sx-g h5 { font-size: .9375rem; font-weight: 600; margin: 4px 0 4px; color: var(--ink); transition: color .2s; }
.sx-g p { font-size: .8125rem; line-height: 1.5; margin: 0; color: var(--ink-3); }

/* ── Console divider ── */
.sx-console { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); scroll-margin-top: 80px; }
.sx-console h3 { font-family: var(--font-serif); font-size: 1.25rem; margin: 0; color: var(--ink); font-weight: 500; }
.sx-console p { margin: 2px 0 0; font-size: .8125rem; color: var(--ink-3); }
.sx-demo { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--warning); background: var(--warning-soft); padding: 4px 8px; white-space: nowrap; }

/* ── Dashboard tweaks on this page ── */
.sx-tablink { text-decoration: none; display: inline-flex; align-items: center; }
.sx-tablink .bi-box-arrow-up-right { font-size: .65em; margin-left: 4px; opacity: .6; }
.sx-note { font-size: .75rem; color: var(--ink-4); margin: 8px 0 0; }
.sx-exp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--surface-3); font-size: .8125rem; }
.sx-exp-bar { grid-column: 1 / -1; height: 4px; background: var(--surface-3); margin-top: -4px; }
.sx-exp-bar i { display: block; height: 100%; background: var(--accent); }
.sx-exp-row:first-child .sx-exp-bar i { background: var(--negative); }

@media (max-width: 1200px) {
    .sx-threats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .sx-hero { grid-template-columns: minmax(0, 1fr); }
    .sx-ooda { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-o:nth-child(3) { border-left: 0; }
    .sx-o:nth-child(n+3) { border-top: 1px solid var(--line); }
    .sx-o:nth-child(3)::before { display: none; }
}
@media (max-width: 600px) {
    .sx-hero-main { padding: 22px 18px; }
    .sx-hero-side { padding: 22px 18px; }
    .sx-threats { grid-template-columns: minmax(0, 1fr); }
    .sx-ooda { grid-template-columns: minmax(0, 1fr); }
    .sx-o + .sx-o { border-left: 0; border-top: 1px solid var(--line); }
    .sx-o + .sx-o::before { left: 20px; top: -11px; content: '\F282'; }
    .sx-guide { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .sx-loop .sx-link { margin-left: 0; }
}
