/* Node2Shell portal — TrendAI visual language: Gotham headings, Work Sans body, black/red, layered surfaces. */

/* ---------- Fonts ---------- */
/*
 * Gotham — Latin locale headings (en, es, de, fr, it, pt, pl)
 *
 * Licensed from Hoefler & Co. Self-hosted for GDPR compliance.
 * Weight mapping: Light = 300, Book = 400, Medium = 500, Bold = 700
 * font-display: swap — show metric-matched fallback immediately, swap when loaded.
 * unicode-range: Latin + Latin Extended — covers Western European, Polish, and
 * Portuguese diacritics. CJK/Arabic/Cyrillic pages never download these files.
 */

@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("/fonts/gotham/Gotham-Light.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0100-017E, U+0180-024F, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/gotham/Gotham-Book.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0100-017E, U+0180-024F, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/gotham/Gotham-Medium.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0100-017E, U+0180-024F, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/gotham/Gotham-Bold.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0100-017E, U+0180-024F, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens & base ---------- */
:root {
  --red: #d71920;
  --red-dark: #ae1218;
  --red-deep: #6f0000;
  --red-glow: #ff999d;
  --red-soft: #fdeeee;
  --ink: #0b0b0c;
  --text: #1d1d1d;
  --body: #4b4b4b;
  --muted: #636363;
  --border: #e3e3e3;
  --surface: #f5f5f5;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --result-color: #6f6f6f;
  --result-tint: color-mix(in srgb, #c2c2c2 28%, transparent);
  --page-bg: #fff;
  --panel-bg: #fff;
  --panel-border: var(--border);
  --panel-shadow: rgba(0, 0, 0, .5);
  --panel-shadow-soft: rgba(0, 0, 0, .12);
  --input-bg: #fafafa;
  --input-border: #d2d2d2;
  --input-border-hover: #9d9d9d;
  --input-placeholder: #8a8a8a;
  --chip-bg: #111;
  --chip-text: #fff;
  --row-hover: #fafafa;
  --divider: #d1d1d1;
  --overlay-strong: #000;
  color-scheme: light dark;
  font-family: 'Work Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f3f3;
    --text: #f1f1f1;
    --body: #f1f1f1;
    --muted: #c8c8c8;
    --border: #333335;
    --surface: #1a1a1b;
    --page-bg: #0b0b0c;
    --panel-bg: #19191a;
    --panel-border: #2e2e30;
    --panel-shadow: rgba(0, 0, 0, .7);
    --panel-shadow-soft: rgba(0, 0, 0, .35);
    --input-bg: #222224;
    --input-border: #3a3a3c;
    --input-border-hover: #55555a;
    --input-placeholder: #9a9a9a;
    --chip-bg: #2a2a2c;
    --chip-text: #f3f3f3;
    --row-hover: #222224;
    --divider: #3a3a3c;
    --overlay-strong: #000;
    --red-soft: #2a1414;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
#top { scroll-margin-top: 0; }
body { margin: 0; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .hero-tagline { font-family: Gotham, "Work Sans", Arial, sans-serif; font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 6px; }
.site-header :focus-visible, .hero :focus-visible, .cta-split-section :focus-visible, .clarity-section :focus-visible, .site-footer :focus-visible, .promo-banner :focus-visible { outline-color: #fff; }

svg.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 15px; background: #fff; z-index: 100; border-radius: 8px; }
.skip-link:focus { top: 10px; }

.eyebrow { color: var(--red); font-size: 13px; line-height: 1.5; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.kicker { display: inline-block; color: var(--red); font-size: 13px; font-weight: 600; margin-bottom: 14px; }

/* ---------- Buttons & links ---------- */
.button { min-height: 52px; border-radius: 12px; padding: 14px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 600; border: 1px solid transparent; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease); }
.button .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.button:hover .icon { transform: translateX(4px); }
.button:active { transform: translateY(1px); }
.primary { background: var(--red); color: #fff; }
.primary:hover { background: var(--red-dark); }
.ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.ghost:hover { background: #fff; color: #000; border-color: #fff; }
.white-button { color: var(--red); background: #fff; white-space: nowrap; padding-inline: 22px; }
.white-button:hover { background: var(--red-soft); }
.text-link { background: none; border: 0; padding: 0; color: var(--red); display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--red-deep); text-decoration: underline; text-underline-offset: 4px; }
.inline-link { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; font-weight: 500; }
.inline-link:hover { color: var(--red-dark); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .78); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 168px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions a { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none; white-space: nowrap; color: #fff; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.header-trial { background: var(--red); }
.header-trial:hover { background: var(--red-dark); }
.header-contact { border: 1px solid rgba(255, 255, 255, .5); }
.header-contact:hover { background: #fff; color: #000; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #000; color: #fff; margin-top: -77px; padding: 161px 0 176px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, #000 0% 42%, #020106 55%, #040710 64%, #060a27 74%, #0e1645 86%, #121c51 94%, #0f1340 100%); }
.hero-bg:before { content: ''; position: absolute; width: 920px; height: 920px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 28, 81, .45), rgba(8, 14, 40, .18) 46%, transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.hero-bg:after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(96, 124, 210, .32) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 124, 210, .32) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 52% 78% at 84% 36%, #000 8%, transparent 72%); mask-image: radial-gradient(ellipse 52% 78% at 84% 36%, #000 8%, transparent 72%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; align-items: center; }
.hero-content { min-width: 0; container-type: inline-size; }
.hero h1 { font-weight: 700; }
.hero .eyebrow { width: fit-content; color: #f1d4d5; font-size: 12px; font-weight: 500; padding: 7px 14px 7px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .05); backdrop-filter: blur(6px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(215, 25, 32, .7); animation: pulse 2.2s ease-out infinite; }
.hero-tagline { display: block; margin-top: 28px; font-size: clamp(34px, 10.4cqi, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.hero-tagline em { display: block; white-space: nowrap; font-style: normal; background: linear-gradient(95deg, var(--red) 0%, #e3622f 55%, #f0973d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { margin-top: 28px; max-width: 520px; font-size: 19px; line-height: 1.6; color: #c8c8c8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-cta .button { min-height: 44px; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; box-shadow: none; }
.hero-cta .button:hover, .hero-cta .button:active { box-shadow: none; }
.hero-cta .ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero-cta .ghost:hover, .hero-cta .ghost:focus-visible { background: #fff; color: #000; border-color: #fff; }
.hero-facts { list-style: none; display: flex; gap: 40px; margin: 52px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-facts li { display: grid; gap: 4px; }
.hero-facts strong { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hero-facts small { font-size: 15px; font-weight: 500; color: #9a9a9a; margin-left: 2px; }
.hero-facts span { font-size: 13px; color: #9a9a9a; }

.hero-art { min-width: 0; display: grid; place-items: center; }
.attack-figure { width: min(540px, 100%); min-width: 0; margin: 0; padding: 25px; border: 1px solid #ffffff30; border-radius: 22px; background: linear-gradient(140deg, #252630f5, #101117f5); box-shadow: 0 32px 80px #0008; }
.attack-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 20px; }
.attack-heading b { font: 600 12px var(--mono); letter-spacing: .015em; color: #eee; }
.attack-heading>span { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #b3b9cc; text-align: right; }
.attack-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; padding: 17px; border: 1px solid #ffffff26; border-radius: 12px; background: #ffffff04; }
.attack-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #ffffff2b; border-radius: 11px; background: #ffffff08; font: 700 16px var(--mono); color: #ccd3e6; }
.attack-step small { display: block; margin-bottom: 6px; color: #b6bbc8; font: 10px var(--mono); letter-spacing: .1em; }
.attack-step strong { display: block; font-size: 16px; line-height: 1.35; font-weight: 700; color: #fff; }
.attack-step p { color: #b6bbc8; font-size: 12px; line-height: 1.55; margin-top: 5px; }
.attack-decoder { border-color: #d719207a; background: linear-gradient(100deg, #d719201c, #ffffff03); }
.attack-decoder .attack-icon { border-color: #d7192080; color: #ff999d; background: #d7192018; }
.attack-impact { border-color: #e7a55658; }
.attack-impact .attack-icon { color: #f4bf7c; border-color: #e7a55658; background: #e7a5560b; }
.attack-connector { position: relative; height: 27px; margin-left: 38px; border-left: 1px solid #7a829e; }
.attack-connector:after { content: ''; position: absolute; width: 6px; height: 6px; left: -4px; bottom: 4px; border-right: 1px solid #a5adc8; border-bottom: 1px solid #a5adc8; transform: rotate(45deg); }
.attack-figure figcaption { border-top: 1px solid #ffffff20; margin-top: 19px; padding-top: 15px; font-size: 11px; color: #b6bbc8; line-height: 1.6; }
.attack-figure figcaption:before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #a9b5d3; vertical-align: 1px; }

/* ---------- Checker panel ---------- */
.checker-section { position: relative; z-index: 2; margin-top: -104px; padding: 28px 44px 44px; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 28px; box-shadow: 0 50px 100px -40px var(--panel-shadow), 0 8px 24px -12px var(--panel-shadow-soft); }
.checker-section:before { content: ''; position: absolute; left: 50%; top: -1px; width: min(800px, 60%); height: 8px; transform: translateX(-50%); pointer-events: none; background: linear-gradient(90deg, var(--red) 51%, #ff9500 90%); filter: blur(7px); clip-path: inset(-24px -24px 100%); }

.scan-modes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; margin-bottom: 44px; align-items: stretch; }
.scan-modes button, .scan-modes .scan-protection { position: relative; text-align: left; border: 1px solid var(--panel-border); border-radius: 14px; background: var(--panel-bg); padding: 18px 60px 18px 22px; display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.scan-modes button:after { content: ''; position: absolute; right: 22px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid var(--input-border-hover); background: var(--panel-bg); transition: all .2s var(--ease); }
.scan-modes button:hover, .scan-modes .scan-protection:hover { border-color: var(--input-border-hover); transform: translateY(-1px); }
.scan-modes strong { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 12px; font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.scan-modes button > span, .scan-modes .scan-protection > span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.scan-modes [aria-pressed=true] { border-color: var(--red); background: linear-gradient(180deg, color-mix(in srgb, var(--red) 6%, var(--panel-bg)), var(--panel-bg)); box-shadow: 0 0 0 1px var(--red); }
.scan-modes [aria-pressed=true]:after { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 4px var(--panel-bg); }
.scan-modes [aria-pressed=true] strong { color: var(--red-dark); }
.coming-soon-badge { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap; }
.scan-modes .scan-protection { text-decoration: none; }
.scan-protection>.icon { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--red); }

.scan-intro { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.scan-intro h2 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: var(--ink); text-wrap: balance; }
.section-description { color: var(--muted); font-size: 18px; line-height: 1.5; margin-top: 14px; }

.checker-layout { max-width: 980px; margin-inline: auto; }
.scan-console { padding: 0; }
.field-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.scan-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
.url-field { display: flex; align-items: center; gap: 13px; height: 64px; padding-inline: 20px; border: 1px solid #d2d2d2; border-radius: 14px; background: #fafafa; color: var(--muted); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.url-field:hover { border-color: #9d9d9d; }
.url-field:focus-within { background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 25, 32, .12); color: var(--red); }
.url-field input { width: 100%; min-width: 0; height: 100%; background: transparent; border: none; outline: none; font-size: 17px; color: var(--ink); }
.url-field input:focus-visible { outline: none; }
.url-field input::placeholder { color: #8a8a8a; }
.scan-button { height: 64px; padding-inline: 30px; border-radius: 14px; white-space: nowrap; }
.authorization { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 0; line-height: 1.6; font-size: 14px; color: var(--body); cursor: pointer; }
.authorization input { accent-color: var(--red); width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }
.form-error { margin-top: 16px; background: #fff2f0; border: 1px solid #f4c3bd; border-radius: 10px; color: #a62c21; padding: 12px 14px; font-size: 14px; line-height: 1.5; }

.scan-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.scan-scope article { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 24px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ink) 50%, transparent); }
.scan-scope .icon { width: 32px; height: 32px; color: var(--ink); }
.scan-scope h3 { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.scan-scope p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 3px; }

/* progress */
.scan-progress { min-height: 340px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 35px; border-radius: 20px; background: radial-gradient(ellipse at 50% 0, var(--red-soft), transparent 70%); }
.spinner { position: relative; width: 56px; height: 56px; border: 3px solid #f6d3d4; border-top-color: var(--red); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 28px; }
.spinner:after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(215, 25, 32, .3); animation: ring 1.8s ease-out infinite; }
.scan-progress h2 { font-size: 28px; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
.scan-progress p { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 460px; }

/* result */
.result-card { border: 1px solid var(--border); border-top: 4px solid var(--result-color); border-radius: 20px; background: #fff; padding: 36px 38px 28px; box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .35); background-image: linear-gradient(180deg, var(--result-tint), transparent 170px); }
.result-card[data-status=not-detected] { --result-color: #6f6f6f; --result-tint: color-mix(in srgb, #c2c2c2 28%, transparent); }
.result-card[data-status=unknown] { --result-color: #bd5a06; --result-tint: color-mix(in srgb, #feb073 20%, transparent); }
.result-card[data-status=affected] { --result-color: #e32631; --result-tint: color-mix(in srgb, #feaea7 24%, transparent); }
.result-card[data-status=patched] { --result-color: #0d8937; --result-tint: color-mix(in srgb, #aeebb6 24%, transparent); }
.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.result-title { display: flex; gap: 18px; align-items: center; min-width: 0; }
.result-icon { height: 60px; width: 60px; display: grid; place-items: center; border-radius: 18px; background: #fff; color: var(--result-color); box-shadow: 0 0 0 1px color-mix(in srgb, var(--result-color) 25%, transparent), 0 10px 24px -10px var(--result-color); flex-shrink: 0; }
.result-icon .icon { width: 30px; height: 30px; stroke-width: 2; }
.result-label { font-size: 12px; font-weight: 700; color: var(--result-color); margin-bottom: 7px; }
.result-title h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
.result-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 14px; flex-shrink: 0; }
.site-pill { display: flex; align-items: center; gap: 10px; padding: 9px 15px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; max-width: 380px; }
.site-pill .icon { width: 17px; height: 17px; }
.site-pill #result-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.pill-divider { width: 1px; height: 16px; background: #d1d1d1; }
.site-pill #result-http { white-space: nowrap; font-family: var(--mono); font-size: 12px; }
.result-actions .button { min-height: 46px; padding: 10px 18px; gap: 8px; font-size: 14px; }
.result-actions .button .icon { width: 17px; height: 17px; }
#scan-again:hover .icon { transform: translateX(-4px); }
.result-facts { margin: 30px 0 22px; background: #fff; border: 1px solid var(--border); border-radius: 14px; display: grid; grid-template-columns: .6fr .7fr 1.1fr 2.5fr; overflow: hidden; }
.result-facts>div { padding: 18px 22px; }
.result-facts>div+div { border-left: 1px solid var(--border); }
.result-facts dt { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.result-facts dd { font-size: 14px; font-weight: 500; margin: 0; line-height: 1.6; color: var(--ink); }
.result-description { font-size: 15.5px; line-height: 1.75; color: var(--body); }
.scan-evidence { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.scan-evidence h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.scan-evidence ul { padding-left: 20px; margin: 0 0 16px; font-size: 14px; line-height: 1.8; color: var(--body); }
.scan-result-note { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-top: 18px; overflow-wrap: anywhere; }
.scan-result-note .icon { width: 15px; height: 15px; }
.result-recommend { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 16px 18px; margin-top: 20px; font-size: 14px; line-height: 1.7; color: var(--body); overflow-wrap: anywhere; }
.result-recommend .icon { flex-shrink: 0; color: var(--muted); margin-top: 3px; width: 18px; height: 18px; }
.result-recommend strong { color: var(--ink); }
button.inline-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.promo-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 32px; margin-top: 24px; padding: 28px 34px; color: #fff; border-radius: 18px; background: linear-gradient(110deg, var(--red-deep), var(--red)); }
.promo-banner:before { content: ''; position: absolute; z-index: -1; width: 360px; height: 360px; right: -80px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
.promo-banner>div { flex: 1; }
.promo-banner h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.promo-banner p { font-size: 14px; margin-top: 6px; opacity: .9; }

/* local scan */
.local-panel { padding: 8px 0 0; }
.local-heading { max-width: 1000px; margin-bottom: 28px; }
.local-heading h2 { font-size: 30px; letter-spacing: -.02em; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.local-panel p { color: var(--muted); line-height: 1.6; font-size: 15px; }
.local-enrollment-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--border); }
.local-enrollment-steps li { position: relative; display: flex; align-items: center; justify-content: center; padding: 14px 12px; background: var(--surface); border-radius: 12px; font-size: 15px; font-weight: 600; text-align: center; }
.local-enrollment-steps li:not(:last-child)::after { content: ''; position: absolute; right: -19px; width: 8px; height: 8px; border-top: 2px solid #bcbec0; border-right: 2px solid #bcbec0; transform: rotate(45deg); }
.local-form { max-width: 760px; }
.local-panel input:not([type=checkbox]), .local-panel textarea { width: 100%; border: 1px solid #cfcfcf; background: #fafafa; border-radius: 12px; padding: 15px 16px; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.local-panel input:not([type=checkbox]):focus, .local-panel textarea:focus { outline: none; background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 25, 32, .12); }
.local-form>p { margin-top: 12px; }
.local-form .authorization { margin-block: 24px; }
.local-form .button { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.local-scan-notice { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 20px; margin-top: 32px; }
.local-scan-notice .icon { flex-shrink: 0; color: var(--muted); margin-top: 2px; }
.local-scan-notice strong { color: var(--ink); }
.local-new { margin-top: 24px; }
.local-panel .local-error { color: #a51f32; background: #fff0f2; padding: 14px; border-radius: 10px; margin-top: 18px; }
#local-coming-soon { padding: 40px; border-radius: 20px; background: var(--surface); text-align: center; }
#local-coming-soon .local-heading { margin-inline: auto; }
#local-terms-dialog h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
#local-terms-dialog ul { padding-left: 22px; margin: 0 0 15px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* ---------- Overview ---------- */
.overview { padding-block: 120px 96px; }
.overview h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; color: var(--ink); max-width: 1000px; margin-bottom: 24px; text-wrap: balance; }
.overview>p { color: var(--body); font-size: 17px; line-height: 1.7; max-width: 880px; margin-bottom: 20px; }
.overview>p.overview-callout { position: relative; max-width: none; margin: 32px 0 44px; padding: 24px 28px 24px 32px; border: 1px solid #f3c9cb; border-left: 4px solid var(--red); border-radius: 4px 18px 18px 4px; background: linear-gradient(100deg, var(--red-soft), #fff 85%); color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.55; }
.overview-callout:before { content: 'TrendAI™ advisory'; display: block; margin-bottom: 8px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.overview-callout a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.overview-callout a:hover { color: var(--red-dark); }
.overview table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 24px; font-size: 16px; line-height: 20px; }
.overview caption { text-align: left; color: var(--body); font-size: 12px; line-height: 16px; padding: 0 0 24px; caption-side: top; }
.overview th, .overview td { text-align: left; padding: 24px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.overview thead th { background: var(--red); color: #fff; font: 700 24px/27px Gotham, "Work Sans", Arial, sans-serif; border-bottom: 0; }
.overview tbody tr { background: var(--surface); }
.overview tbody th { width: 320px; font-weight: 400; color: var(--ink); font-size: 24px; line-height: 27px; }
.overview tbody td { color: var(--body); font-variant-numeric: tabular-nums; }
.overview tbody tr:last-child>* { border-bottom: 0; }
.overview thead th:first-child { border-top-left-radius: 8px; }
.overview thead th:last-child { border-top-right-radius: 8px; }
.overview tbody tr:last-child>*:first-child { border-bottom-left-radius: 8px; }
.overview tbody tr:last-child>*:last-child { border-bottom-right-radius: 8px; }
.overview>p.overview-note { max-width: 620px; font-size: 12px; line-height: 16px; }
.eol { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #fdeaea; color: var(--red-dark); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.fix { display: inline-block; padding: 5px 10px; border: 1px solid #7fc79a; border-radius: 999px; background: #e6f6ec; color: #0b6b2d; font-size: 12px; font-weight: 500; line-height: 16px; }
.overview .overview-sources { font-size: 14px; color: var(--muted); }

/* ---------- Vulnerabilities ---------- */
.vulns { background: var(--surface); border-block: 1px solid var(--border); padding-block: 104px; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; color: var(--ink); text-wrap: balance; }
.vulnerability-card { padding: 32px; border: 1px solid var(--border); border-radius: 20px; background: var(--panel-bg); }
.cve-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.cve-id { font: 600 12px var(--mono); letter-spacing: .02em; color: #fff; background: #111; padding: 8px 11px; border-radius: 6px; text-decoration: none; transition: background .2s var(--ease); }
.cve-id:hover { background: var(--red); }
.severity { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--red-soft); border: 1px solid #d7192070; color: var(--text); font-size: 12px; font-weight: 600; }
.severity:before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.vulnerability-card h3 { font-size: 26px; line-height: 1.25; letter-spacing: -.025em; margin-top: 24px; }
.cve-summary { max-width: 1000px; margin-top: 14px; color: var(--body); font-size: 15px; line-height: 1.75; }
.cve-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.cve-label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.cve-paths, .cve-steps { margin: 0; padding-left: 18px; color: var(--body); font-size: 14px; line-height: 1.75; }
.cve-paths li+li, .cve-steps li+li { margin-top: 6px; }
.cve-versions-link { display: inline-block; margin-top: 14px; font-size: 13px; }
.vulnerability-card code, .advisory-limit code { font: .9em var(--mono); background: var(--surface); color: var(--text); border-radius: 4px; padding: 2px 5px; }
.cve-details { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.cve-details summary { cursor: pointer; color: var(--text); }
.cve-details p { max-width: 800px; margin-top: 12px; line-height: 1.75; }
.advisory-limit { margin-top: 18px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 12px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.advisory-info { border: 1px solid var(--muted); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; color: var(--body); font: 15px var(--mono); }
.advisory-limit h3 { font: 600 14px/1.5 'Work Sans', Arial, sans-serif; }
.advisory-limit p { font-size: 13px; line-height: 1.75; color: var(--muted); margin-top: 6px; }

/* ---------- Closing CTA ---------- */
.cta-split-section { background: #000; color: #fff; padding-top: 96px; }
.cta-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #6d6e71; border-radius: 10px; background: linear-gradient(172.6deg, #060026 1.4%, #000 33.4%); }
.cta-split>article { display: flex; flex-direction: column; align-items: center; padding: 48px 32px; text-align: center; }
.cta-split>article+article { border-left: 1px solid #6d6e71; }
.cta-split h2 { max-width: 386px; margin-bottom: 16px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.125; }
.cta-split p { max-width: 386px; font-size: 16px; line-height: 20px; }
.cta-split .button { margin-top: 24px; }
.cta-split .button, .clarity-cta .button { min-height: 52px; padding: 16px 32px; border-radius: 10px; font-size: 16px; font-weight: 400; line-height: 20px; }
.clarity-section { background: linear-gradient(-8.9deg, #3d0204 3.1%, #000 39.8%); color: #fff; padding-block: 96px; }
.clarity-layout { display: flex; flex-direction: column; align-items: center; gap: 48px; text-align: center; }
.clarity-layout>h2 { font-size: clamp(36px, 4.2vw, 64px); line-height: 1.1; }
.clarity-layout>h2 span { background: linear-gradient(90deg, var(--red), #ff9500); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clarity-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; }
.clarity-cta .ghost { background: transparent; border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: #000; color: #fff; padding: 64px 0 40px; border-top: 1px solid #262626; }
.compact-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; position: relative; }
.footer-identity { display: grid; gap: 28px; }
.footer-logo { display: block; width: 168px; height: auto; }
.footer-identity p { font-size: 14px; line-height: 22px; color: #bdbdbd; }
.footer-social { display: flex; align-items: center; gap: 28px; }
.footer-social a { display: flex; width: 24px; height: 24px; opacity: .85; transition: opacity .2s, transform .2s var(--ease); }
.footer-social a:hover { opacity: 1; transform: translateY(-2px); }
.footer-social img { display: block; }
.back-to-top { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-size: 14px; white-space: nowrap; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.back-to-top:hover { background: #fff; color: #000; border-color: #fff; }

/* ---------- Dialog ---------- */
dialog { padding: 0; border: 1px solid var(--border); border-radius: 24px; max-width: 580px; width: calc(100% - 36px); max-height: min(720px, calc(100% - 36px)); overflow: auto; color: var(--ink); box-shadow: 0 40px 120px #00000050; }
dialog[open] { animation: dialog-in .3s var(--ease); }
dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }
/* The dialog scrolls itself; keep its scrollbar clear of the 24px rounded corners. */
dialog::-webkit-scrollbar { width: 14px; }
dialog::-webkit-scrollbar-track { margin-block: 24px; background: transparent; }
dialog::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: 999px; background: var(--input-border-hover) padding-box; }
dialog::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
@supports not selector(::-webkit-scrollbar) { dialog { scrollbar-width: thin; scrollbar-color: var(--input-border-hover) transparent; } }
.dialog-content { padding: 40px; position: relative; }
.dialog-content h2 { font-size: 30px; margin: 12px 0 22px; letter-spacing: -.02em; font-weight: 700; }
.dialog-content p { font-size: 14.5px; line-height: 1.75; color: var(--muted); margin-bottom: 15px; }
.dialog-content p strong { color: var(--ink); }
.dialog-content .button { margin-top: 10px; width: 100%; }
.close-dialog { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface); border: none; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--muted); transition: background .2s, color .2s; }
.close-dialog:hover { background: var(--ink); color: #fff; }

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215, 25, 32, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(215, 25, 32, 0); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.08); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .hero { padding-bottom: 160px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-lede { max-width: 620px; }
  .hero-art { padding-top: 32px; }
  .attack-figure { padding: 20px; }
  .attack-step { padding: 14px; gap: 11px; }
  .attack-step strong { font-size: 15px; }
  .hero-tagline { font-size: clamp(34px, 10.4cqi, 68px); }
  .checker-section { padding-inline: 32px; }
  .result-facts { grid-template-columns: .8fr .8fr 1.4fr; }
  .result-facts>div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 1000px) {
  .local-enrollment-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
  .local-enrollment-steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 480px) {
  .local-enrollment-steps { grid-template-columns: 1fr; gap: 10px; }
  .local-enrollment-steps li { padding: 12px; }
  .local-enrollment-steps li::after { display: none; }
}

/* Desktop: size the hero from viewport height so the scan-mode cards land above the fold. */
@media (min-width: 1024px) {
  .hero { padding: calc(77px + clamp(24px, 5vh, 64px)) 0 calc(104px + clamp(24px, 4vh, 48px)); }
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 48px; }
  .hero-tagline { margin-top: clamp(16px, 2.6vh, 28px); font-size: clamp(34px, min(4.4vw, 7.2vh, 10.4cqi), 68px); }
  .hero-lede { margin-top: clamp(14px, 2.4vh, 26px); max-width: 600px; font-size: clamp(17px, 2.1vh, 19px); }
  .hero-cta { margin-top: clamp(20px, 3.4vh, 36px); }
  .hero-facts { margin-top: clamp(20px, 4vh, 48px); padding-top: clamp(14px, 2.4vh, 24px); }
  .hero-art { padding-top: 0; }
}
@media (min-width: 1024px) and (max-height: 720px) {
  .hero-facts { display: none; }
}

@media (max-width: 860px) {
  .cve-columns { grid-template-columns: 1fr; gap: 24px; }
  .scan-scope { grid-template-columns: 1fr; }
  .result-header { flex-direction: column; }
  .result-actions { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 64px; }
  .brand img { width: 132px; }
  .header-actions { gap: 8px; }
  .header-actions a { padding: 8px 12px; font-size: 13px; }
  .header-actions .header-contact { display: none; }
  .hero { margin-top: -65px; padding: 109px 0 124px; }
  .hero-tagline { margin-top: 22px; font-size: clamp(32px, 10.4cqi, 52px); }
  .hero-lede { font-size: 17px; margin-top: 22px; }
  .hero-cta { margin-top: 28px; }
  .hero-cta .button { width: 100%; }
  .hero-facts { gap: 24px; margin-top: 36px; padding-top: 22px; }
  .hero-facts strong { font-size: 24px; }
  .hero-art { padding-top: 36px; }
  .attack-figure { padding: 17px; border-radius: 16px; }
  .attack-heading { align-items: flex-start; gap: 8px; }
  .attack-heading b { font-size: 11px; }
  .attack-heading>span { max-width: 72px; font-size: 9px; line-height: 1.6; }
  .attack-step { grid-template-columns: 34px minmax(0, 1fr); padding: 13px; }
  .attack-icon { width: 34px; height: 38px; font-size: 14px; }
  .attack-step strong { font-size: 14px; }
  .attack-step small { font-size: 9px; }
  .attack-step p { font-size: 11px; }
  .attack-connector { margin-left: 31px; height: 24px; }
  .checker-section { margin-top: -88px; padding: 20px 18px 28px; border-radius: 22px; }
  .checker-section:before { width: calc(100% - 36px); }
  .scan-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; row-gap: 4px; margin-bottom: 32px; }
  .scan-modes button, .scan-modes .scan-protection { padding: 14px 40px 14px 14px; }
  .scan-modes .scan-protection { grid-column: 1 / -1; margin-top: 4px; }
  .scan-protection>.icon { right: 12px; }
  .scan-modes button:after { right: 12px; width: 16px; height: 16px; margin-top: -8px; }
  .scan-modes [aria-pressed=true]:after { box-shadow: inset 0 0 0 3px #fff; }
  .scan-modes strong { font-size: 16px; }
  .scan-modes button>span { font-size: 12px; }
  .scan-intro { text-align: left; margin-bottom: 26px; }
  .section-description { font-size: 15px; }
  .scan-input-row { grid-template-columns: 1fr; }
  .url-field { height: 58px; padding-inline: 14px; }
  .url-field input { font-size: 16px; }
  .scan-button { height: 56px; width: 100%; }
  .authorization { font-size: 13px; }
  .scan-scope { margin-top: 28px; }
  .scan-progress { padding: 28px 8px; min-height: 300px; }
  .scan-progress h2 { font-size: 23px; }
  .result-card { padding: 26px 20px 20px; border-radius: 16px; }
  .result-title { gap: 14px; align-items: flex-start; }
  .result-icon { width: 48px; height: 48px; border-radius: 14px; }
  .result-icon .icon { width: 25px; height: 25px; }
  .result-title h2 { font-size: 22px; }
  .site-pill { font-size: 12px; padding: 8px 12px; max-width: 100%; }
  .site-pill #result-host { max-width: 140px; }
  .result-facts { grid-template-columns: 1fr 1fr; margin-block: 24px 18px; }
  .result-facts>div { padding: 14px 16px; }
  .result-facts>div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); }
  .result-facts dd { font-size: 13px; }
  .result-description { font-size: 14.5px; }
  .promo-banner { flex-wrap: wrap; padding: 24px 22px; gap: 20px; }
  .promo-banner>div { flex-basis: 100%; }
  .local-heading h2 { font-size: 24px; }
  #local-coming-soon { padding: 28px 18px; }

  .overview { padding-block: 72px 56px; }
  .overview>p { font-size: 15.5px; }
  .overview>p.overview-callout { font-size: 16px; padding: 18px 18px 18px 20px; margin-block: 24px 32px; }
  .overview table, .overview tbody, .overview tr, .overview th, .overview td { display: block; }
  .overview table { border: 0; background: none; box-shadow: none; overflow: visible; }
  .overview caption { display: block; width: 100%; }
  .overview thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .overview tbody tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden; }
  .overview th, .overview td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
  .overview tbody th { width: auto; background: #fafafa; font-size: 16px; }
  .overview td { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
  .overview td:before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; padding-top: 3px; }
  .overview td:last-child { text-align: right; }
  .overview tbody tr:last-child>* { border-bottom: 1px solid var(--border); }
  .overview tbody tr>*:last-child { border-bottom: 0 !important; }
  .overview tbody tr:last-child>* { border-radius: 0; }

  .vulns { padding-block: 64px; }
  .section-head { margin-bottom: 28px; }
  .vulnerability-card { padding: 22px 18px; border-radius: 16px; }
  .vulnerability-card h3 { font-size: 23px; }
  .cve-summary { font-size: 14px; }
  .severity { font-size: 11px; }
  .advisory-limit { padding: 19px 17px; grid-template-columns: 24px minmax(0, 1fr); gap: 11px; }
  .cta-split-section { padding-top: 64px; }
  .cta-split { grid-template-columns: 1fr; }
  .cta-split>article { padding: 40px 20px; }
  .cta-split>article+article { border-left: 0; border-top: 1px solid #6d6e71; }
  .clarity-section { padding-block: 64px 72px; }
  .clarity-layout { gap: 32px; }
  .clarity-cta { align-self: stretch; flex-direction: column; }
  .clarity-cta .button { width: 100%; }
  .site-footer { padding: 48px 0 32px; }
  .compact-footer { align-items: flex-start; flex-direction: column; gap: 32px; }
  .dialog-content { padding: 32px 22px; }
  .dialog-content h2 { font-size: 26px; }
}

/* ---------- Dark mode component colours ---------- */
/* Light-mode surfaces above hard-code light colours; these blocks only repaint them for dark mode.
   They sit last so they also win over the max-width: 760px rules. */
@media (prefers-color-scheme: dark) {
  .skip-link { background: var(--panel-bg); color: var(--ink); }
  /* Brand red text only at 16px and up; smaller text stays light and keeps red as an underline, dot, fill or border. */
  .eyebrow, .kicker, .overview-callout:before { color: var(--text); }
  .eyebrow::before, .kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
  .kicker::before { display: inline-block; margin-right: 10px; vertical-align: 1px; }
  .text-link, .inline-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
  .overview>p .inline-link, .overview-callout a { color: var(--red); }
  .text-link:hover, .inline-link:hover, .overview-callout a:hover { text-decoration-thickness: 2px; }
  .white-button:hover { background: #fdeeee; }

  .scan-modes [aria-pressed=true] strong { color: var(--red); }
  .url-field { background: var(--input-bg); border-color: var(--input-border); }
  .url-field:hover { border-color: var(--input-border-hover); }
  .url-field:focus-within { background: var(--input-bg); border-color: var(--red); }
  .url-field input::placeholder { color: var(--input-placeholder); }
  .form-error { background: #2a1513; border-color: var(--red); color: var(--text); }
  .spinner { border-color: #3d1c1e; border-top-color: var(--red); }

  .result-card, .result-facts { background-color: var(--panel-bg); }
  .result-card[data-status=not-detected] { --result-color: #a3a3a3; }
  .result-card[data-status=unknown] { --result-color: #f39a4b; }
  .result-card[data-status=affected] { --result-color: var(--red); }
  .result-card[data-status=patched] { --result-color: #3ccb6c; }
  .result-card, .result-card[data-status] { --result-tint: color-mix(in srgb, var(--result-color) 14%, transparent); }
  .result-label { color: var(--text); }
  .result-icon, .site-pill { background: var(--input-bg); }
  .pill-divider { background: var(--divider); }

  .local-panel input:not([type=checkbox]), .local-panel textarea { background: var(--input-bg); border-color: var(--input-border); }
  .local-panel input:not([type=checkbox]):focus, .local-panel textarea:focus { background: var(--input-bg); border-color: var(--red); }
  .local-enrollment-steps li:not(:last-child)::after { border-top-color: var(--input-border-hover); border-right-color: var(--input-border-hover); }
  .local-enrollment-steps li, .local-scan-notice, #local-coming-soon, .result-recommend { background: #1f1f21; }
  .local-panel .local-error { background: #2a1513; color: var(--text); box-shadow: inset 0 0 0 1px var(--red); }

  .overview>p.overview-callout { border-color: #4a2124; border-left-color: var(--red); background: linear-gradient(100deg, var(--red-soft), var(--panel-bg) 85%); }
  .overview tbody tr { background: rgba(17, 24, 39, .4); }
  .eol { background: var(--red); color: #fff; }
  .fix { background: rgba(72, 130, 68, .2); border-color: #488244; color: #8fcb84; }

  .vulnerability-card { background: #202022; }
  .vulnerability-card code, .advisory-limit code { background: var(--chip-bg); }

  dialog { background: var(--panel-bg); border-color: var(--panel-border); }
  .close-dialog { background: var(--chip-bg); }
  .close-dialog:hover { background: var(--ink); color: var(--page-bg); }
}

@media (prefers-color-scheme: dark) and (max-width: 760px) {
  .scan-modes [aria-pressed=true]:after { box-shadow: inset 0 0 0 3px var(--panel-bg); }
  .overview>p:not(.overview-callout) .inline-link { color: var(--text); }
  .overview tbody tr { background: var(--panel-bg); }
  .overview tbody th { background: var(--row-hover); }
}
