/* ==========================================================================
   H.S. CyberDefense
   One stylesheet for the whole site. Fonts: Bricolage Grotesque (headings), Figtree (text), Spline Sans Mono (labels). Brand colors live in :root, so a
   color change is a one-line edit.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2-variations"),
       url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("../fonts/spline-sans-mono.woff2") format("woff2-variations"),
       url("../fonts/spline-sans-mono.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  /* Brand: taken from the shield logo */
  --brand: #2a5fd6;
  --brand-strong: #1f4db5;
  --brand-tint: #eaf0fd;
  --brand-ink: #10265e;
  --shield-light: #5687ec;
  --shield-ring: #6184d9;

  /* Neutrals */
  --ink: #140b34;
  --ink-2: #48506e;
  --ink-3: #5a6580;
  --paper: #f4f6fb;
  --surface: #ffffff;
  --line: #dde2ef;

  /* Signals */
  --flag: #ffd84a;
  --flag-soft: #fff3bf;
  --alert: #d93a3f;
  --ok: #138a5a;
  --ok-tint: #e6f5ee;

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.875rem, 1.45rem + 1.9vw, 2.75rem);
  --step-4: clamp(2.375rem, 1.55rem + 3.6vw, 4.25rem);

  /* Shape and space */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 10px 28px -12px rgba(15, 27, 45, 0.18);
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 116px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-strong); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p, ul, ol, figure, blockquote { margin: 0; }

::selection { background: var(--flag); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke-width: 1.9;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section); overflow-x: clip; }
.section--tint { background: var(--paper); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-3); }
.section-head .lead { margin-top: 16px; }

.eyebrow {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow__sep { color: var(--ink-3); margin-inline: 0.5em; }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }

.prose { max-width: 62ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose > .eyebrow + * { margin-top: 0; }
.prose h2 { font-size: var(--step-3); color: var(--ink); margin-bottom: 0.2em; }
.prose h3 { font-size: var(--step-2); color: var(--ink); margin-top: 1.6em; }
.prose strong { color: var(--ink); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.split--center { align-items: center; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Highlighter mark (the site's one recurring accent) ---------- */
.mark {
  background: linear-gradient(var(--flag), var(--flag)) 0 86% / 100% 0.34em no-repeat;
  padding-inline: 0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.82em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--flag); color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn:active { transform: translateY(1px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
/* The frosted background lives on a pseudo-element: a backdrop-filter on the
   header itself would trap the fixed-position mobile menu inside the header. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.nav-open .site-header::before { background: #fff; }
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand__logo { height: 46px; width: auto; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 12px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.nav__link:hover { background: var(--paper); color: var(--ink); }
.nav__link[aria-current="page"],
.nav__link.is-current { color: var(--brand); }
.nav__link .icon { width: 1em; height: 1em; transition: transform 0.2s ease; }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }

.subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  min-width: 280px;
  padding: 8px;
  list-style: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: none;
}
.subnav::before { /* hover bridge so the menu doesn't close in the gap */
  content: "";
  position: absolute;
  inset: -10px 0 auto 0;
  height: 10px;
}
.nav__item.is-open > .subnav { display: block; }
@media (hover: hover) and (min-width: 1001px) {
  .nav__item--sub:hover > .subnav { display: block; }
}

.subnav a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.subnav a:hover { background: var(--paper); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--brand-tint); }
.subnav .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.subnav__title { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.subnav__desc { font-size: 0.85rem; line-height: 1.35; color: var(--ink-3); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--open { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px var(--gutter) 32px;
    background: #fff;
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .nav-open .nav { display: flex; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }
  .nav__link:hover { background: none; }
  .nav__item--sub > .nav__link { display: none; }
  .subnav {
    position: static;
    display: block;
    min-width: 0;
    padding: 4px 0 8px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
  .subnav::before { display: none; }
  .subnav a { padding: 12px 4px; }
  .nav .btn { width: 100%; padding-block: 1em; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: var(--paper);
  padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 { font-size: var(--step-4); letter-spacing: -0.028em; }
.hero .lead { margin-top: 22px; max-width: 34em; }
.hero .actions { margin-top: 32px; }

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances .icon { width: 18px; height: 18px; color: var(--ok); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  overflow-x: clip;
  background: var(--paper);
  padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.page-hero__grid--solo { grid-template-columns: minmax(0, 860px); }
.page-hero h1 { font-size: clamp(2.25rem, 1.55rem + 3vw, 3.75rem); letter-spacing: -0.026em; }
.page-hero .lead { margin-top: 20px; max-width: 36em; }
.page-hero .actions { margin-top: 30px; }

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.summary-card__title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.summary-card .checklist { gap: 14px; }

.facts { display: grid; gap: 0; margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--ink-3); font-size: 0.95rem; }
.facts dd { margin: 0; font-weight: 700; }

.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.mini-steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.mini-steps__n {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
}
.mini-steps strong { display: block; line-height: 1.35; }
.mini-steps span { color: var(--ink-2); font-size: 0.95rem; }

.quick-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quick-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.quick-links a:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--ink); }
.quick-links .icon-tile { margin: 0; width: 40px; height: 40px; }
.quick-links .icon--arrow { margin-left: auto; color: var(--ink-3); width: 18px; height: 18px; }

/* ---------- Cards and features ---------- */
.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand);
}
.icon-tile .icon { width: 24px; height: 24px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card h3 { font-size: var(--step-2); margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.card .checklist { margin-top: 18px; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-weight: 700;
  text-decoration: none;
}
.card__link .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s ease; }
.card--link:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--link:hover .card__link .icon { transform: translateX(3px); }
.card--link .card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--ink-2); }

.inline-link {
  font-weight: 700;
  text-decoration: none;
}
.inline-link .icon { display: inline-block; width: 1.05em; height: 1.05em; margin-left: 0.3em; vertical-align: -0.17em; }
.inline-link:hover { text-decoration: underline; }

.below-grid { margin-top: 28px; }

/* Statement with a source line */
.stat-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: clamp(32px, 4vw, 48px);
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--flag-soft);
  max-width: 820px;
}
.stat-note .icon { width: 26px; height: 26px; color: var(--ink); margin-top: 2px; }
.stat-note p { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.stat-note cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.stat-note cite a { color: inherit; }

/* ---------- Checklists ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; }
.checklist .tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ok-tint);
  color: var(--ok);
}
.checklist .tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 16px; }
.checklist strong { display: block; color: var(--ink); }
.checklist span.muted { color: var(--ink-2); }

.callout {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--flag);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Steps (a real sequence) ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--surface);
}
.section--tint .step::before { box-shadow: 0 0 0 4px var(--paper); }
.step__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}
.step h3 { font-size: 1.375rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); }

/* ---------- Topic list ---------- */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.topics li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 700;
}
.topics .icon { width: 22px; height: 22px; color: var(--brand); }

/* ---------- Tips (resources) ---------- */
.tip { counter-increment: tip; }
.tips { counter-reset: tip; }
.tip h3 { font-size: 1.25rem; margin-bottom: 8px; }
.tip p { color: var(--ink-2); }

/* ---------- Two-up vision/mission ---------- */
.statement {
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.statement h3 { font-size: var(--step-2); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.statement h3 .icon { color: var(--brand); width: 26px; height: 26px; }
.statement p { color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: var(--step-3); }
.cta-band p { margin-top: 14px; max-width: 40em; color: rgba(255, 255, 255, 0.78); }
.cta-band .mark { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.faq__intro h2 { font-size: var(--step-3); }
.faq__intro p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--brand); }
.faq__list summary .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--brand);
  transition: transform 0.25s ease;
}
.faq__list details[open] summary .icon { transform: rotate(45deg); }
.faq__answer { padding: 0 40px 24px 0; color: var(--ink-2); }
.faq__answer > * + * { margin-top: 0.8em; }
.faq__answer ul, .faq__answer ol { padding-left: 1.25em; display: grid; gap: 6px; }
.faq__answer strong { color: var(--ink); }

/* ---------- Newsletter ---------- */
.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--brand-tint);
}
.newsletter h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
.newsletter p:not(.eyebrow) { margin-top: 10px; color: var(--ink-2); }
.inline-form { display: flex; gap: 10px; }
.inline-form .input { flex: 1; min-width: 0; }
.form-note { margin-top: 10px; font-size: 0.875rem; color: var(--ink-3); }
.form-note a { color: inherit; }

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: var(--step-2); margin-bottom: 6px; }
.form-card > p { color: var(--ink-2); margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .optional { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2345516b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: #c3ccdc; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.contact-list .icon-tile { margin: 0; width: 44px; height: 44px; }
.contact-list small { display: block; color: var(--ink-3); font-size: 0.875rem; }
.contact-list a, .contact-list strong { font-weight: 700; color: var(--ink); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }

.book-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
}
.book-box h2 { color: #fff; font-size: 1.375rem; margin-bottom: 8px; }
.book-box .btn { margin-top: 18px; }

/* ---------- Simple pages (legal, thank you, 404) ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.legal .updated { margin-top: 12px; color: var(--ink-3); font-family: var(--font-mono); font-size: 0.875rem; }
.legal h2 { font-size: 1.375rem; margin-top: 2.2em; margin-bottom: 0.6em; color: var(--ink); }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 1em; }
.legal ul { padding-left: 1.25em; margin-top: 0.8em; display: grid; gap: 6px; }

.message-page { text-align: center; max-width: 640px; margin-inline: auto; }
.message-page .icon-tile { margin: 0 auto 22px; width: 64px; height: 64px; border-radius: 20px; }
.message-page .icon-tile .icon { width: 30px; height: 30px; }
.message-page h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
.message-page p { margin-top: 16px; color: var(--ink-2); font-size: var(--step-1); }
.message-page .actions { justify-content: center; margin-top: 30px; }
.link-list { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 28px;
  background: var(--ink);
  color: #b5b1cf;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 30em; }
.footer-brand .tagline { color: #fff; font-weight: 700; }
.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #c9c6dc; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--shield-ring); }

.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.social a {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.social a:hover { background: #fff; border-color: #fff; color: var(--ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9375rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: #c9c6dc; }
.footer-bottom a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }

/* ==========================================================================
   Signature: "Spot the red flags" phishing email
   ========================================================================== */
.phish-wrap { position: relative; }
.phish-wrap::before { /* a second email peeking out behind, like an inbox stack */
  content: "";
  position: absolute;
  inset: 22px -14px -14px 22px;
  border-radius: 24px;
  background: var(--brand-tint);
  border: 1px solid var(--line);
  transform: rotate(2.2deg);
}

.phish {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 34px 64px -34px rgba(15, 27, 45, 0.45);
}

.phish__head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.phish__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--flag);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.phish__pill .icon { width: 14px; height: 14px; }
.phish__title { margin-top: 12px; font-size: 1.4rem; }
.phish__hint { margin-top: 4px; color: var(--ink-2); font-size: 0.95rem; }

.phish__mail { padding: 18px 24px 22px; }
.phish__meta {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.phish__row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 8px; }
.phish__label { color: var(--ink-3); }
.phish__subject { color: var(--ink); font-weight: 600; }
.phish__body { display: grid; gap: 12px; font-size: 0.98rem; }

.flag {
  position: relative;
  display: inline;
  margin: 0 -0.12em;
  padding: 0.04em 0.12em;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-color 0.25s ease;
}
.flag:hover { background: var(--flag-soft); }
.flag:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.flag.is-found { background: var(--flag); color: var(--ink); }
.flag.is-found::after {
  content: attr(data-n);
  position: absolute;
  top: -0.75em;
  right: -0.8em;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  background: var(--alert);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45em;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.phish__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.flag--cta {
  margin: 0;
  padding: 11px 20px;
  border-radius: 8px;
  background: #0b7a75;
  color: #fff;
  font-weight: 700;
}
.flag--cta:hover { background: #096963; }
.flag--cta.is-found { background: var(--flag); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.phish__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: none;
}
.phish__url .icon { width: 14px; height: 14px; }
.flag--cta:hover + .phish__url,
.flag--cta:focus-visible + .phish__url,
.flag--cta.is-found + .phish__url { display: inline-flex; }

.phish__panel { padding: 16px 24px 20px; background: var(--paper); border-top: 1px solid var(--line); }
.phish__status { display: flex; align-items: center; gap: 12px; }
.phish__dots { display: inline-flex; gap: 6px; }
.phish__dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfd6e3;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.phish__dots i.is-on { background: var(--alert); transform: scale(1.15); }
.phish__score { font-weight: 700; font-size: 0.95rem; }
.phish__reveal {
  margin-left: auto;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.phish__reveal:hover { text-decoration: underline; }
.phish__explain {
  min-height: 4.6em;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}
.phish__explain strong { color: var(--ink); }
.phish__explain .n {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--alert);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: 0.12em;
}
.phish.is-done .phish__panel { background: var(--ok-tint); }
.phish.is-done .phish__explain { color: var(--ink); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .flag.is-found::after { animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
  .reveal { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal--2 { animation-delay: 0.12s; }
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero__grid, .page-hero__grid, .split, .faq, .cta-band, .newsletter { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phish-wrap { max-width: 560px; }
  .cta-band .actions { margin-top: 4px; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .brand__logo { height: 38px; }
  .brand__name { font-size: 1.1rem; }
  .grid--2, .grid--3, .grid--4, .steps, .checklist--2, .topics, .form__row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .hero .actions .btn, .page-hero .actions .btn, .cta-band .actions .btn { width: 100%; }
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; }
  .phish-wrap::before { inset: 16px -8px -10px 16px; }
  .phish__head, .phish__mail, .phish__panel { padding-inline: 18px; }
  .phish__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq__answer { padding-right: 0; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

.nowrap { white-space: nowrap; }
