/* ==========================================================================
   securmyapp.com — design system
   Mobile-first, dark, high-craft. No external assets or fonts.
   ========================================================================== */

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:where(h1, h2, h3, h4) { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* palette */
  --bg: #080a0f;
  --bg-2: #0c0f16;
  --surface: #11151e;
  --surface-2: #161b26;
  --surface-3: #1c2230;
  --border: #232a38;
  --border-2: #2e3646;
  --text: #eceef3;
  --muted: #9aa5b6;
  --muted-2: #6d7789;

  --brand: #34e2a4;         /* defensive green */
  --brand-2: #22c3c6;       /* cyan */
  --violet: #8b7cf6;        /* Claude-ish accent */
  --brand-ink: #052018;

  --crit: #ff5d6c;
  --high: #ff9f45;
  --med: #ffd23f;
  --low: #57b6ff;
  --ok: #34e2a4;

  --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 50%, var(--violet) 100%);
  --grad-soft: linear-gradient(120deg, rgba(52,226,164,.16), rgba(139,124,246,.16));

  /* type */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;

  /* layout */
  --container: 1140px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px -25px rgba(0,0,0,.8);
  --ring: 0 0 0 3px rgba(52,226,164,.35);

  --header-h: 64px;
}

/* ---- Base -------------------------------------------------------------- */
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    radial-gradient(60rem 40rem at 80% -10%, rgba(139,124,246,.10), transparent 60%),
    radial-gradient(50rem 40rem at 0% 0%, rgba(52,226,164,.08), transparent 55%);
  background-repeat: no-repeat;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* accessibility */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.skip-link {
  position: absolute; left: 0; top: -100%; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Typography helpers ------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
}
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); line-height: 1.6; }
.muted { color: var(--muted); }
.balance { text-wrap: balance; }

h1 { font-size: clamp(2.1rem, 1.5rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.42rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .6rem; }
.section-head p { margin-top: .9rem; color: var(--muted); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .85rem 1.35rem; border-radius: 999px;
  border: 1px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad); color: var(--brand-ink); box-shadow: 0 10px 30px -12px rgba(52,226,164,.7); }
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(52,226,164,.85); transform: translateY(-1px); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--surface-3); border-color: var(--brand); }
.btn--sm { padding: .6rem 1rem; font-size: .9rem; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---- Header / nav ------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -0.02em; font-size: 1.12rem; }
.brand .logo {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  background: var(--grad-soft); border: 1px solid var(--border-2); font-size: 1rem;
}
.brand b { font-weight: 800; }
.nav-links { display: none; align-items: center; gap: .35rem; }
.nav-links a { padding: .5rem .7rem; border-radius: 8px; color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { display: none; align-items: center; gap: .6rem; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
body.nav-open .nav-toggle .x { display: block; }
body.nav-open .nav-toggle .bars { display: none; }

.mobile-menu {
  display: none; border-top: 1px solid var(--border);
  background: var(--bg-2);
}
body.nav-open .mobile-menu { display: block; }
.mobile-menu ul { padding: .5rem var(--gutter) 1.2rem; }
.mobile-menu a { display: block; padding: .8rem .2rem; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; }
.mobile-menu .btn { margin-top: 1rem; width: 100%; }

@media (min-width: 900px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.hero h1 { margin-top: 1rem; }
.hero .lead { margin-top: 1.2rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

/* ---- Terminal ---------------------------------------------------------- */
.terminal {
  background: linear-gradient(180deg, #0c1017, #0a0d13);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--mono);
}
.terminal-bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .dot.r { background: #ff5f57; } .terminal-bar .dot.y { background: #febc2e; } .terminal-bar .dot.g { background: #28c840; }
.terminal-bar .t { margin-left: .5rem; font-size: .78rem; color: var(--muted-2); }
.terminal-body { padding: 1.1rem 1.15rem 1.3rem; font-size: clamp(.76rem, .7rem + .3vw, .86rem); line-height: 1.75; overflow-x: auto; }
.terminal-body .row { white-space: pre; }
.term-prompt { color: var(--brand); } .term-prompt::before { content: "› "; color: var(--violet); }
.term-dim { color: var(--muted-2); }
.term-ok { color: var(--ok); } .term-crit { color: var(--crit); } .term-high { color: var(--high); } .term-med { color: var(--med); } .term-low { color: var(--low); }
.term-bar { color: var(--brand); }

/* ---- Badges / chips ---------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.chip--brand { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--border-2)); background: color-mix(in srgb, var(--brand) 8%, var(--surface-2)); }

.sev {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700;
  padding: .22rem .55rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em;
  border: 1px solid transparent; white-space: nowrap;
}
.sev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sev-critical { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); border-color: color-mix(in srgb, var(--crit) 30%, transparent); }
.sev-high { color: var(--high); background: color-mix(in srgb, var(--high) 12%, transparent); border-color: color-mix(in srgb, var(--high) 30%, transparent); }
.sev-medium { color: var(--med); background: color-mix(in srgb, var(--med) 12%, transparent); border-color: color-mix(in srgb, var(--med) 30%, transparent); }
.sev-low { color: var(--low); background: color-mix(in srgb, var(--low) 12%, transparent); border-color: color-mix(in srgb, var(--low) 30%, transparent); }

/* ---- Standards strip --------------------------------------------------- */
.marquee { border-block: 1px solid var(--border); background: var(--bg-2); }
.marquee .container { text-align: center; padding-block: 1.2rem; }
.marquee .label { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .8rem; }
.std-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .7rem; }
.std { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--muted); padding: .3rem .6rem; border: 1px solid var(--border); border-radius: 7px; }

/* ---- Cards / grids ----------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--border-2); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card .ico { font-size: 1.5rem; margin-bottom: .8rem; display: block; }

.feature .ico {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-size: 1.4rem;
  background: var(--grad-soft); border: 1px solid var(--border-2); margin-bottom: 1rem;
}

/* ---- Domain cards ------------------------------------------------------ */
.domain-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .domain-grid { grid-template-columns: repeat(3, 1fr); } }

.domain-card {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: .7rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem; transition: border-color .2s, transform .2s, background .2s;
  overflow: hidden; color: inherit;
}
.domain-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .25s;
  pointer-events: none;
}
.domain-grid > li { display: flex; }
.domain-card:hover { transform: translateY(-3px); background: var(--surface-2); }
.domain-card:hover::after { opacity: .9; }
.domain-card .dc-top { display: flex; align-items: center; justify-content: space-between; }
.domain-card .dc-ico { font-size: 1.7rem; }
.domain-card .dc-num { font-family: var(--mono); font-size: .78rem; color: var(--muted-2); }
.domain-card .dc-name { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; }
.domain-card .dc-sum { color: var(--muted); font-size: .88rem; }
.domain-card .dc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; }
.domain-card .dc-count { font-family: var(--mono); font-size: .8rem; color: var(--brand); font-weight: 600; }
.domain-card .dc-go { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s, color .2s; }
.domain-card:hover .dc-go { gap: .5rem; color: var(--text); }

/* ---- Stats ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 1.6rem 1.2rem; text-align: center; }
.stat .n { display: block; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .l { display: block; color: var(--muted); font-size: .86rem; margin-top: .5rem; }

/* severity legend bar */
.sevbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.sevbar span { display: block; height: 100%; }
.sevlegend { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1rem; }
.sevlegend .it { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); }
.sevlegend .sw { width: 12px; height: 12px; border-radius: 4px; }

/* ---- Pipeline / steps -------------------------------------------------- */
.steps { display: grid; gap: .9rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem;
  position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .8rem; color: var(--brand); font-weight: 700;
}
.step h3 { margin: .35rem 0 .4rem; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---- Two-phase blocks -------------------------------------------------- */
.phase { display: grid; gap: 1.2rem; }
@media (min-width: 880px) { .phase { grid-template-columns: repeat(2, 1fr); } }
.phase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; }
.phase-card .tag { font-family: var(--mono); font-size: .78rem; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; }
.phase-card h3 { margin: .5rem 0 .8rem; font-size: 1.35rem; }
.phase-card ol, .phase-card ul { display: grid; gap: .7rem; margin-top: .6rem; }
.phase-card li { color: var(--muted); font-size: .95rem; padding-left: 1.5rem; position: relative; }
.phase-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---- Scanner list ------------------------------------------------------ */
.scanner { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.scanner .name { font-weight: 700; font-family: var(--mono); }
.scanner .role { color: var(--muted); font-size: .92rem; }

/* ---- Callout ----------------------------------------------------------- */
.callout { display: grid; gap: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); }
@media (min-width: 820px) { .callout { grid-template-columns: 1fr 1fr; } }
.callout h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.callout p { color: var(--muted); }

/* ---- Install / code ---------------------------------------------------- */
.codeblock {
  background: #0a0d13; border: 1px solid var(--border-2); border-radius: var(--radius);
  font-family: var(--mono); font-size: .88rem; overflow: hidden;
}
.codeblock .cb-head { display: flex; align-items: center; justify-content: space-between; padding: .6rem .9rem; border-bottom: 1px solid var(--border); color: var(--muted-2); font-size: .78rem; }
.codeblock pre { padding: 1rem .95rem; overflow-x: auto; }
.codeblock .line { white-space: pre; }
.codeblock .cmd { color: var(--brand); }
.copy-btn { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .78rem; padding: .25rem .5rem; border-radius: 6px; border: 1px solid var(--border-2); }
.copy-btn:hover { color: var(--text); border-color: var(--brand); }
.copy-btn.copied { color: var(--brand); border-color: var(--brand); }

/* ---- CTA band ---------------------------------------------------------- */
.cta {
  position: relative; text-align: center; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 4vw, 3rem);
  background: var(--grad-soft); border: 1px solid var(--border-2); overflow: hidden;
}
.cta h2 { max-width: 24ch; margin-inline: auto; }
.cta p { color: var(--muted); margin: 1rem auto 0; max-width: 46ch; }
.cta .hero-actions { justify-content: center; }
.cta .codeblock { max-width: 30rem; margin: 1.6rem auto 0; text-align: left; }

/* ---- Breadcrumb -------------------------------------------------------- */
.crumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted-2); font-family: var(--mono); padding-top: 1.5rem; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--border-2); }

/* ---- Domain hero ------------------------------------------------------- */
.dhero { padding-top: 1rem; padding-bottom: clamp(1rem, 3vw, 2rem); }
.dhero .dhead { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.dhero .dbig { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 2rem; background: var(--grad-soft); border: 1px solid var(--border-2); flex-shrink: 0; }
.dhero h1 { font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3.1rem); }
.dhero .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }

/* ---- Reference table --------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.checks { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.checks th, table.checks td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.checks thead th { background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 700; }
table.checks tbody tr:last-child td { border-bottom: none; }
table.checks tbody tr:hover { background: var(--surface); }
table.checks .cname { font-weight: 600; color: var(--text); }
table.checks .cref { font-family: var(--mono); font-size: .8rem; color: var(--muted-2); white-space: nowrap; }
table.checks .cdet { color: var(--muted); }

/* ---- Check list (catches) ---------------------------------------------- */
.catchlist { display: grid; gap: .7rem; }
@media (min-width: 720px) { .catchlist { grid-template-columns: repeat(2, 1fr); } }
.catchlist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1rem; font-size: .95rem; }
.catchlist li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand); margin-top: .05rem; }

/* ---- FAQ (details) ----------------------------------------------------- */
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mk { flex-shrink: 0; width: 22px; height: 22px; position: relative; transition: transform .2s; color: var(--brand); }
.faq summary .mk::before, .faq summary .mk::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq summary .mk::before { top: 50%; left: 3px; right: 3px; height: 2px; transform: translateY(-50%); }
.faq summary .mk::after { left: 50%; top: 3px; bottom: 3px; width: 2px; transform: translateX(-50%); transition: opacity .2s; }
.faq details[open] summary .mk::after { opacity: 0; }
.faq details[open] summary { color: var(--text); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---- Category list (domain) -------------------------------------------- */
.catgrid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .catgrid { grid-template-columns: repeat(3, 1fr); } }
.catitem { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.catitem h3 { font-size: 1rem; margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem; }
.catitem h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.catitem p { color: var(--muted); font-size: .9rem; }

/* ---- Footer ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer .brand { margin-bottom: .8rem; }
.footer p { color: var(--muted); font-size: .92rem; max-width: 28ch; }
.footer .foot-h { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: .9rem; font-weight: 700; }
.footer ul { display: grid; gap: .6rem; }
.footer li a { color: var(--muted); font-size: .92rem; }
.footer li a:hover { color: var(--brand); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: .85rem; }
.footer-bottom address { font-style: normal; }
.footer-bottom a { color: inherit; text-decoration: underline; }
.footer-bottom a:hover { color: var(--brand); }

/* ---- Related ----------------------------------------------------------- */
.related-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Reveal (intro micro-interaction) ----------------------------------
   Content is fully visible by default (opacity/visibility never touched), so
   it is robust everywhere. On browsers that honor motion, elements that
   scroll into view get a one-time upward "settle" via transform only — a
   frozen or disabled timeline can only ever leave content in its final,
   visible position, never hidden.
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transform: translateY(14px); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { transform: none; }
}

/* ---- Prose (misc) ------------------------------------------------------ */
.prose p + p { margin-top: 1rem; }
hr.rule { border: none; border-top: 1px solid var(--border); margin-block: clamp(2.5rem, 6vw, 4rem); }

/* ---- Utilities & semantic-markup adjustments --------------------------- */
.band { background: var(--bg-2); border-block: 1px solid var(--border); }
.container.narrow { max-width: 820px; }
.center { justify-content: center; }
.center-flex { justify-content: center; }
.mt { margin-top: 1rem; }
.fine { font-size: .85rem; margin-top: 1.2rem; }

/* eyebrow spacing before its heading */
.section-head .eyebrow, .callout .eyebrow, .dhead .eyebrow, .cta .eyebrow { display: inline-flex; margin-bottom: .55rem; }

/* readable prose + the mother-page link stands out */
.prose { max-width: 68ch; }
.intro-lead { color: var(--muted); font-size: clamp(1.02rem, .98rem + .3vw, 1.12rem); line-height: 1.7; }
.prose a, .intro-lead a, .faq-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .intro-lead a:hover { color: var(--brand-2); }

/* coverage */
#coverage .stats { margin-bottom: 1.6rem; }
.cov-card h3 { margin-bottom: 1rem; }

/* domain hero eyebrow */
.dhead .eyebrow { margin-bottom: .25rem; }

/* back-to-mother link (SEO silo, explicit up-link) */
.back-mother { margin-top: 1.6rem; }
.back-mother a { display: inline-flex; align-items: center; gap: .45rem; color: var(--brand); font-weight: 600; }
.back-mother a:hover { gap: .65rem; }

/* 404 */
.notfound { text-align: center; min-height: 52vh; display: grid; place-content: center; gap: .4rem; }

/* callout headings sit tight under their eyebrow */
.callout h3 { font-size: 1.3rem; }
.phase-card .tag { display: inline-block; margin-bottom: .4rem; }

/* home CTA → guide link */
.gs-guide { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.gs-guide a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ==== Documentation / guide page ======================================== */
.doc-layout { display: grid; grid-template-columns: 1fr; gap: 1.6rem; padding-block: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
}

/* table of contents */
.doc-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
@media (min-width: 1000px) {
  .doc-toc { position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100vh - var(--header-h) - 2rem); overflow: auto; background: transparent; border: none; padding: 0; }
}
.toc-title { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .7rem; }
.doc-toc ol { display: grid; gap: .1rem; }
.doc-toc a { display: block; padding: .4rem .6rem; border-radius: 7px; color: var(--muted); font-size: .9rem; border-left: 2px solid transparent; }
.doc-toc a:hover { color: var(--text); background: var(--surface-2); }
@media (min-width: 1000px) { .doc-toc a:hover { border-left-color: var(--brand); background: transparent; } }

/* content column */
.doc-content { max-width: 760px; min-width: 0; }
.doc-content section { scroll-margin-top: calc(var(--header-h) + 1rem); padding-top: 1.5rem; margin-top: 1.5rem; }
.doc-content section + section { border-top: 1px solid var(--border); }
.doc-content h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); margin-bottom: .8rem; }
.doc-content h3 { font-size: 1.12rem; margin: 1.6rem 0 .6rem; }
.doc-content p { color: var(--muted); margin-bottom: .9rem; }
.doc-content p code, .doc-content li code, .note code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: .08em .38em; font-family: var(--mono); font-size: .86em; color: var(--text); white-space: nowrap; }
.doc-content .codeblock { margin: 1rem 0 1.2rem; }
.doc-content .table-wrap { margin: 1rem 0 1.2rem; }
.doc-content a:not(.btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.doc-content a:not(.btn):hover { color: var(--brand-2); }

/* lists */
.doc-content .numbered { list-style: decimal; padding-left: 1.5rem; display: grid; gap: .55rem; margin: 0 0 1.1rem; }
.doc-content .numbered li { color: var(--muted); padding-left: .2rem; }
.doc-content .ck, .doc-content .sev-explain { display: grid; gap: .6rem; margin: 0 0 1.1rem; }
.doc-content .ck li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.doc-content .ck li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.sev-explain li { display: flex; align-items: center; gap: .6rem; color: var(--muted); }

/* note / callout boxes */
.note { display: flex; gap: .8rem; padding: .95rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--border-2); background: var(--surface); margin: 1rem 0 1.2rem; border-left-width: 3px; }
.note-ico { flex-shrink: 0; font-size: 1.1rem; line-height: 1.5; }
.note-body { color: var(--muted); font-size: .95rem; }
.note-body :last-child { margin-bottom: 0; }
.note--tip { border-left-color: var(--brand); }
.note--warn { border-left-color: var(--high); }
.note--info { border-left-color: var(--low); }

/* requirement badges */
.reqb { display: inline-block; font-size: .74rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; white-space: nowrap; }
.req-yes { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.req-rec { color: var(--med); background: color-mix(in srgb, var(--med) 14%, transparent); }
.req-opt { color: var(--muted); background: var(--surface-2); }

.sev-crit-bg{background:var(--crit)}.sev-high-bg{background:var(--high)}.sev-med-bg{background:var(--med)}.sev-low-bg{background:var(--low)}
