/* Cyber Protection (CPI) brand system.
   Navy + gold, light "paper" ground, condensed display type, sharp 2px corners,
   gold underline rules and 45° navy/gold diagonal-stripe accents.

   Web fonts load from Google Fonts at runtime (see index.html <link>). Body text
   is Noto Sans (regular 400 and bold 700). */

:root {
  /* Brand palette (from the CPI brand system) */
  --navy: #203a7b;        /* primary — buttons, rules, borders, eyebrows */
  --navy-deep: #142534;   /* headings, dark grounds */
  --gold: #e8ae5c;        /* accent — underlines, foil mark, highlights */
  --gold-soft: #f0c889;
  --gold-deep: #b9822a;   /* gold that stays legible as text/on white */
  --paper: #f1f8fa;       /* page background */
  --paper-alt: #faf6ef;   /* warm paper */
  --surface: #ffffff;     /* cards, chips */
  --ink: #0d1a26;         /* body text */
  --muted: #6a7886;
  --border: #d9dee4;

  /* Semantic status set — NOT in the brand system; added for the scanner's
     pass/review/action states, tuned to sit beside navy + gold. */
  --pass: #1f7a5a;
  --warn: #c98a2b;
  --fail: #c0392b;
  --info: #6a7886;

  /* Logo colors, used where the brand must stand out */
  --brand-navy: #263D95;
  --brand-gold: #C09B3D;
  --font-display: "Noto Sans", "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Noto Sans", "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
}

/* ---- Brand chrome: top bar --------------------------------------------- */
.brandbar {
  background: var(--navy-deep);
  border-bottom: 2px solid var(--gold);
}
.brandbar-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brandbar img { display: block; height: 44px; width: auto; }

/* Mirrored top nav — links back to the apex landing page sections */
.brandnav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.brandnav a {
  font-family: var(--font-body); font-weight: 400; font-size: 14px;
  color: #e2e9f2; text-decoration: none; letter-spacing: 0.01em;
}
.brandnav a:hover { color: var(--gold); }
.brandnav .brandnav-cta {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 16px; letter-spacing: 0.05em; color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  padding: 8px 16px; border-radius: 2px;
}
.brandnav .brandnav-cta:hover { color: var(--navy-deep); filter: brightness(1.05); }
/* Mobile menu: links fold into a panel under the bar; the gold button stays visible. */
.brandbar { position: relative; }
.brandnav-menu { display: flex; align-items: center; gap: 18px; }
.menu-toggle {
  display: none; flex: none; width: 44px; height: 40px; padding: 0; background: transparent;
  border: 2px solid var(--gold); border-radius: 2px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--gold); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.brandbar.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.brandbar.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.brandbar.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .brandnav { margin-left: auto; flex-wrap: nowrap; }
  .brandnav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); border-top: 1px solid rgba(232,174,92,.35); border-bottom: 2px solid var(--gold);
    padding: 6px 20px 14px; box-shadow: 0 14px 24px rgba(16,31,54,.35);
  }
  .brandbar.menu-open .brandnav-menu { display: flex; }
  .brandnav-menu a { padding: 14px 0; font-size: 16px; font-weight: 700; border-bottom: 1px solid rgba(232,239,247,.14); }
  .brandnav-menu a:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
  .brandbar-inner { gap: 10px; }
  .brand-link { gap: 9px; }
  .brandbar img { height: 36px; }
  .brandnav .brandnav-cta { padding: 8px 11px; font-size: 15px; white-space: nowrap; }
  .brandbar .wordmark .name { font-size: 14px; letter-spacing: .1em; }
  .brandbar .wordmark .descriptor { letter-spacing: .2em; }
}
@media (max-width: 370px) {
  .brandbar .wordmark .name { font-size: 12px; letter-spacing: .06em; }
  .brandnav .brandnav-cta { padding: 8px 8px; font-size: 14px; letter-spacing: .02em; }
}
@media (prefers-reduced-motion: reduce) { .menu-toggle span { transition: none; } }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .name {
  font-family: var(--font-body); font-weight: 700; color: #fff;
  font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase;
}
.wordmark .descriptor {
  font-family: var(--font-body); font-weight: 700; color: var(--gold);
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  margin-top: 5px;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 44px 20px 40px; }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--navy);
  margin: 0 0 12px; display: inline-block; padding-bottom: 7px;
  border-bottom: 2px solid var(--gold);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  color: var(--navy-deep); text-transform: uppercase;
  font-size: 58px; line-height: 0.92; letter-spacing: 0.01em;
  margin: 0 0 16px;
}
.sub { color: var(--muted); margin: 0 0 26px; font-size: 16px; font-weight: 400; max-width: 60ch; }

/* 45° navy/gold diagonal-stripe corner accent (brand signature) */
.stripe-corner {
  position: absolute; top: 0; right: 0; width: 64px; height: 64px;
  background-image: repeating-linear-gradient(
    45deg, var(--navy) 0 5px, var(--gold) 5px 10px);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.9;
}
@media (max-width: 560px) { .stripe-corner { display: none; } }

/* ---- Cards ------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(20, 37, 52, 0.06);
}
/* Key cards get a gold top rule */
.card.accent { border-top: 3px solid var(--gold); }

/* ---- Form -------------------------------------------------------------- */
.form .field { margin-bottom: 18px; }
.form label {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--navy-deep); margin-bottom: 7px;
}
.form .muted { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.form input {
  width: 100%; padding: 13px 14px; font-size: 15px; font-family: var(--font-body);
  font-weight: 400; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 2px;
}
.form input::placeholder { font-family: var(--font-mono); color: #9aa6b1; font-weight: 400; }
.form input:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }

button {
  width: 100%; padding: 14px 26px; font-family: var(--font-display); font-weight: 700;
  font-size: 21px; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--navy); color: #fff; border: 0; border-radius: 2px;
  cursor: pointer;
}
button:hover { background: #1a3068; }
button:disabled { opacity: 0.6; cursor: progress; }

/* Consent checkbox (overrides the uppercase label style used for text fields) */
.form label.check {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400;
  color: var(--ink); line-height: 1.5; margin-bottom: 0;
}
.form label.check input[type="checkbox"] {
  width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 0;
  accent-color: var(--navy); cursor: pointer;
}
.form label.check a { color: var(--navy); text-decoration: underline; font-weight: 700; }
.form label.check .req { color: var(--fail); font-weight: 700; }
.form label.check.newsletter { margin-top: 10px; }
.form-privacy { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 60ch; }

.error { color: var(--fail); font-size: 14px; margin: 12px 0 0; font-weight: 700; }
.field-error { margin: 7px 0 0; }
.hint { color: var(--muted); font-size: 13px; margin: 7px 0 0; font-weight: 400; }
.progress {
  color: var(--navy); font-size: 14px; margin: 14px 0 0; text-align: center;
  font-weight: 700; letter-spacing: 0.02em;
}
.notice {
  margin: 14px 0 0; padding: 12px 14px; text-align: center;
  font-size: 14px; font-weight: 700; color: var(--navy-deep);
  background: var(--paper-alt); border: 1px solid var(--gold);
  border-radius: 2px;
}
/* Time-sensitive security alert above the scan form. */
.alert {
  margin: 0 0 24px; padding: 18px 20px;
  background: var(--paper-alt); border: 1px solid var(--border);
  border-left: 4px solid var(--fail); border-radius: 2px;
  color: var(--ink); font-size: 15px; line-height: 1.5;
}
.alert-tag {
  margin: 0 0 6px; color: var(--fail); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.alert h2 {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; font-size: 28px; line-height: 1.05; color: var(--navy-deep);
}
.alert p { margin: 0 0 8px; }
.alert .alert-sub { font-weight: 700; margin-bottom: 4px; }
.alert ol { margin: 0 0 10px; padding-left: 20px; }
.alert li { margin-bottom: 6px; }
.alert .alert-foot { margin: 0; font-size: 14px; color: var(--muted); }
.alert a { color: var(--navy); font-weight: 700; }

.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---- Result summary ---------------------------------------------------- */
.summary { display: flex; align-items: center; gap: 24px; }
.grade {
  width: 92px; height: 92px; flex: 0 0 92px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 52px;
  color: #fff; background: var(--info);
  /* Notched frame chip (brand signature) */
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.grade.A, .grade.B { background: var(--pass); }
.grade.C, .grade.D { background: var(--warn); }
.grade.E, .grade.F { background: var(--fail); }
.summary-meta h2 {
  margin: 0 0 4px; font-family: var(--font-display); font-weight: 700;
  font-size: 30px; color: var(--navy-deep); text-transform: uppercase; letter-spacing: 0.01em;
}
.score { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 0; color: var(--navy); }
.mail-status { margin: 9px 0 0; font-size: 13px; color: var(--pass); font-weight: 700; }

h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  color: var(--navy-deep); text-transform: uppercase; letter-spacing: 0.01em;
  margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold); display: inline-block;
}

/* ---- Next steps -------------------------------------------------------- */
.steps { margin: 4px 0 0; padding-left: 20px; }
.steps li { margin-bottom: 15px; }
.steps li::marker { color: var(--gold-deep); font-weight: 700; }
.steps strong { color: var(--navy-deep); font-weight: 700; }
.steps .sev {
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 2px; margin-left: 8px;
  color: #fff; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.08em;
}
.sev.critical, .sev.high { background: var(--fail); }
.sev.medium { background: var(--warn); }
.sev.low { background: var(--navy); }
.steps .what { color: var(--muted); }
.steps .fix { display: block; margin-top: 3px; color: var(--ink); }
.all-clear { color: var(--pass); margin: 0; font-weight: 700; }
.provider-list { margin: 0 0 14px; padding-left: 20px; }
.provider-list li { margin-bottom: 6px; }
.provider-links { display: block; margin-top: 2px; font-size: 14px; }
.provider-links a { color: var(--navy); font-weight: 700; }

/* ---- Findings ---------------------------------------------------------- */
.finding-group { margin-bottom: 18px; }
.finding-group h4 {
  font-family: var(--font-body); font-size: 12px; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 8px; font-weight: 700;
}
.finding {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.finding:last-child { border-bottom: 0; }
.dot { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 7px; border-radius: 0; }
.dot.pass { background: var(--pass); }
.dot.warn { background: var(--warn); }
.dot.fail { background: var(--fail); }
.dot.info { background: var(--info); }
.finding .title { font-weight: 700; color: var(--navy-deep); flex: 0 0 155px; }
.finding .desc { color: var(--muted); font-size: 14px; }

/* ---- Post-report CTA (email + book a Zoom review) ---------------------- */
.cta .eyebrow {
  /* Match the "Want a hand with this?" h3 so the two read as one heading */
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  letter-spacing: 0.01em; padding-bottom: 8px;
  margin: 0 10px 14px 0; vertical-align: bottom;
}
.cta-lead { color: var(--muted); font-weight: 400; margin: 0 0 18px; font-size: 15px; }
.cta-email { margin-bottom: 8px; }
.cta-email-lead { font-weight: 700; color: var(--navy-deep); margin: 0 0 10px; font-size: 14px; }
#capture-form { display: flex; gap: 10px; flex-wrap: wrap; }
#capture-form input {
  flex: 1 1 220px; padding: 12px 14px; font-size: 15px; font-family: var(--font-body);
  font-weight: 400; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 2px;
}
#capture-form input:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
#capture-form button {
  width: auto; flex: 0 0 auto; padding: 12px 22px; font-family: var(--font-display);
  font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--navy); color: #fff; border: 0; border-radius: 2px; cursor: pointer;
}
#capture-form button:hover { background: #1a3068; }
#capture-form button:disabled { opacity: 0.6; cursor: progress; }
.capture-status { margin: 10px 0 0; font-size: 14px; font-weight: 700; }
.capture-status.ok { color: var(--pass); }
.capture-status.err { color: var(--fail); }

.cta-divider {
  display: flex; align-items: center; text-align: center;
  color: var(--muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 700; margin: 22px 0 16px;
}
.cta-divider::before, .cta-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.cta-divider span { padding: 0 14px; }
.calendly-inline-widget { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }

.disclaimer { color: var(--muted); font-size: 13px; text-align: center; margin: 22px 0 0; }

/* ---- Footer ------------------------------------------------------------ */
.brandfoot {
  background: var(--navy-deep); color: #fff; margin-top: 8px;
  border-top: 2px solid var(--gold);
}
.brandfoot-inner {
  max-width: 760px; margin: 0 auto; padding: 26px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brandfoot img { height: 36px; width: auto; }
.brandfoot .name { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; }
.brandfoot .descriptor { color: var(--gold); font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase; margin-top: 4px; }
.brandfoot .note { color: #9fb0bf; font-size: 12px; margin-left: auto; font-weight: 400; }

@media (max-width: 560px) {
  .hero h1 { font-size: 44px; }
  .summary { flex-direction: column; text-align: center; }
  .finding { flex-wrap: wrap; }
  .finding .title { flex-basis: auto; }
  .brandfoot .note { margin-left: 0; }
}

/* ---- Scan page content sections (below the form) ---------------------- */
.content { margin-top: 8px; }
.block { margin: 56px 0 0; }
.block h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  color: var(--navy-deep); font-size: 40px; line-height: 0.98; letter-spacing: 0.01em;
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gold);
}
.block h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  color: var(--navy-deep); font-size: 26px; line-height: 1; letter-spacing: 0.01em;
  margin: 28px 0 8px;
}
.block p { margin: 0 0 14px; max-width: 68ch; }
.block a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.block a:hover { color: var(--gold-deep); }
.group-label {
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold-deep); margin: 26px 0 4px !important;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--border);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px;
  background: url("/key-outline.png") center / contain no-repeat;
}
.check-list strong { color: var(--navy-deep); }
.note {
  background: var(--paper-alt); border-left: 3px solid var(--gold);
  padding: 12px 16px; margin: 24px 0 0 !important; font-size: 14px; color: var(--ink);
}
.label-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.label-list li { display: flex; gap: 14px; align-items: baseline; }
.chip {
  flex: none; min-width: 78px; text-align: center; padding: 2px 10px; border-radius: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}
.chip.critical, .chip.high { background: var(--fail); }
.chip.medium { background: var(--warn); }
.chip.low { background: var(--info); }
@media (max-width: 560px) {
  .block { margin-top: 44px; }
  .block h2 { font-size: 34px; }
  .label-list li { flex-direction: column; gap: 4px; }
  .chip { align-self: flex-start; }
}

/* ---- Article: comparison table ---------------------------------------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); background: var(--surface); margin: 8px 0 14px;
}
.table-wrap:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
table.compare th, table.compare td {
  text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border);
}
table.compare thead th {
  background: var(--paper-alt); color: var(--navy-deep); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--gold);
}
table.compare tbody th { color: var(--navy-deep); font-weight: 700; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare .unchecked { color: var(--muted); font-style: italic; }

/* ---- FAQ ---- */
.faq h3 { font-size: 22px; margin: 24px 0 6px; }
.faq h3 + p { margin-bottom: 4px; }

/* ---- Closing call to action ---- */
.book h2 { border-bottom: 0; padding-bottom: 0; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.block a.btn {
  display: inline-block; padding: 13px 24px; border-radius: 2px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.1;
  letter-spacing: 0.05em; text-transform: uppercase; text-align: center;
}
.block a.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy-deep); }
.block a.btn-navy { background: var(--navy); color: #fff; }
.block a.btn-gold:hover { color: var(--navy-deep); filter: brightness(1.06); }
.block a.btn-navy:hover { color: #fff; filter: brightness(1.15); }
.block a.btn:focus-visible { outline: 2px solid var(--navy-deep); outline-offset: 3px; }
.brandline { margin: 22px 0 0 !important; font-family: var(--font-display); font-size: 26px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-deep); }
.brandline .bl-by { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: none; white-space: nowrap; color: var(--gold-deep); }
.tagline { margin: 2px 0 0 !important; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .btn-row a.btn { flex: 1 1 100%; } }

/* ---- Polish ---- */
.block h3 a { text-decoration: none; }
.block h3 a:hover { text-decoration: underline; }
.table-hint { display: none; font-size: 13px; color: var(--muted); margin: 0 0 6px !important; }
@media (max-width: 760px) { .table-hint { display: block; } }
@media (max-width: 560px) {
  #free-dmarc-checkers-title { font-size: 29px; }
  .brandline { font-size: 22px; }
}

/* Email deliverability flag (SPF, DKIM, DMARC) */
.tag-deliv {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-deep); background: var(--gold-soft); border: 1px solid var(--gold-deep);
  border-radius: 2px; vertical-align: middle; white-space: nowrap;
}
/* On phones, let the tag wrap instead of running off the screen. */
@media (max-width: 560px) {
  .tag-deliv { display: block; width: fit-content; max-width: 100%; white-space: normal; margin: 4px 0 0; }
  .finding .title { flex: 1 1 calc(100% - 30px); min-width: 0; }
}
.group-note {
  margin: 4px 0 10px; font-size: 14px; line-height: 1.45; color: var(--navy-deep);
  background: #fbf6ec; border-left: 3px solid var(--gold); padding: 8px 12px;
}

/* ---- Tool icons and pop-ups (free DMARC checkers) ---------------------- */
.tool-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 26px; }
.tool-row [role="listitem"] { min-width: 0; }
.tool-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%;
  padding: 16px 10px 14px; background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--gold); border-radius: 4px; cursor: pointer;
  font: inherit; color: var(--navy-deep); text-transform: none; letter-spacing: 0;
}
.tool-tile:hover { border-color: var(--navy); background: var(--surface); color: var(--navy); filter: none; }
.tool-tile:focus { outline: none; }
.tool-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tool-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--paper-alt); border: 1px solid var(--border);
}
.tool-icon img { width: 44px; height: 44px; }
.tool-initial { font-weight: 700; font-size: 20px; color: var(--navy); letter-spacing: .02em; }
.tool-name { font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; }
@media (max-width: 560px) { .tool-row { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tool-name { font-size: 13px; } }

dialog.popup {
  width: min(92vw, 520px); padding: 0; border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: 4px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 50px rgba(20,37,52,.28);
}
dialog.popup::backdrop { background: rgba(13, 26, 38, .55); }
.popup-body { padding: 22px 24px 20px; }
.popup-body h3 { margin: 0 0 10px; font-size: 20px; }
.popup-body h3 a { color: var(--navy); }
.popup-body p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; }
.popup-close {
  font: inherit; font-weight: 700; font-size: 14px; padding: 9px 16px; cursor: pointer;
  background: var(--navy); color: #fff; border: 0; border-radius: 3px; text-transform: none; letter-spacing: 0;
}
.popup-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- Key message: When a tool is not enough ---------------------------- */
.key-message {
  margin: 36px 0 0; padding: 28px 28px 26px;
  background: var(--brand-navy); color: #ffffff; border-radius: 4px;
  border-left: 6px solid var(--brand-gold);
  box-shadow: 0 10px 30px rgba(38, 61, 149, .22);
}
.key-message h3 {
  margin: 0 0 12px; color: #ffffff; font-size: 26px;
  border-bottom: 2px solid var(--brand-gold); padding-bottom: 8px; display: inline-block;
}
.key-message p { margin: 0 0 14px; color: #ffffff; font-size: 17px; line-height: 1.6; }
.key-message p:last-child { margin-bottom: 0; }
.key-message a { color: var(--brand-gold); font-weight: 700; }
.key-message a:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 2px; }
.key-message .key-cta { font-size: 19px; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.key-message .key-cta:hover { color: #ffffff; }
@media (max-width: 560px) {
  .key-message { padding: 22px 18px 20px; border-left-width: 5px; }
  .key-message h3 { font-size: 22px; }
  .key-message p { font-size: 16px; }
}

/* ---- Sample report images (What your report looks like) ---------------- */
.report-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; margin: 0 0 18px; }
.report-row p { margin: 0; }
.report-sample { width: 200px; height: auto; display: block; border-radius: 6px; }
@media (max-width: 560px) {
  .report-row { grid-template-columns: 1fr; gap: 12px; }
  .report-sample { width: 100%; max-width: 320px; }
}
