:root {
  --navy: #0f1035;
  --ink: #1d1e3a;
  --muted: #5b5d7a;
  --bg: #ffffff;
  --bg-alt: #f5f3ff;
  --violet: #7b2ff7;
  --magenta: #f107a3;
  --orange: #ff8a00;
  --teal: #0fb5ae;
  --sky: #2f8cf7;
  --lime: #4caf1a;
  --amber: #e89a00;
  --coral: #f25c54;
  --pink: #d6338a;
  --gradient: linear-gradient(120deg, var(--violet), var(--magenta) 55%, var(--orange));
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; }
p { margin: 0; }
a { color: inherit; }
.wrap { margin: 0 auto; padding: 0 clamp(20px, 5vw, 96px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 16, 53, .92);
  backdrop-filter: blur(8px);
  color: #fff;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand span { color: var(--orange); margin: 0 2px; }
.nav nav { display: flex; gap: 20px; align-items: center; }
.nav nav a { text-decoration: none; font-weight: 600; opacity: .9; }
.nav nav a:hover { opacity: 1; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(241, 7, 163, .3);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(241, 7, 163, .4); }
.btn-small { padding: 8px 18px; box-shadow: none; }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.6); box-shadow: none; }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 110px 0 120px;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #c9b8ff; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.25rem; color: #d8d9ef; margin: 1rem 0 2rem; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 460px; height: 460px; background: var(--violet); top: -140px; right: -80px; }
.b2 { width: 380px; height: 380px; background: var(--magenta); bottom: -180px; right: 220px; opacity: .4; }

/* Sections */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; }

/* Pillars */
.pillars { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 28px; }
.pillar { border-radius: var(--radius); padding: 32px 28px; color: #fff; box-shadow: 0 10px 30px rgba(15, 16, 53, .18); }
.pillar-sec { background: linear-gradient(135deg, #1b2a8f, var(--sky) 60%, var(--teal)); }
.pillar-ai { background: linear-gradient(135deg, var(--violet), var(--magenta) 65%, var(--orange)); }
.pillar h3 { font-size: 1.6rem; font-weight: 800; }
.pillar p { opacity: .95; }
.pillar-tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Standards */
.std-groups { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (min-width: 1040px) { .std-groups { grid-template-columns: repeat(3, 1fr); } }
.std { background: #fff; border-radius: var(--radius); padding: 24px; border-left: 5px solid var(--c); }
.std h3 { font-size: 1.1rem; color: color-mix(in srgb, var(--c) 75%, black); }
.fam-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.fam { flex: 0 0 76px; padding-top: 6px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.std ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.std li {
  font-size: .85rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, white);
  color: color-mix(in srgb, var(--c) 70%, black);
}
.std-cta { background: var(--gradient); color: #fff; border-left: 0; display: flex; flex-direction: column; justify-content: center; }
.std.std-cta h3 { color: #fff; }
.std-cta p { opacity: .95; margin-bottom: 1rem; }
.std-cta a { font-weight: 800; text-decoration: none; }
.std-note { color: var(--muted); font-size: .9rem; margin-top: 12px; }

/* Service cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 5px solid var(--c);
  box-shadow: 0 6px 24px rgba(15, 16, 53, .08);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15, 16, 53, .14); }
.card svg {
  width: 44px; height: 44px; padding: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 15%, white);
  stroke: var(--c); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.1rem; }
.card-cta { background: var(--gradient); color: #fff; border-top: 0; display: flex; flex-direction: column; justify-content: center; }
.card.card-cta p { color: #fff; opacity: .95; margin-bottom: 1rem; }
.card-cta a { font-weight: 800; text-decoration: none; }
.card p { color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 6px 24px rgba(15, 16, 53, .08); }
.num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-weight: 800;
  margin-bottom: 12px;
}
.steps p { color: var(--muted); }

/* Why */
.why { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.why h3 { font-size: 1.3rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.why p { color: var(--muted); }

/* Contact */
.contact { background: var(--gradient); color: #fff; padding: 70px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.contact p { font-size: 1.15rem; opacity: .95; }

.directory {
  list-style: none; padding: 28px 0 0; margin: 36px 0 0;
  border-top: 1px solid rgba(255,255,255,.35);
  display: flex; flex-wrap: wrap; gap: 20px 40px;
}
.directory span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.directory a { display: block; width: fit-content; font-weight: 700; text-decoration: none; }
.directory a:hover { text-decoration: underline; }

.footer { background: var(--navy); color: #a9abc9; padding: 24px 0; font-size: .9rem; }

@media (max-width: 560px) {
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 80px 0 90px; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Inline link + standards CTA links */
.inline-link { font-weight: 700; color: var(--violet); text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.std-cta a { display: block; margin-top: 6px; }

/* Crosswalk page */
.hero-short { padding: 56px 0 56px; }
.steps-tight { margin-bottom: 64px; }
.xw-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tog {
  font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 2px solid var(--t);
  background: var(--t); color: #fff;
}
.tog[aria-pressed="false"] { background: #fff; color: color-mix(in srgb, var(--t) 75%, black); }
.f-iso { --t: var(--sky); }
.f-nist { --t: var(--teal); }
.f-ind { --t: var(--violet); }
.xw-scroll {
  overflow-x: auto; border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(15, 16, 53, .1);
}
.xw-scroll:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.xw { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .85rem; background: #fff; }
.xw th, .xw td { min-width: 130px; padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #ebe8f7; }
.xw thead th {
  
  background: var(--navy); color: #fff; font-weight: 800; white-space: nowrap;
  border-bottom: 4px solid var(--t, var(--orange));
}
.xw thead .rel-h { --t: var(--orange); }
.fam-tag { display: block; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 2px; }
.xw tbody th, .xw .corner {
  position: sticky; left: 0; z-index: 1;
  min-width: 230px; max-width: 260px;
  background: #fff; box-shadow: 2px 0 0 #ebe8f7;
}
.xw .corner { z-index: 2; background: var(--navy); }
.xw .corner .svc { color: #c9b8ff; }
.dom { display: block; font-weight: 800; color: var(--ink); }
.svc { display: block; font-size: .78rem; font-weight: 600; color: var(--violet); margin-top: 2px; white-space: normal; }
.xw tbody tr:nth-child(even) td, .xw tbody tr:nth-child(even) th { background: #faf9ff; }
.xw tbody tr:hover td, .xw tbody tr:hover th { background: #f1ecff; }
.xw td.na { color: #b3b4c8; text-align: center; }
.xw td.rel { min-width: 260px; color: var(--muted); }
.xw-note { color: var(--muted); font-size: .85rem; margin-top: 16px; }

/* Standards: wide tiles + strip */
.std-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .std-wide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-content: start; }
  .std-wide > h3, .std-wide > .std-note { grid-column: 1 / -1; }
  .std-wide > .fam-row:nth-of-type(odd):last-of-type { grid-column: 1 / -1; }
}
.std-strip { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.std-strip p { margin-bottom: 0; }
.strip-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.std-cta .strip-links a { margin-top: 0; }

/* Accent colours (classes instead of inline styles, for CSP) */
.accent-orange { --c: #e07400; }
.accent-teal { --c: var(--teal); }
.accent-sky { --c: var(--sky); }
.accent-violet { --c: var(--violet); }
.accent-lime { --c: var(--lime); }
.accent-coral { --c: var(--coral); }
.accent-amber { --c: var(--amber); }
.accent-pink { --c: var(--pink); }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }

/* Compact tiles: family label above the chips so chips get the full width */
.std:not(.std-wide) .fam-row { flex-direction: column; gap: 6px; margin-top: 14px; }
.std:not(.std-wide) .fam { flex: none; padding-top: 0; }
@media (max-width: 899px) {
  .std .fam-row { flex-direction: column; gap: 6px; margin-top: 14px; }
  .std .fam { flex: none; padding-top: 0; }
}

/* Service cards: even rows at every width (8 cards) */
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* Crosswalk controls: quick-select presets + framework toggles */
.presets, .toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.presets { margin-bottom: 12px; }
.ctl-label { flex: 0 0 auto; min-width: 110px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.preset {
  font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  border: 2px solid var(--navy); background: #fff; color: var(--navy);
}
.preset:hover { background: #f1ecff; }
.preset[aria-pressed="true"] { background: var(--gradient); border-color: transparent; color: #fff; }
.preset:focus-visible, .tog:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.f-also { --t: #c25e00; }
.xw td.rel[hidden], .xw th[hidden] { display: none; }
@media (max-width: 560px) { .ctl-label { flex-basis: 100%; } }
.toggle-rows { display: grid; gap: 8px; margin-bottom: 20px; }
.toggle-rows .toggles { margin-bottom: 0; }
.f-law { --t: var(--pink); }

/* Crosswalk lines (by type) */
.f-mgmt { --t: var(--sky); }
.f-gov { --t: var(--teal); }
.f-fw { --t: var(--violet); }
.f-audit { --t: #b45309; }
.f-threat { --t: var(--coral); }
.f-law { --t: var(--pink); }

/* Compact crosswalk controls */
.presets, .toggles { gap: 6px; }
.presets { margin-bottom: 10px; }
.toggle-rows { gap: 6px; }
.ctl-label { min-width: 168px; font-size: .66rem; }
.preset { font-size: .78rem; padding: 4px 12px; border-width: 1.5px; }
.tog { font-size: .74rem; padding: 3px 10px; border-width: 1.5px; }

/* Crosswalk: slim "how it works" strip */
.section-xw { padding-top: 40px; }
.steps-compact {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.steps-compact li { display: flex; gap: 10px; align-items: baseline; }
.steps-compact .num {
  flex: none; display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-size: .72rem; font-weight: 800;
  transform: translateY(4px);
}
.steps-compact p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.steps-compact strong { color: var(--ink); }

/* Compact page header (crosswalk) */
.hero.hero-short { padding: 28px 0 32px; }
.hero-short .eyebrow { margin-bottom: .5rem; }
.hero-short h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.hero-short .lede { font-size: 1.1rem; margin: .5rem 0 0; }
.hero-short .blob { display: none; }
.hero-short .cta-row { margin-top: 1.1rem; }

/* Standards page */
.sfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.sfilter label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sfilter input {
  font: inherit; font-size: .95rem; flex: 1 1 280px; max-width: 520px;
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid #cfcbe6; background: #fff; color: var(--ink);
}
.sfilter input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sfilter-status { flex-basis: 100%; font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.sjump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 28px; font-size: .85rem; }
.sjump a { color: var(--violet); font-weight: 700; text-decoration: none; }
.sjump a:hover { text-decoration: underline; }
.sgroup { margin-bottom: 32px; scroll-margin-top: 80px; }
.sgroup h2 { font-size: 1.3rem; font-weight: 800; }
.sgroup .count { font-size: .8rem; font-weight: 800; color: #fff; background: var(--gradient); border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.sdesc { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.slist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.slist li { background: #fff; border: 1px solid #ebe8f7; border-left: 4px solid var(--violet); border-radius: 10px; padding: 8px 12px; }
.slist .sn { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); }
.slist .sv { display: block; font-size: .8rem; color: var(--muted); }
.sgroup[hidden], .slist li[hidden] { display: none; }
#iso .slist li { border-left-color: var(--sky); }
#nist .slist li { border-left-color: var(--teal); }
#industry .slist li { border-left-color: var(--violet); }
#threat .slist li { border-left-color: var(--coral); }
#supply .slist li { border-left-color: #e07400; }
#ot .slist li { border-left-color: var(--amber); }
#trade .slist li { border-left-color: var(--lime); }
#ailaw .slist li, #caprivacy .slist li, #privacy .slist li, #reg .slist li { border-left-color: var(--pink); }

/* Home: framework flow + standards teaser */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: none; }
.flow li { position: relative; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 24px rgba(15, 16, 53, .08); }
.flow h3 { font-size: 1.15rem; }
.flow p { color: var(--muted); }
@media (min-width: 900px) {
  .flow li:not(:last-child)::after {
    content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%);
    font-weight: 800; font-size: 1.2rem; color: var(--violet);
  }
}
.flow-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; align-items: center; }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.std-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; }
.std-teaser > div { flex: 1 1 520px; }
.std-teaser .section-sub { margin-bottom: 0; }
.std-teaser .flow-links { margin-top: 0; }

/* Crosswalk intro */
.xw-intro { margin-bottom: 24px; }
.xw-intro h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.xw-intro p { color: var(--muted); margin-top: .6rem; }
.std-examples { margin-top: 24px; color: var(--muted); }
.std-examples .inline-link { white-space: normal; }

/* Emergency banner (home page) */
.topbar { background: #07081f; color: #c9cbe6; font-size: .72rem; line-height: 1.2; }
.topbar-inner { padding-top: 5px; padding-bottom: 5px; text-align: right; }
.topbar a { color: #ff9a8f; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
