/* Layout, typography and components. Motion lives in campaign.css. */
:root {
  --ink: #0a1d45;
  --blue: #0b5cf5;
  --blue-dark: #0848c9;
  --stripe: #63a9f7;
  --cyan: #2fe3ee;
  --muted: #6b7a92;
  --line: #dfe5ee;
  --split: 42%;
  --pad-x: clamp(24px, 4.8vw, 76px);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color: var(--ink);
  font-family: var(--font);
  font-synthesis: none;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 3px solid #12a8e8; outline-offset: 4px; border-radius: 4px; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 14px 20px; background: #fff; border: 2px solid var(--blue); border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Header sits over the split: brand on the blue side, actions on the white side. */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: var(--split) 1fr; align-items: center;
  height: 92px;
}
.brand { display: inline-flex; align-items: center; gap: 24px; flex-shrink: 0; }
.header .brand { padding-left: var(--pad-x); }
.header .imperva-logo { filter: brightness(0) invert(1); }
.imperva-logo { width: 132px; height: auto; display: block; }
.thales-logo { width: 104px; height: auto; display: block; }
.brand-divider { height: 40px; width: 1px; background: currentColor; opacity: .3; }
.header .brand-divider { color: #fff; opacity: .55; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 38px; padding-right: clamp(20px, 3vw, 48px); font-size: 17px; font-weight: 600; }
.nav-link { padding: 10px 0; }
.nav-link:hover, .footer nav a:hover, .scan-again:hover { color: var(--blue); }

/* Shared link hover: an underline draws in from the left and retracts to the right (top menu style).
   .link-line-rest also keeps a faint resting underline for links the design shows underlined. */
.link-line { position: relative; display: inline-block; }
.link-line::after, .link-line-rest::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: var(--line-offset, -4px); height: 2px; background: currentColor;
}
.link-line::after { transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.link-line-rest::before { opacity: .4; }
a:hover > .link-line::after, a.link-line:hover::after, button:hover > .link-line::after { transform: scaleX(1); transform-origin: left; }
.nav-link { --line-offset: 4px; }
.mobile-cta { display: none; }

/* Buttons */
.button {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  border: 0; border-radius: 8px; font-weight: 600; line-height: 1.2;
  min-height: 52px; padding: 14px 24px;
  transition: background .25s, box-shadow .3s, transform .3s var(--ease-out);
}
.arrow { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.button:hover .arrow, .expert-link:hover .arrow { transform: translateX(5px); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.985); }
.button-navy { background: var(--ink); color: #fff; font-size: 17px; }
.button-navy:hover { background: #142e66; box-shadow: 0 12px 26px -12px #0a1d45a0; }
.button-blue { background: var(--blue); color: #fff; }
.button-blue:hover { background: #0a52e0; box-shadow: 0 16px 30px -14px #0b5cf5c0; }
.button-white { background: #fff; color: var(--ink); }
.button-white:hover { box-shadow: 0 14px 28px -14px #031a5ab0; }

/* Hero */
.hero { display: grid; grid-template-columns: var(--split) 1fr; min-height: max(100vh, 900px); }
.hero-story { position: relative; overflow: hidden; isolation: isolate; background: var(--blue); color: #fff; }
.hero-copy { position: relative; z-index: 1; padding: 172px var(--pad-x) 300px; }
.vulnerability-name { margin: 0 0 18px; font-size: clamp(84px, 12.6vw, 208px); font-weight: 900; line-height: .86; letter-spacing: -.055em; }
.line { display: block; }
.line-inner { display: inline-block; }
.name-dot {
  display: inline-block; width: .26em; height: .26em; margin-left: .03em;
  border-radius: 50%; background: var(--cyan); color: transparent; overflow: hidden; vertical-align: baseline;
}
.hero-statement { margin: 0 0 22px; font-size: clamp(36px, 3.3vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.hero-description { margin: 0 0 40px; max-width: 470px; font-size: clamp(19px, 1.6vw, 26px); line-height: 1.42; color: #eaf1ff; }
.expert-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 21px; font-weight: 600; }
.expert-link .link-line { padding-bottom: 10px; --line-offset: 0px; }
.stripes { position: absolute; left: var(--pad-x); bottom: 0; width: calc(100% - var(--pad-x) - 9%); max-width: 720px; height: auto; z-index: 0; pointer-events: none; }
.stripe { fill: var(--stripe); }

/* Checker */
.checker-panel { display: flex; justify-content: center; padding: 156px var(--pad-x) 64px; background: #fbfcfe; }
/* A centred column; the steps sit at the bottom so they never move while the stage above changes. */
.checker-content { display: flex; flex-direction: column; width: 100%; max-width: 780px; }
.form-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font-size: 15px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow-bar { width: 46px; height: 7px; background: #13b6ec; }
.checker-content h2 { margin: 0 0 22px; max-width: 520px; font-size: clamp(48px, 5vw, 82px); font-weight: 800; line-height: 1; letter-spacing: -.055em; }
.form-description { margin: 0 0 46px; font-size: clamp(18px, 1.55vw, 25px); line-height: 1.4; color: var(--muted); }
.field-label { display: block; margin-bottom: 14px; font-size: 20px; font-weight: 700; }
.url-field { position: relative; }
.url-field > svg { position: absolute; left: 25px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; stroke: #6c7b93; stroke-width: 1.3; pointer-events: none; transition: stroke .2s; }
.url-field:focus-within > svg { stroke: var(--blue); }
.url-field input {
  width: 100%; height: 74px; padding: 18px 20px 18px 72px;
  border: 1.5px solid #c4ccd8; border-radius: 6px; background: #fff;
  color: var(--ink); font-size: 22px;
  transition: border-color .2s, box-shadow .3s;
}
.url-field input::placeholder { color: #75839a; opacity: 1; }
.url-field input:hover { border-color: #93a1b6; }
.url-field input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px #0b5cf51f; }
.url-field input[aria-invalid=true] { border-color: #c03a3a; box-shadow: 0 0 0 4px #c03a3a14; }
.authorization { display: flex; align-items: center; gap: 15px; width: fit-content; margin: 24px 0 28px; font-size: 19px; line-height: 1.4; color: #26364f; }
.authorization input {
  appearance: none; margin: 0; width: 28px; height: 28px; flex-shrink: 0; cursor: pointer;
  border: 1.6px solid #66758c; border-radius: 6px; background: #fff;
  display: grid; place-content: center; transition: background .2s, border-color .2s, box-shadow .2s;
}
.authorization label { cursor: pointer; }
.authorization:has(label:hover) input, .authorization input:hover { border-color: var(--blue); }
.authorization input:checked { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px #0b5cf51f; }
.authorization input::after { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-1px) scale(0); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.authorization input:checked::after { transform: rotate(-45deg) translateY(-1px) scale(1); }
.authorization input[aria-invalid=true] { border-color: #c03a3a; }
.terms-trigger { margin: 0; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--blue); font: inherit; font-weight: 700; line-height: inherit; cursor: pointer; }
.terms-trigger:hover { border-bottom-color: transparent; }
.terms-trigger:focus-visible { outline: 3px solid #0b5cf533; outline-offset: 3px; border-radius: 2px; }
.check-button { width: 100%; min-height: 72px; font-size: 22px; border-radius: 6px; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 0; font-size: 16px; color: var(--muted); }
.form-note svg { width: 19px; height: 19px; stroke: var(--ink); stroke-width: 1.3; }
.field-error { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #b12e37; }
.auth-error { margin: -18px 0 20px; }

/* Loader */
.checking { padding: 52px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 24px 50px -36px #0a1d4560; }
.loader { position: relative; width: 88px; height: 88px; margin: 0 auto; display: grid; place-items: center; }
.loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #dbeaff; border-top-color: var(--blue); }
.loader svg { width: 34px; height: 34px; stroke: var(--blue); stroke-width: 1.4; }
.checking-title { margin: 24px 0 6px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; overflow-wrap: anywhere; }
.checking-title span { color: var(--blue); }
.checking-step { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--muted); }

/* Result */
.result { --tone: #6b7a92; --tone-bg: #eef1f5; }
.result[data-status=vulnerable] { --tone: #d12f3a; --tone-bg: #fdecec; }
.result[data-status=php-detected] { --tone: #b97700; --tone-bg: #fff3d9; }
.result[data-status=not-vulnerable] { --tone: var(--blue); --tone-bg: #e6efff; }
.result[data-status=not-detected] { --tone: var(--blue); --tone-bg: #e6efff; }
.result[data-status=blocked] { --tone: #6a4fd1; --tone-bg: #efebfd; }
.result-card { padding: 26px 28px 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--tone); border-radius: 14px; box-shadow: 0 24px 50px -36px #0a1d4560; }
.result-top { display: flex; align-items: center; gap: 16px; }
.result-icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--tone-bg); color: var(--tone); }
.result-icon svg { display: none; width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.result .icon-unreachable,
.result[data-status=vulnerable] .icon-vulnerable,
.result[data-status=php-detected] .icon-php-detected,
.result[data-status=not-vulnerable] .icon-ok,
.result[data-status=not-detected] .icon-ok,
.result[data-status=blocked] .icon-blocked { display: block; }
.result[data-status=vulnerable] .icon-unreachable,
.result[data-status=php-detected] .icon-unreachable,
.result[data-status=not-vulnerable] .icon-unreachable,
.result[data-status=not-detected] .icon-unreachable,
.result[data-status=blocked] .icon-unreachable { display: none; }
.result-badge { margin: 0 0 4px; font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--tone); }
.result h3 { margin: 0; font-size: 25px; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.result h3:focus { outline: none; }
.result-aside { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.result-site { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; margin: 0; padding: 6px 14px 6px 10px; border-radius: 999px; background: #f1f4f9; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.result-site svg { width: 17px; height: 17px; stroke: var(--muted); stroke-width: 1.5; }
.result-http { padding-left: 10px; border-left: 1px solid #cdd5e1; font-weight: 500; color: var(--muted); }
.result-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 20px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.result-facts div { padding: 12px 16px; background: #f9fbfd; }
.result-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.result-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.result[data-status=vulnerable] #fact-version { color: var(--tone); }
.result-message { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: #42526b; }
.result-evidence-wrap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.result-evidence-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.result-evidence { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result-evidence li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: #26364f; overflow-wrap: anywhere; }
.result-evidence li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--tone-bg); }
.evidence-more { margin-top: 10px; padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: 14px; font-weight: 700; }
.trial { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; padding: 16px 22px; border-radius: 14px; background: var(--blue); color: #fff; }
.trial::before { content: ""; position: absolute; z-index: -1; right: 24%; top: -50%; width: 90px; height: 200%; background: var(--stripe); opacity: .45; transform: skewX(-34deg); }
.trial-title { margin: 0 0 2px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.trial-copy { margin: 0; font-size: 14px; line-height: 1.5; color: #e3ecff; }
.trial-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.trial .button { min-height: 46px; font-size: 16px; }
.trial-link { padding: 4px 0 6px; font-size: 14px; font-weight: 600; }
.trial-link .link-line { --line-offset: -3px; }
.scan-again { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; color: var(--blue); font-size: 16px; font-weight: 700; }
.scan-again svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.scan-again:hover svg { transform: rotate(-200deg); }
.button-outline-light { border: 1.5px solid #ffffffa0; color: #fff; }
.button-outline-light:hover { background: #ffffff1a; border-color: #fff; }
.help-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* Wide results: verdict and site on top, facts across, explanation beside the evidence. */
@media (min-width: 760px) {
  .result-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 32px; align-items: start; padding: 22px 24px 20px; }
  .result-top { grid-column: 1; }
  .result-aside { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-end; align-self: center; gap: 4px; margin: 0; }
  .result-facts { grid-column: 1 / -1; }
  .result-message { grid-column: 1; }
  .result-evidence-wrap { grid-column: 2; margin-top: 18px; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
  .result-card:has(.result-evidence-wrap[hidden]) .result-message { grid-column: 1 / -1; }
}

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: auto 0 0; padding: 62px 0 0; scroll-margin-top: 40px; }
.step { position: relative; }
.step-number { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 26px; border-radius: 50%; background: #dbeaff; font-size: 19px; font-weight: 700; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 76px; right: 20px; height: 2px; background: #d3dae5; transform-origin: left; }
.step h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.step p { margin: 0; max-width: 200px; font-size: 16px; line-height: 1.45; color: var(--muted); }

/* Below the fold */
.advisory { padding: clamp(64px, 7vw, 108px) var(--pad-x); border-bottom: 1px solid var(--line); background: #f4f7fb; }
.advisory-inner { max-width: 1440px; margin: 0 auto; }
.advisory-header { max-width: 900px; margin-bottom: 42px; }
.advisory-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.advisory-kicker span { width: 38px; height: 5px; background: var(--cyan); }
.advisory-header h2 { margin: 0 0 18px; font-size: clamp(38px, 4.3vw, 68px); font-weight: 850; letter-spacing: -.055em; line-height: 1.02; }
.advisory-intro { max-width: 820px; margin: 0; color: #4f5f77; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; }
.advisory-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--blue); font-size: 17px; font-weight: 750; }
.advisory-link .arrow { width: 21px; height: 21px; }
.advisory-link:hover .arrow { transform: translateX(5px); }
.cve-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 24px; }
.cve-card { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 40px); border: 1px solid #d7dfea; border-top: 5px solid #cf2e3a; border-radius: 14px; background: #fff; box-shadow: 0 24px 54px -42px #0a1d4573; }
.cve-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.cve-id { margin: 0; color: var(--blue); font-size: 15px; font-weight: 800; letter-spacing: .06em; }
.severity { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 11px; border-radius: 999px; background: #fdebed; color: #a51f2a; font-size: 12px; font-weight: 700; }
.severity span { padding-right: 8px; border-right: 1px solid #e8b9bd; text-transform: uppercase; letter-spacing: .08em; }
.cve-card h3 { margin: 0 0 18px; font-size: clamp(23px, 2vw, 30px); line-height: 1.18; letter-spacing: -.035em; }
.cve-card h3 span { display: block; }
.cve-summary { margin: 0; color: #43536b; font-size: 16px; line-height: 1.65; }
.cve-summary code { color: var(--ink); font-weight: 700; }
.cve-facts { width: 100%; margin: auto 0 0; padding-top: 26px; }
.cve-facts div { display: grid; grid-template-columns: 105px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cve-facts div:first-child { border-top: 1px solid var(--line); }
.cve-facts dt { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.cve-facts dd { margin: 0; color: #26364f; font-size: 14px; font-weight: 650; line-height: 1.45; }
.remediation-panel { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); margin-top: 24px; padding: clamp(28px, 3.5vw, 46px); border-radius: 14px; background: var(--ink); color: #fff; }
.remediation-label { margin: 0 0 10px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.remediation-panel h3 { margin: 0; font-size: clamp(25px, 2.4vw, 36px); line-height: 1.14; letter-spacing: -.035em; }
.remediation-panel ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; padding: 0; list-style: none; counter-reset: response; }
.remediation-panel li { position: relative; padding-left: 38px; color: #e7edfa; font-size: 15px; line-height: 1.55; counter-increment: response; }
.remediation-panel li::before { content: counter(response); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #ffffff18; color: var(--cyan); font-size: 12px; font-weight: 800; }
.benefits { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; align-items: center; padding: 72px var(--pad-x); border-bottom: 1px solid var(--line); }
.benefits > h2 { margin: 0; font-size: clamp(30px, 2.8vw, 44px); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.benefit { display: flex; align-items: flex-start; gap: 22px; }
.benefit-icon { width: 58px; height: 58px; padding: 11px; border-radius: 12px; background: #e8f1ff; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.benefit h3 { margin: 2px 0 8px; font-size: 19px; letter-spacing: -.01em; }
.benefit p { margin: 0; max-width: 320px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.help-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 48px var(--pad-x); background: var(--blue); color: #fff;
}
.help-band::before { content: ""; position: absolute; z-index: -1; right: 18%; top: -40%; width: 220px; height: 180%; background: var(--stripe); opacity: .5; transform: skewX(-34deg); }
.help-copy h2 { margin: 0 0 8px; font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.04em; }
.help-copy p { margin: 0; font-size: 17px; color: #eaf1ff; }
.help-band .button { flex-shrink: 0; font-size: 17px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px var(--pad-x); }
.footer-brand { gap: 14px; }
.footer-brand .imperva-logo { width: 96px; }
.footer-brand .thales-logo { width: 62px; }
.footer-brand .brand-divider { height: 24px; }
.copyright { margin: 0 auto 0 0; font-size: 13px; color: #7183a0; }
.footer nav { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.footer nav span { color: #b2c0d4; }

/* Terms modal */
.terms-dialog { width: min(760px, calc(100% - 32px)); max-height: min(820px, calc(100dvh - 32px)); padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 32px 100px #071a3b59; }
.terms-dialog::backdrop { background: #071a3bb8; backdrop-filter: blur(5px); }
.terms-dialog[open] { animation: terms-in .24s var(--ease-out); }
.terms-panel { display: flex; flex-direction: column; max-height: min(820px, calc(100dvh - 32px)); }
.terms-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 30px 32px 24px; border-bottom: 1px solid var(--line); }
.terms-eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.terms-header h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.12; letter-spacing: -.035em; }
.terms-header form, .terms-footer form { margin: 0; }
.terms-close-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: -4px -6px 0 0; padding: 0; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: #f5f8fc; color: var(--ink); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.terms-close-icon:hover { border-color: #adc6ef; background: #eaf2ff; color: var(--blue); }
.terms-close-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.terms-copy { padding: 26px 32px; overflow-y: auto; color: #43536b; font-size: 15px; line-height: 1.66; }
.terms-copy:focus { outline: 0; }
.terms-copy p { margin: 0 0 18px; }
.terms-copy p:last-child { margin-bottom: 0; }
.terms-warranty { padding: 18px; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; background: #f2f6fc; color: #26364f; font-size: 13px; font-weight: 650; line-height: 1.62; }
.terms-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 32px; border-top: 1px solid var(--line); background: #f8fafd; }
.terms-footer p { margin: 0; color: #52627a; font-size: 13px; line-height: 1.5; }
.terms-footer a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.terms-close { min-width: 132px; min-height: 46px; padding: 10px 18px; flex-shrink: 0; font-size: 15px; }
body:has(.terms-dialog[open]) { overflow: hidden; }
@keyframes terms-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }


/* Responsive */
@media (max-width: 1080px) {
  :root { --split: 100%; }
  .header { grid-template-columns: 1fr auto; height: 80px; }
  .header .brand { padding-left: var(--pad-x); }
  .header-actions { padding-right: var(--pad-x); }
  .header-actions .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  /* Compact stacked hero so the checker form is visible on first load. */
  .hero-copy { padding: 108px var(--pad-x) 44px; }
  .vulnerability-name { font-size: clamp(64px, 10.5vw, 112px); margin-bottom: 12px; }
  .hero-statement { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
  .hero-statement br { display: none; }
  .hero-description { max-width: 56%; font-size: 18px; margin-bottom: 22px; }
  .expert-link { font-size: 18px; }
  .stripes { left: auto; right: var(--pad-x); width: 36%; max-width: 400px; }
  .checker-panel { padding: 44px var(--pad-x) 64px; }
  .checker-content h2 { max-width: none; }
  .remediation-panel { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefits { align-items: start; }
  .benefits > h2 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .header { height: 68px; }
  .imperva-logo { width: 96px; }
  .thales-logo { width: 66px; }
  .brand { gap: 12px; }
  .brand-divider { height: 28px; }
  .emergency-button { min-height: 40px; padding: 9px 14px; gap: 8px; font-size: 14px; border-radius: 7px; }
  .emergency-button .arrow { width: 18px; height: 18px; }
  .desktop-cta { display: none; }
  .mobile-cta { display: inline; white-space: nowrap; }
  /* Compact hero so the checker form is visible on first load. */
  .hero-copy { padding: 84px 20px 30px; }
  .vulnerability-name { font-size: clamp(52px, 16vw, 76px); margin-bottom: 10px; }
  .hero-statement { font-size: 22px; margin-bottom: 8px; }
  .hero-statement br { display: none; }
  .hero-description { max-width: 62%; font-size: 15px; line-height: 1.45; margin-bottom: 0; }
  .expert-link { display: none; }
  .stripes { left: auto; right: 16px; width: 34%; }
  .checker-panel { padding: 28px 20px 48px; }
  .form-eyebrow { font-size: 12px; margin-bottom: 18px; }
  .eyebrow-bar { width: 32px; height: 5px; }
  .checker-content h2 { font-size: 42px; margin-bottom: 14px; }
  .form-description { font-size: 17px; margin-bottom: 30px; }
  .field-label { font-size: 16px; margin-bottom: 10px; }
  .url-field input { height: 58px; font-size: 17px; padding-left: 52px; }
  .url-field > svg { left: 17px; width: 21px; }
  .authorization { font-size: 15px; gap: 12px; margin: 20px 0 22px; }
  .authorization input { width: 24px; height: 24px; }
  .check-button { min-height: 58px; font-size: 18px; }
  .form-note { font-size: 13px; margin-top: 18px; }
  .steps { grid-template-columns: 1fr; gap: 22px; padding-top: 42px; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
  .step-number { grid-row: span 2; width: 40px; height: 40px; margin: 0; font-size: 17px; }
  .step:not(:last-child)::after { top: 48px; bottom: -18px; left: 19px; right: auto; width: 2px; height: auto; transform-origin: top; }
  .step h3 { margin: 8px 0 6px; font-size: 17px; }
  .step p { max-width: none; font-size: 15px; }
  .advisory { padding: 52px 20px; }
  .advisory-header { margin-bottom: 30px; }
  .advisory-header h2 { font-size: 38px; }
  .cve-grid { grid-template-columns: 1fr; }
  .cve-card { padding: 24px 20px; }
  .cve-card-top { align-items: flex-start; }
  .cve-facts div { grid-template-columns: 1fr; gap: 5px; }
  .remediation-panel { padding: 28px 22px; }
  .remediation-panel ul { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; gap: 28px; padding: 48px 24px; }
  .benefit-icon { width: 50px; height: 50px; padding: 9px; }
  .help-band { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .help-band .button, .help-actions { width: 100%; }
  .result-card { padding: 22px 20px 20px; }
  .result h3 { font-size: 21px; }
  .result-icon { width: 44px; height: 44px; }
  .result-facts { grid-template-columns: 1fr 1fr; }
  .result-facts div:last-child { grid-column: 1 / -1; }
  .trial { flex-direction: column; align-items: stretch; }
  .trial-actions { flex-direction: column; gap: 8px; }
  .trial-actions .button { width: 100%; }
  .copyright { display: none; }
  .footer { padding: 22px 24px; flex-wrap: wrap; gap: 16px; }
  .terms-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .terms-panel { max-height: calc(100dvh - 20px); }
  .terms-header { padding: 22px 20px 18px; }
  .terms-copy { padding: 20px; font-size: 14px; }
  .terms-footer { align-items: stretch; flex-direction: column; gap: 16px; padding: 18px 20px 20px; }
  .terms-close { width: 100%; }
}
@media (max-width: 370px) {
  .header .brand { padding-left: 16px; }
  .header-actions { padding-right: 16px; }
  .imperva-logo { width: 84px; }
  .thales-logo { width: 56px; }
  .emergency-button .arrow { display: none; }
  .hero-copy, .checker-panel { padding-left: 18px; padding-right: 18px; }
  .checker-content h2 { font-size: 36px; }
  .authorization { font-size: 14px; }
}

/* Desktop: size the whole first screen from the tighter of viewport width and height, so the hero
   (title, form and steps) always fits in 100% view, including short laptop screens. */
@media (min-width: 1081px) {
  :root { --s: min(1vw, 1.45vh); }
  .hero { min-height: 100vh; min-height: 100svh; }
  .header { height: calc(var(--s) * 5.8); }
  .imperva-logo { width: calc(var(--s) * 8.3); }
  .thales-logo { width: calc(var(--s) * 6.6); }
  .brand-divider { height: calc(var(--s) * 2.5); }
  .header-actions { font-size: max(14px, calc(var(--s) * 1.07)); gap: calc(var(--s) * 2.4); }
  .button-navy { font-size: max(14px, calc(var(--s) * 1.07)); min-height: calc(var(--s) * 3.3); padding: calc(var(--s) * .85) calc(var(--s) * 1.5); }
  .hero-copy { padding: calc(var(--s) * 10.8) var(--pad-x) calc(var(--s) * 6); }
  .vulnerability-name { font-size: calc(var(--s) * 12.6); margin-bottom: calc(var(--s) * 1.1); }
  .hero-statement { font-size: calc(var(--s) * 3.4); margin-bottom: calc(var(--s) * 1.4); }
  .hero-description { font-size: max(16px, calc(var(--s) * 1.64)); max-width: calc(var(--s) * 30); margin-bottom: calc(var(--s) * 2.5); }
  .expert-link { font-size: max(16px, calc(var(--s) * 1.32)); }
  .stripes { width: min(calc(100% - var(--pad-x) - 9%), calc(var(--s) * 44)); }
  .checker-panel { padding-top: calc(var(--s) * 9.8); padding-bottom: calc(var(--s) * 2); }
  .form-eyebrow { font-size: max(12px, calc(var(--s) * .95)); margin-bottom: calc(var(--s) * 1.6); }
  .eyebrow-bar { width: calc(var(--s) * 2.9); height: max(4px, calc(var(--s) * .44)); }
  .checker-content h2 { font-size: calc(var(--s) * 5.2); max-width: calc(var(--s) * 33); margin-bottom: calc(var(--s) * 1.4); }
  .form-description { font-size: max(16px, calc(var(--s) * 1.58)); margin-bottom: calc(var(--s) * 2.9); }
  .checker-panel { padding-left: clamp(32px, 4.5vw, 80px); padding-right: clamp(32px, 4.5vw, 80px); }
  .checker-content { max-width: 820px; }
  /* Results use the full panel: less top padding and a wider content column. */
  .checker-panel { transition: padding-top .4s var(--ease-out); }
  .checker-panel:has(.result:not([hidden])) { padding-top: calc(var(--s) * 6.8); }
  .field-label { font-size: max(15px, calc(var(--s) * 1.26)); margin-bottom: calc(var(--s) * .9); }
  .url-field input { height: max(50px, calc(var(--s) * 4.7)); font-size: max(16px, calc(var(--s) * 1.4)); padding-left: calc(var(--s) * 4.5); }
  .url-field > svg { left: calc(var(--s) * 1.55); width: calc(var(--s) * 1.65); height: calc(var(--s) * 1.65); }
  .authorization { font-size: max(14px, calc(var(--s) * 1.2)); margin: calc(var(--s) * 1.5) 0 calc(var(--s) * 1.75); }
  .authorization input { width: max(20px, calc(var(--s) * 1.75)); height: max(20px, calc(var(--s) * 1.75)); }
  .check-button { min-height: max(48px, calc(var(--s) * 4.5)); font-size: max(16px, calc(var(--s) * 1.4)); }
  .form-note { font-size: max(13px, calc(var(--s) * 1)); margin-top: calc(var(--s) * 1.6); }
  .steps { padding-top: calc(var(--s) * 3.9); }
  .step-number { width: calc(var(--s) * 2.8); height: calc(var(--s) * 2.8); margin-bottom: calc(var(--s) * 1.6); font-size: max(14px, calc(var(--s) * 1.2)); }
  .step:not(:last-child)::after { top: calc(var(--s) * 1.35); left: calc(var(--s) * 4.8); right: calc(var(--s) * 1.3); }
  .step h3 { font-size: max(15px, calc(var(--s) * 1.2)); margin-bottom: calc(var(--s) * .75); }
  .step p { font-size: max(13px, calc(var(--s) * 1)); max-width: 240px; }
  .result h3 { font-size: max(20px, calc(var(--s) * 1.6)); }
  .result-message { font-size: max(14px, calc(var(--s) * 1.02)); margin-top: calc(var(--s) * 1.1); }
  .result-evidence li { font-size: max(13px, calc(var(--s) * .9)); }
  .result-facts { margin-top: calc(var(--s) * 1.2); }
  .result-facts div { padding: calc(var(--s) * .7) 16px; }
  .result-facts dd { font-size: max(15px, calc(var(--s) * 1.08)); }
}

/* Short desktop screens: trim the result chrome so it still fits above the pinned steps. */
@media (min-width: 1081px) and (max-height: 760px) {
  .checker-panel:has(.result:not([hidden])) { padding-top: calc(var(--s) * 6.2); }
  .trial { padding: 12px 20px; }
  .trial-copy { display: none; }
  .result-card { padding-top: 18px; padding-bottom: 16px; }
}
