/* PHP2Shell 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, .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; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.kicker { display: inline-block; color: var(--red); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; 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 { position: relative; min-height: 470px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; width: 400px; height: 400px; }
.orbit-two { width: 540px; height: 540px; border-style: dashed; border-color: rgba(255, 255, 255, .1); animation: spin 90s linear infinite; }
.probe { position: relative; z-index: 2; width: min(420px, 100%); border-radius: 22px; border: 1px solid rgba(255, 255, 255, .15); background: linear-gradient(160deg, rgba(44, 44, 46, .92), rgba(12, 12, 13, .96)); box-shadow: 0 50px 90px -30px #000, inset 0 1px 0 rgba(255, 255, 255, .1); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); animation: float 7s ease-in-out infinite; overflow: hidden; }
.probe-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.probe-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3c; }
.probe-bar span:first-child { background: var(--red); }
.probe-bar b { margin-left: 10px; font: 500 12.5px var(--mono); color: #9d9d9f; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.probe-body { position: relative; padding: 22px 20px 22px; font: 13.5px/1.5 var(--mono); color: #d8d8d9; overflow: hidden; }
.probe-body p { padding: 6px 12px; margin: 0 -12px; border-radius: 8px; opacity: 0; animation: line-in .5s var(--ease) forwards; }
.probe-body p:nth-child(1) { animation-delay: .5s; }
.probe-body p:nth-child(2) { animation-delay: .9s; }
.probe-body p:nth-child(3) { animation-delay: 1.3s; }
.probe-body p:nth-child(4) { animation-delay: 1.7s; }
.probe-body i { font-style: normal; color: #7d7d80; margin-right: 6px; }
.probe-body .hit { color: #fff; background: rgba(215, 25, 32, .2); box-shadow: inset 2px 0 0 var(--red); }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 56px; background: linear-gradient(180deg, transparent, rgba(215, 25, 32, .22) 70%, rgba(255, 120, 125, .55)); border-bottom: 1px solid rgba(255, 153, 157, .7); animation: scan 4.5s ease-in-out infinite; pointer-events: none; }
.probe-foot { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.probe-foot b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.probe-foot small { font-size: 12px; color: #9a9a9d; }
.probe-status { width: 10px; height: 10px; border-radius: 50%; background: #ffb454; box-shadow: 0 0 0 5px rgba(255, 180, 84, .16); flex-shrink: 0; }
.shield-tile { position: absolute; z-index: 3; right: 6%; top: 8%; width: 104px; height: 116px; display: grid; place-items: center; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .22); background: linear-gradient(145deg, #3a3a3c, #000); box-shadow: 0 24px 60px -10px rgba(0, 0, 0, .55); transform: rotate(8deg); animation: float 6s ease-in-out -2s infinite; }
.shield-tile svg { width: 58px; height: 66px; fill: rgba(215, 25, 32, .18); stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.code-tag { position: absolute; z-index: 3; background: rgba(24, 24, 25, .92); color: #e6e6e7; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 11px 16px; font: 14px var(--mono); backdrop-filter: blur(8px); }
.tag-one { left: 0; top: 14%; transform: rotate(-7deg); font-size: 19px; color: var(--red-glow); }
.tag-two { right: 0; bottom: 12%; font-size: 12px; transform: rotate(3deg); }

/* ---------- 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: 44px; right: 44px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--red-deep), var(--red) 55%, var(--red-glow)); }

.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; align-items: flex-start; gap: 14px; min-width: 0; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid transparent; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.scan-scope article:hover { background: #fff; border-color: var(--border); transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .3); }
.scan-scope .icon { box-sizing: content-box; width: 18px; height: 18px; padding: 9px; border-radius: 12px; background: #fff; color: var(--red); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.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; letter-spacing: .12em; 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); letter-spacing: .1em; 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; }
.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-email-sent { padding: 24px; border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 0 14px 14px 0; background: var(--red-soft); max-width: 740px; }
#local-email-sent h3 { margin-bottom: 20px; font-size: 18px; font-weight: 700; }
#local-email-sent p { margin-block: 12px; overflow-wrap: anywhere; }
.local-report-field { position: relative; }
.local-panel .local-report-field input { padding-right: 54px; min-width: 0; }
.local-report-field button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); transition: background .2s var(--ease), color .2s var(--ease); }
.local-report-field button:hover { background: #f0f0f0; color: var(--ink); }
.local-report-field button:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.local-report-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.local-report-actions .button { max-width: 100%; }
#local-report-url { font-size: 14px; }
.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 28px; font-size: 15.5px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 24px 50px -38px rgba(0, 0, 0, .4); }
.overview caption { text-align: left; color: var(--muted); font-size: 14px; padding: 0 0 12px; caption-side: top; }
.overview th, .overview td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.overview thead th { background: #111; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding-block: 16px; border-bottom: 0; }
.overview tbody th { font-weight: 600; color: var(--ink); font-size: 17px; }
.overview tbody td { color: var(--body); font-variant-numeric: tabular-nums; }
.overview tbody tr { transition: background .2s var(--ease); }
.overview tbody tr:hover { background: #fafafa; }
.overview tbody tr:last-child>* { border-bottom: 0; }
.overview thead th:first-child { border-top-left-radius: 17px; }
.overview thead th:last-child { border-top-right-radius: 17px; }
.overview tbody tr:last-child>*:first-child { border-bottom-left-radius: 17px; }
.overview tbody tr:last-child>*:last-child { border-bottom-right-radius: 17px; }
.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: 4px 12px; border-radius: 10px; background: #e6f6ec; color: #0b6b2d; font: 600 14px var(--mono); }
.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; }
.vuln-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.vulnerability-card { display: flex; flex-direction: column; padding: 36px; border: 1px solid var(--border); border-radius: 24px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.vulnerability-card:hover { transform: translateY(-4px); border-color: #cfcfcf; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .4); }
.cve-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.cve-id { font: 600 13px var(--mono); letter-spacing: .02em; color: #fff; background: #111; padding: 7px 12px; border-radius: 8px; text-decoration: none; transition: background .2s var(--ease); }
.cve-id:hover { background: var(--red); }
.severity { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fdeaea; color: #a8141a; font-size: 12.5px; font-weight: 600; }
.severity>span:first-child { width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: pulse 2.2s ease-out infinite; }
.meter { height: 6px; margin-top: 22px; border-radius: 6px; background: #eee; overflow: hidden; }
.meter:before { content: ''; display: block; height: 100%; width: 92%; border-radius: 6px; background: linear-gradient(90deg, var(--red-deep), var(--red) 60%, #ff4d55); transform-origin: left; }
.vulnerability-card h3 { font-size: 28px; line-height: 1.2; letter-spacing: -.025em; font-weight: 700; margin: 26px 0 16px; }
.vulnerability-card h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.vulnerability-card h3 a:hover, .vulnerability-card h3 a:focus-visible { color: var(--red); background-size: 100% 2px; }
.vulnerability-card>p { font-size: 15px; line-height: 1.7; color: var(--body); }
.vulnerability-card>p+p { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #dcdcdc; color: var(--muted); font-size: 14.5px; }
.vulnerability-card>p a { color: var(--ink); font-weight: 500; }
.vulnerability-card code { font-family: var(--mono); background: #f0f0f0; color: #2b2b2b; border-radius: 5px; padding: 1px 6px; font-size: 13px; }

/* ---------- Closing CTA ---------- */
.clarity-section { position: relative; isolation: isolate; overflow: hidden; background: #000; color: #fff; padding-block: 112px; }
.clarity-section:before { content: ''; position: absolute; z-index: -1; width: 900px; height: 600px; right: -260px; bottom: -340px; border-radius: 50%; background: radial-gradient(ellipse, rgba(215, 25, 32, .5), rgba(111, 0, 0, .25) 45%, transparent 70%); }
.clarity-layout { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 24px; align-items: stretch; }
.clarity-layout>h2 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; padding-right: 16px; }
.clarity-layout>article { padding: 30px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease); }
.clarity-layout>article:hover { transform: translateY(-4px); border-color: rgba(255, 153, 157, .45); background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03)); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--red); color: #fff; margin-bottom: 22px; }
.clarity-layout h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.clarity-layout p { color: #b9b9b9; font-size: 16px; line-height: 1.55; }
.clarity-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .12); }
.clarity-cta .button { min-height: 56px; padding-inline: 28px; }

/* ---------- 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 float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes scan { 0% { transform: translateY(-60px); } 100% { transform: translateY(240px); } }
@keyframes line-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@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; }
.reveal-ready .vulnerability-card[data-reveal].is-visible, .reveal-ready .clarity-layout>article[data-reveal].is-visible { transition: opacity .8s var(--ease), transform .35s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease); transition-delay: calc(var(--i, 0) * 110ms), 0s, 0s, 0s, 0s; }
.reveal-ready .vulnerability-card[data-reveal] .meter:before { transform: scaleX(0); transition: transform 1.1s var(--ease) .35s; }
.reveal-ready .vulnerability-card[data-reveal].is-visible .meter:before { transform: scaleX(1); }

@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; }
  .probe-body p { opacity: 1; }
  .scanline { display: none; }
}

/* ---------- 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 { min-height: 0; padding-top: 32px; }
  .orbit, .tag-one, .tag-two { display: none; }
  .probe { width: min(520px, 100%); transform: none; }
  .shield-tile { right: calc(50% - 300px); top: 0; }
  .hero-tagline { font-size: clamp(34px, 10.4cqi, 68px); }
  .checker-section { padding-inline: 32px; }
  .checker-section:before { left: 32px; right: 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); }
  .clarity-layout { grid-template-columns: 1fr 1fr; }
  .clarity-layout>h2 { grid-column: 1 / -1; padding: 0 0 8px; }
}

@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 { min-height: clamp(340px, 50vh, 470px); padding-top: 0; }
  .orbit, .tag-one, .tag-two { display: block; }
  .probe { width: min(420px, 100%); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); }
  .shield-tile { right: 6%; top: 8%; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .tag-one { display: none; }
}
@media (min-width: 1024px) and (max-height: 720px) {
  .hero-facts { display: none; }
}

@media (max-width: 860px) {
  .vuln-grid { grid-template-columns: 1fr; }
  .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 { min-height: 0; padding: 36px 0 0; }
  .probe { animation: none; }
  .shield-tile { width: 76px; height: 86px; border-radius: 20px; top: 0; right: 4px; }
  .shield-tile svg { width: 42px; height: 48px; }
  .checker-section { margin-top: -88px; padding: 20px 18px 28px; border-radius: 22px; }
  .checker-section:before { left: 18px; right: 18px; }
  .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-email-sent { padding: 18px; }
  #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 tbody tr:hover { background: #fff; }
  .overview th, .overview td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
  .overview tbody th { 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: 26px 22px; border-radius: 20px; }
  .vulnerability-card h3 { font-size: 24px; }
  .clarity-section { padding-block: 72px; }
  .clarity-layout { grid-template-columns: 1fr; gap: 16px; }
  .clarity-layout>article { padding: 24px; }
  .clarity-cta { flex-direction: column; margin-top: 12px; padding-top: 28px; }
  .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); }
  .scan-scope article { background: #1f1f21; }
  .scan-scope article:hover { background: #252527; }
  .scan-scope .icon { background: var(--chip-bg); color: var(--red); box-shadow: none; }
  .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-report-field button:hover { background: var(--chip-bg); }
  .local-enrollment-steps li, .local-scan-notice, #local-coming-soon { 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 table { background: var(--panel-bg); border-color: var(--panel-border); box-shadow: 0 24px 50px -38px #000; }
  .overview thead th { background: #252527; color: var(--ink); }
  .overview tbody tr:hover { background: var(--row-hover); }
  .eol, .severity { background: var(--red); color: #fff; }
  .severity>span:first-child { background: #fff; }
  .fix { background: rgba(52, 199, 110, .14); color: #6fe09a; }

  .vulnerability-card { background: #202022; }
  .vulnerability-card:hover { border-color: var(--input-border-hover); }
  .vulnerability-card>p+p { border-top-color: var(--divider); }
  .vulnerability-card code { background: var(--chip-bg); color: var(--text); }
  .meter { background: var(--divider); }

  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 table { background: none; box-shadow: none; }
  .overview tbody tr, .overview tbody tr:hover { background: var(--panel-bg); }
  .overview tbody th { background: var(--row-hover); }
}
