/* MyDNSTest – landing, result and status pages.
   Self-contained: does not depend on the Bootstrap/Minible theme.
   Fonts: uses 'Plus Jakarta Sans' if installed, otherwise the system UI font.
   To self-host it, add @font-face rules pointing at files under /public/assets/fonts. */

:root {
  --ink: #141a30;
  --soft: #4b5263;
  --muted: #5b6275;
  --brand: #5b73e8;
  --brand-solid: #4d66dd;   /* white text on this is 4.9:1 (the lighter brand blue is 4.1:1, below the 4.5:1 minimum) */
  --brand-ink: #3a4fc9;
  --tint: #ecefff;
  --navy: #0e1430;
  --navy-2: #1a2250;
  --bg: #f5f6fb;
  --line: #f0f2f8;
  --ok: #1f7a52;
  --ok-bg: #e3f6ec;
  --bad: #b3372b;
  --bad-bg: #fdebeb;
  --warn: #7a5400;
  --warn-bg: #fdf2d6;
  --shadow: 0 1px 3px rgba(20, 26, 48, .06);
}

* { box-sizing: border-box; }

body.m {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.m a { color: var(--brand-ink); }
.m h1, .m h2, .m h3 { margin: 0; letter-spacing: -.02em; }
.m p { margin: 0; }
.m .num { font-variant-numeric: tabular-nums; }
.m button { font-family: inherit; }
.m :focus-visible { outline: 3px solid #9fb0ff; outline-offset: 2px; }

.m-wrap { max-width: 960px; margin: 0 auto; padding: 0 clamp(16px, 3%, 24px); }
.m-main { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.m-main--wide { padding-top: 48px; padding-bottom: 56px; gap: 56px; }
.m-muted { color: var(--muted); }
.m-small { font-size: 14px; }

/* ---------- top bar ---------- */
.m-top { position: sticky; top: 0; z-index: 10; background: var(--navy); border-bottom: 1px solid #1d2759; }
.m-top .m-wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.m-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.m .m-brand { color: #fff; }
.m-brand img { display: block; width: 30px; height: 30px; background: #fff; border-radius: 8px; padding: 2px; }
.m-brand span { font-weight: 500; color: #aab4de; }
.m-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 14px; font-weight: 500; }
.m .m-nav a:not(.m-btn) { display: inline-flex; align-items: center; min-height: 44px; color: #d3daf5; text-decoration: none; }

/* top bar that scrolls away (the result page keeps its own sticky grade bar) */
.m-top--static { position: static; }

/* ---------- buttons ---------- */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 14px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.m-btn:hover { filter: brightness(1.07); }
.m-btn:active { transform: translateY(1px); }
.m .m-btn-primary { background: var(--brand-solid); color: #fff; }
.m .m-btn-dark { background: var(--ink); color: #fff; }
.m .m-btn-line { background: #fff; color: var(--ink); border: 1px solid #d3d9ee; font-weight: 600; }
.m .m-btn-ghost { background: transparent; color: #fff; border: 1px solid #3a4684; font-weight: 600; }
.m-btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; border-radius: 16px; }
.m-btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.m-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; padding: 0 8px; }
.m .m-hero .m-link { color: #d3daf5; }

/* ---------- hero ---------- */
.m-hero { position: relative; overflow: hidden; background: var(--navy); }
.m-hero::before {
  content: ''; position: absolute; left: 6%; top: 60px; width: 340px; height: 340px; border-radius: 50%;
  background: var(--ring, #5b73e8); opacity: .2; filter: blur(90px); pointer-events: none;
}
.m-hero--landing::before { left: auto; right: 6%; top: 40px; width: 380px; height: 380px; background: #5b73e8; opacity: .25; filter: blur(100px); }
.m-hero .m-wrap { position: relative; }
.m-hero-grid { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; }
.m-hero-text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.m-hero h1 { font-weight: 800; font-size: 38px; line-height: 1.1; color: #fff; }
.m-hero-sub { font-size: 18px; color: #d3daf5; max-width: 500px; }
.m-hero-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: #aab4de; }
.m-hero-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; align-items: center; }
.m-pill { align-self: flex-start; background: var(--navy-2); color: #d3daf5; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.m-hero--landing h1 { font-size: 46px; line-height: 1.06; }

/* ---------- score ring ---------- */
.m-gauge { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.m-ring { position: relative; width: 224px; height: 224px; }
.m-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.m-ring-track { fill: none; stroke: #1f2958; stroke-width: 14; }
.m-ring-arc { fill: none; stroke: var(--ring); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 578; stroke-dashoffset: var(--offset); animation: m-sweep 1.3s cubic-bezier(.2, .8, .2, 1) .15s both; }
.m-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.m-ring-letter { font-weight: 800; font-size: 92px; line-height: 1; letter-spacing: -.04em; color: #fff; animation: m-rise .6s ease .5s both; }
.m-ring-score { font-size: 15px; font-weight: 600; color: #c3cbee; }
.m-scale { display: flex; gap: 6px; }
.m-scale span { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-2); color: #8f9bcf; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.m-scale span.is-current { background: var(--ring); color: var(--navy); }

/* ---------- cards ---------- */
.m-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 26px clamp(18px, 3%, 32px); }
.m-card--tint { background: var(--tint); box-shadow: none; }
.m-card--navy { background: var(--navy); box-shadow: none; color: #fff; }
.m-card h2 { font-weight: 800; font-size: 20px; }
.m-section-title { font-weight: 800; font-size: 24px; }
.m-section-title--xl { font-size: 30px; }
.m-stack { display: flex; flex-direction: column; gap: 14px; }
.m-row-wrap { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- chips & status ---------- */
.m-chip { display: inline-block; text-align: center; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.m-chip--ok { background: var(--ok-bg); color: var(--ok); }
.m-chip--bad { background: var(--bad-bg); color: var(--bad); }
.m-chip--partial { background: var(--warn-bg); color: var(--warn); }
.m-status-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.m-status-icon--ok { background: var(--ok-bg); color: var(--ok); }
.m-status-icon--bad { background: var(--bad-bg); color: var(--bad); }
.m-status-icon--partial { background: var(--warn-bg); color: var(--warn); }
.m-status-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- points bar ---------- */
.m-points { display: flex; gap: 4px; }
.m-points div { min-width: 0; height: 30px; border-radius: 10px; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; transform-origin: left center; animation: m-grow .8s cubic-bezier(.2, .8, .2, 1) .3s both; }
.m-points .is-ok { background: #cdeedd; color: #1a6e49; }   /* darker than --ok so the small numbers pass 4.5:1 on the tint */
.m-points .is-bad { background: #f8d3d3; color: #a8312a; }
.m-points .is-partial { background: #fbe9b8; color: var(--warn); }

/* ---------- protections list ---------- */
.m-list-head { padding: 28px clamp(18px, 3%, 32px) 20px; display: flex; flex-direction: column; gap: 18px; }
.m-list-title { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: baseline; }
.m-list-title h2 { font-size: 22px; }
.m-item { padding: 16px clamp(18px, 3%, 32px); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; transition: background .15s ease; }
.m-item:hover { background: #fafbff; }
.m-item-main { flex: 1 1 200px; min-width: 0; }
.m-item-title { font-weight: 600; font-size: 16px; }
.m-item-line { font-size: 14px; color: var(--muted); }
.m-item-pts { font-size: 14px; color: var(--muted); }
.m-item .m-chip { flex: 0 0 auto; min-width: 128px; }
.m-item--bad { background: #fffafa; }
.m-item--partial { background: #fffdf5; }
.m-item-line--bad { color: #8f2a1f; font-weight: 600; }
.m-item-line--partial { color: #6b4a00; font-weight: 600; }
.m-note { font-size: 14px; color: var(--soft); background: #f3f5fd; border-radius: 12px; padding: 10px 14px; }

/* ---------- next steps ---------- */
.m-todo { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.m-todo i { flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid #c2cbee; border-radius: 6px; margin-top: 2px; }
.m-next-cta { flex: 2 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: space-between; background: var(--navy); border-radius: 24px; padding: 26px clamp(18px, 3%, 28px); }
.m-next-cta h3 { font-weight: 700; font-size: 18px; color: #fff; }
.m-next-cta p { font-size: 14px; color: #d3daf5; }

/* ---------- details ---------- */
.m-details { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 8px clamp(18px, 3%, 32px) 20px; }
.m-details summary, .m-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 56px; font-weight: 700; font-size: 16px; }
.m-details summary::-webkit-details-marker, .m-faq summary::-webkit-details-marker { display: none; }
.m-details summary span, .m-faq summary span { color: var(--brand); }
.m-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 20px; margin-top: 4px; }
.m-facts dt { font-size: 14px; color: var(--muted); }
.m-facts dd { margin: 0; font-weight: 600; }

/* ---------- landing ---------- */
.m-preview { background: #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); padding: 22px; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 340px; color: var(--ink); }
.m-preview-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.m-preview-head strong { letter-spacing: .08em; text-transform: uppercase; }
.m-preview-top { display: flex; align-items: center; gap: 18px; }
.m-mini-ring { position: relative; width: 104px; height: 104px; flex: 0 0 auto; }
.m-mini-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.m-mini-ring .t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.m-mini-ring b { font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.04em; }
.m-mini-ring small { font-size: 13px; color: var(--muted); }
.m-steps { display: flex; flex-direction: column; gap: 20px; }
.m-step { display: flex; gap: 16px; align-items: flex-start; }
.m-step b { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; background: var(--tint); color: var(--brand-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.m-step strong { display: block; font-size: 17px; }
.m-step span { font-size: 15px; color: var(--soft); }
.m-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.m-tile { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.m-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 26, 48, .10); }
.m-tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.m-tile-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.m-tile-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.m-tile-pts { font-weight: 800; font-size: 22px; color: var(--brand-ink); }
.m-tile strong { display: block; font-size: 17px; }
.m-tile span.d { font-size: 14px; color: var(--muted); }
.m-bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.m-band { border-radius: 16px; padding: 12px 16px; }
.m-band b { display: block; font-weight: 800; font-size: 22px; line-height: 1.2; }
.m-band span { font-size: 14px; font-weight: 600; }
.m-band--A { background: #e3f6ec; color: #1f7a52; }
.m-band--B { background: #edf6df; color: #4a7a1d; }
.m-band--C { background: #fdf2d6; color: #7a5400; }
.m-band--D { background: #fde8d8; color: #a24a12; }
.m-band--E { background: #fdebeb; color: #b3372b; }
.m-dolist { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 32px; color: #e3e8fb; font-size: 15px; }
.m-dolist div { display: flex; gap: 10px; }
.m-dolist svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.m-faq { background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.m-faq details { padding: 8px clamp(18px, 3%, 32px); border-bottom: 1px solid var(--line); }
.m-faq details:last-child { border-bottom: 0; }
.m-faq p { margin-bottom: 14px; color: var(--soft); font-size: 15px; }

/* ---------- test overlay & status pages ---------- */
.m-overlay { position: fixed; inset: 0; z-index: 50; background: var(--navy); color: #fff; overflow-y: auto; }
.m-overlay[hidden] { display: none; }
.m-overlay-in { max-width: 560px; margin: 0 auto; padding: 56px clamp(16px, 3%, 24px); display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.m-overlay h1, .m-overlay #testTitle, .m-overlay #testError > div:first-child > h2 { font-weight: 800; font-size: 30px; line-height: 1.2; color: #fff; }
.m-overlay-steps { align-self: stretch; background: #18214a; border-radius: 18px; padding: 8px 20px; text-align: left; }
.m-ostep { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #28336c; }
.m-ostep:last-child { border-bottom: 0; }
.m-ostep i { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #3a4684; display: flex; align-items: center; justify-content: center; }
.m-ostep.is-active i { border: 3px solid var(--brand); animation: m-pulse 1.6s ease-in-out infinite; }
.m-ostep.is-done i { border: 0; background: #12372f; }
.m-ostep.is-done i::after { content: ''; width: 12px; height: 6px; border-left: 3px solid #6ee7b0; border-bottom: 3px solid #6ee7b0; transform: rotate(-45deg) translate(1px, -1px); }
.m-ostep strong { display: block; }
.m-ostep small { font-size: 14px; color: #aab4de; }
.m-ostep.is-pending strong { color: #aab4de; }
.m-status-page .m-hero .m-wrap { max-width: 720px; padding-top: 16px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.m-mark { width: 110px; height: 126px; position: relative; flex: 0 0 auto; }
.m-mark svg { position: absolute; inset: 0; }
.m-mark b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 54px; line-height: 1; color: #fff; padding-bottom: 6px; }
.m-bullets { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.m-bullets div { display: flex; gap: 12px; align-items: flex-start; }
.m-bullets i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 9px; }

@keyframes m-sweep { from { stroke-dashoffset: 578; } }
@keyframes m-mini-sweep { from { stroke-dashoffset: 302; } }
@keyframes m-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes m-grow { from { transform: scaleX(0); } }
@keyframes m-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.m-mini-arc { animation: m-mini-sweep 1.3s cubic-bezier(.2, .8, .2, 1) .2s both; }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  .m-hero h1 { font-size: 30px; }
  .m-hero--landing h1 { font-size: 34px; }
  .m-ring { width: 168px; height: 168px; }
  .m-ring-letter { font-size: 70px; }
  .m-hero-actions .m-btn { width: 100%; }
  .m-nav .m-btn { display: none; }
  .m-main--wide { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .m-ring-arc, .m-ring-letter, .m-points div, .m-mini-arc, .m-ostep.is-active i { animation: none; }
  .m-btn, .m-tile, .m-item { transition: none; }
}

/* sticky grade bar on the result page: shown once the hero has scrolled away */
.m-mini.is-on { display: block; }
.m-mini { display: none; position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .95); border-bottom: 1px solid #e8ebf5; }
.m-mini .m-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.m-mini-grade { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.m-mini-grade b { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 3px var(--ring); }
@media (max-width: 600px) { .m-mini .m-btn { display: none; } .m-item-pts { display: none; } .m-item-main { flex-basis: 140px; } }

/* ---------- alerts: say plainly when protection is missing ---------- */
.m-alert { display: flex; gap: 14px; align-items: flex-start; border-radius: 16px; padding: 18px 22px; }
.m-alert svg { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-alert strong { display: block; font-size: 17px; line-height: 1.3; }
.m-alert p { margin-top: 4px; font-size: 15px; }
.m-alert--bad { background: #fdebeb; color: #7a1d12; }
.m-alert--warn { background: #fdf2d6; color: #5c3b00; }
.m-alert--info { background: #ecefff; color: #1b2347; }
@media (max-width: 600px) { .m-item .m-chip { min-width: 0; } }

/* ---------- Cybird pride: shown when the test detects a Cybird resolver ---------- */
.m-hero-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 14px 6px 10px; border-radius: 999px; }
.m-hero-badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-pride { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; background: var(--navy); color: #fff; border-radius: 24px; padding: 24px clamp(18px, 3%, 32px); }
.m-pride-mark { flex: 0 0 auto; width: 52px; height: 60px; }
.m-pride-text { flex: 1 1 260px; min-width: 0; }
.m-pride-text h2 { font-weight: 800; font-size: 22px; line-height: 1.25; color: #fff; }
.m-pride-text p { margin-top: 2px; font-size: 15px; color: #d3daf5; }
.m-pride-tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fb0ff; }
@media (max-width: 600px) { .m-pride .m-btn { width: 100%; } }

/* ---------- network check (docs/v1-leads/SPEC.md section 5) ---------- */
.m-check { background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 72px; }
.m-check [hidden] { display: none !important; }
.m-check-grid { display: flex; flex-wrap: wrap; }
.m-check-nojs { padding: 20px 28px; color: var(--soft); }
.m-check-main { flex: 3 1 380px; min-width: 0; padding: 28px clamp(18px, 3%, 32px); display: flex; flex-direction: column; gap: 16px; }
.m-check-head { display: flex; flex-direction: column; gap: 4px; }
.m-check-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--brand-ink); }
.m-check-eyebrow--dark { color: #aab4de; }
.m-check-head h2 { font-weight: 800; font-size: 26px; line-height: 1.2; }
.m-check-head p { font-size: 15px; color: var(--soft); }
.m-check-bar { display: flex; gap: 4px; }
.m-check-bar i { flex: 1 1 0; height: 6px; border-radius: 3px; background: #e3e7f2; }
.m-check-bar i.is-done { background: var(--brand); }
.m-check-bar i.is-now { background: #9fb0ff; }
.m-check-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.m-check-progress { color: var(--muted); font-weight: 600; }
.m-check-gaps { font-weight: 700; color: var(--muted); }
.m-check-gaps.has-gaps { color: var(--bad); }
.m-check-question { font-weight: 800; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.m-check-question:focus { outline: none; }
.m-check-help { margin-top: -6px; font-size: 15px; color: var(--muted); }
.m-check-offices { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.m-check-label { font-size: 14px; font-weight: 700; }
.m-check-toggle { display: flex; background: #eef1f8; border-radius: 12px; padding: 3px; }
.m-check-toggle button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-weight: 700; font-size: 14px; padding: 0 16px; cursor: pointer; }
.m-check-toggle button[aria-pressed="true"] { background: #fff; }
.m-check-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.m-check-option { min-height: 52px; border-radius: 14px; border: 2px solid #d3d9ee; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-align: left; padding: 10px 16px; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.m-check-option:hover { border-color: #9fb0ff; }
.m-check-option[aria-pressed="true"] { border-color: var(--brand); background: #eef1ff; }
.m-check-nav { display: flex; justify-content: space-between; align-items: center; }
.m-check-link { min-height: 44px; border: 0; background: transparent; color: var(--brand-ink); font-weight: 600; font-size: 15px; padding: 0 4px; cursor: pointer; }
.m-check-side { flex: 2 1 260px; min-width: 0; background: var(--navy); color: #fff; padding: 28px clamp(18px, 3%, 32px); display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.m-check-side h3 { font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.m-check-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.m-check-side li { display: flex; gap: 12px; font-size: 15px; color: #d3daf5; }
.m-check-side svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: #6ee7b0; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.m-check-side p { font-size: 13px; color: #aab4de; }

.m-check-score { flex: 2 1 280px; min-width: 0; background: var(--navy); color: #fff; padding: 28px clamp(18px, 3%, 32px); display: flex; flex-direction: column; gap: 16px; }
.m-check-scorehead { display: flex; align-items: center; gap: 16px; }
.m-check-grade { width: 72px; height: 72px; border-radius: 18px; background: #5b73e8; color: var(--navy); font-weight: 800; font-size: 40px; display: flex; align-items: center; justify-content: center; }
.m-check-grade[data-grade="A"] { background: #3ddc97; }
.m-check-grade[data-grade="B"] { background: #a3e05a; }
.m-check-grade[data-grade="C"] { background: #f5c84c; }
.m-check-grade[data-grade="D"] { background: #ff9f5a; }
.m-check-grade[data-grade="E"] { background: #ff6b6b; }
.m-check-total { font-weight: 800; font-size: 28px; }
.m-check-explain { font-size: 14px; color: #d3daf5; }
.m-check-explain a { color: #9fb0ff; }
.m-check-summary { font-size: 15px; font-weight: 700; }
.m-check-toprows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.m-check-toprows li { display: flex; gap: 10px; font-size: 14px; color: #d3daf5; }
.m-check-toprows li::before { content: "\00d7"; color: #ffc08f; font-weight: 800; font-size: 18px; line-height: 1.1; }

.m-check-form { flex: 3 1 340px; min-width: 0; padding: 28px clamp(18px, 3%, 32px); display: flex; flex-direction: column; gap: 14px; }
.m-check-form h2 { font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.m-check-sub { margin-top: 4px; font-size: 15px; color: var(--soft); }
.m-check-field { display: flex; flex-direction: column; gap: 6px; }
.m-check-field label { font-size: 14px; font-weight: 600; }
.m-check-optional { font-weight: 400; color: var(--muted); }
.m-check-field input { height: 48px; border-radius: 14px; border: 1px solid #c9d0e8; background: #fff; padding: 0 16px; font-size: 16px; font-family: inherit; }
.m-check-send { width: 100%; min-height: 52px; font-size: 16px; }
.m-check-send:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.m-check-notice { background: #fff4de; color: #5c3b00; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.m-check-booklink { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; }
.m-check-consent { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 14px; color: var(--soft); }
.m-check-consent input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; }
.m-check-footrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.m-check-footrow p { font-size: 13px; color: var(--muted); }
.m-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* bottom bar on phones, same job as the sticky bar on desktop */
.m-bottombar { display: none; }
@media (max-width: 600px) {
  .m-check-side { display: none; }
  .m-check-head h2 { font-size: 23px; }
  .m-bottombar { display: block; position: sticky; bottom: 0; z-index: 6; background: rgba(255, 255, 255, .96); border-top: 1px solid #e3e7f2; padding: 10px 16px; box-shadow: 0 -8px 24px rgba(20, 26, 48, .08); }
  .m-bottombar .m-btn { width: 100%; }
}
/* report sent */
.m-check-sent { padding: 28px clamp(18px, 3%, 32px); display: flex; flex-direction: column; gap: 20px; }
.m-check-sentline { display: flex; gap: 14px; align-items: flex-start; }
.m-check-sentline svg { flex: 0 0 auto; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #e3f8ee; fill: none; stroke: #168a56; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.m-check-sentline h2 { font-weight: 800; font-size: 24px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.m-check-sentline h2:focus { outline: none; }
.m-check-sentline p { margin-top: 4px; font-size: 15px; color: var(--soft); }
.m-check-sentcard { background: #f6f7fc; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.m-check-sentcard h3 { font-weight: 700; font-size: 16px; }
.m-check-scorehead--light .m-check-total { color: var(--ink); }
.m-check-scorehead--light .m-check-summary { color: var(--soft); font-weight: 600; }
.m-check-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.m-check-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 10px 0; border-top: 1px solid #e3e7f2; font-size: 15px; }
.m-check-tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.m-check-tag.is-cybird { background: #e4e9ff; color: #2f3fa8; }
.m-check-tag.is-it { background: #ffe9d2; color: #8a4a0c; }
.m-check-sentlinks { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.m-check-field input[aria-invalid="true"] { border-color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .m-check-option { transition: none; } }

/* ---------- "Fix your DNS gaps" ---------- */
.m-fixplan { background: #f8f9fe; padding: 26px clamp(18px, 3%, 28px); }
.m-fixlinks { border-top: 1px solid var(--line); padding: 12px clamp(18px, 3%, 28px); display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; font-size: 15px; }
.m-fixlinks span { color: var(--soft); }
.m-fixlinks a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }

/* ---------- private report pages and the "get it to your IT provider" card ---------- */
.m-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.m [hidden] { display: none !important; }

.m-itshare { background: var(--navy); color: #fff; border-radius: 20px; padding: 22px clamp(18px, 3%, 28px); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 72px; }
.m-check-sent .m-itshare { border-radius: 16px; }
.m-itshare h2 { font-weight: 800; font-size: 20px; }
.m-itshare-sub { font-size: 14px; color: #d3daf5; }
.m-itshare-done { background: #123d2b; color: #a8f0cb; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.m-itshare-form { display: flex; flex-wrap: wrap; gap: 10px; }
.m-itshare-form input[type="email"] { flex: 1 1 220px; min-width: 0; height: 48px; border-radius: 14px; border: 1px solid #4a5378; background: #fff; color: var(--ink); padding: 0 16px; font-size: 16px; font-family: inherit; }
.m-itshare-form input[aria-invalid="true"] { border-color: #ff9f9f; }
.m-itshare-form .m-btn { min-height: 48px; }
.m-itshare-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.m-itshare-btn { display: inline-flex; align-items: center; min-height: 44px; border-radius: 12px; border: 1px solid #4a5378; background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: 14px; padding: 0 16px; text-decoration: none; cursor: pointer; }
.m-itshare-btn:hover { border-color: #9fb0ff; }
.m-itshare-copied { font-size: 14px; color: #a8f0cb; font-weight: 600; }
.m-itshare .m-check-notice { background: #fff4de; }

.m-rep-hero .m-check-grade { flex: 0 0 auto; }
.m-rep-score { display: flex; align-items: center; gap: 18px; }
.m-rep-score h1 { font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.m-rep-score h2 { font-weight: 800; font-size: 22px; }
.m-rep-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #aab4de; }
.m-rep-meta { font-size: 14px; color: #d3daf5; margin-top: 2px; }
.m-rep-score--light .m-check-grade { width: 60px; height: 60px; font-size: 32px; border-radius: 16px; }
.m-rep-shared { font-size: 15px; color: #aab4de; margin: 10px 0 6px; overflow-wrap: anywhere; }
.m-rep-h1 { font-weight: 800; font-size: clamp(26px, 5vw, 38px); line-height: 1.15; letter-spacing: -.02em; max-width: 24ch; }
.m-rep-lead { margin-top: 24px; max-width: 640px; background: rgba(255, 255, 255, .08); border: 1px solid #3a4572; border-radius: 16px; padding: 16px 18px; }
.m-rep-lead h2 { font-weight: 800; font-size: 18px; }
.m-rep-lead p { margin-top: 6px; font-size: 15px; color: #d3daf5; }
.m-rep-lead .m-rep-leadmeta { font-size: 13px; color: #aab4de; }
.m-rep-risks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.m-rep-private { font-size: 13px; color: var(--muted); }
.m-rep-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.m-rep-table th { text-align: left; font-size: 14px; color: var(--soft); background: #f8f9fe; padding: 10px 12px; }
.m-rep-table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.m-rep-table .is-cybird { color: var(--brand-ink); }
.m-rep-table .is-it { color: #8a4a0c; }
.m-rep-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; counter-reset: step; }
.m-rep-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--soft); }
.m-rep-steps strong { color: var(--ink); }
.m-rep-steps strong::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); font-size: 14px; }
.m-rep-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.m-rep-facts b { display: block; font-size: 26px; font-weight: 800; }
.m-rep-facts span { font-size: 14px; color: var(--soft); }
.m-rep-perks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: #d3daf5; }
.m-rep-leadform { display: flex; flex-direction: column; gap: 14px; }
.m-rep-leadform .m-check-field label { color: #fff; }
.m-rep-leadform .m-check-field input, .m-rep-leadform select { height: 48px; border-radius: 14px; border: 1px solid #4a5378; background: #fff; color: var(--ink); padding: 0 16px; font-size: 16px; font-family: inherit; }
.m-rep-leadform input[aria-invalid="true"] { border-color: #ff9f9f; }
.m-rep-leadnote { font-size: 13px; color: #aab4de; }
.m-rep-leadnote a { color: #9fb0ff; }
.m-rep-faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.m-rep-faq summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.m-rep-faq p { padding-bottom: 12px; color: var(--soft); }

@media (max-width: 640px) {
  .m-rep-score h1 { font-size: 24px; }
  .m-rep-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .m-rep-table, .m-rep-table tbody, .m-rep-table tr, .m-rep-table td { display: block; }
  .m-rep-table tr { border-top: 1px solid var(--line); padding: 10px 0; }
  .m-rep-table td { border: 0; padding: 3px 0; }
  .m-rep-table td::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  .m-rep-table td:first-child { font-weight: 700; }
  .m-rep-table td:first-child::before { content: none; }
}
.m-rep-lead h2 { color: #fff; }
a.m-itshare-btn, a.m-itshare-btn:visited { color: #fff; }
.m-rep-hero h1, .m-rep-hero h2 { color: #fff; }
.m-rep-hero .m-hero-sub { margin-top: 12px; }
.m-rep-hero .m-hero-actions { margin-top: 20px; }

/* ---------- /partners and the "Shared by" banner ---------- */
.m-pl-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.m-pl-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #aab4de; }
.m-pl-steps b { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #1b2660; color: #fff; display: flex; align-items: center; justify-content: center; }
.m-pl-steps strong { display: block; color: #fff; font-size: 15px; }
.m-pl-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.m-pl-grid > * { flex: 1 1 320px; min-width: 0; }
.m-pl-narrow { max-width: 520px; width: 100%; margin: 0 auto; }
.m-pl-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.m-pl-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.m-pl-linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--tint); border-radius: 14px; padding: 12px 14px; }
.m-pl-linkrow code { flex: 1 1 200px; min-width: 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.m-pl-message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 14px; background: #f6f7fc; border-radius: 14px; padding: 14px; color: var(--soft); }
a.m-pl-dark { background: var(--ink); color: #fff; }
.m-pl-preview { border: 1px solid #e3e7f2; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.m-pl-previewtitle { font-weight: 800; font-size: 18px; }
.m-pl-banner { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 0; }
.m-pl-banner b { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; }
.m-pl-banner--bar { background: #1b2660; color: #d3daf5; padding: 10px 0; }
.m-pl-banner--bar .m-wrap { display: flex; align-items: center; gap: 12px; }
.m-pl-banner--bar strong { color: #fff; overflow-wrap: anywhere; }
.m-pl-banner--bar { display: block; }
.m-check-partner { font-size: 14px; font-weight: 600; background: var(--tint); color: var(--brand-ink); border-radius: 12px; padding: 10px 14px; }
.m-rep-h1 + .m-hero-sub { margin-top: 12px; }

/* ---------- "Just show my score" ---------- */
.m-check-textbtn { align-self: center; min-height: 44px; border: 0; background: transparent; color: var(--soft); font: inherit; font-weight: 600; font-size: 14px; padding: 0 8px; cursor: pointer; text-decoration: underline; }
.m-check-scoreonly { padding: 28px clamp(18px, 3%, 32px); display: flex; flex-direction: column; gap: 18px; }
.m-check-scoreonly .m-check-eyebrow { color: var(--muted); }
.m-check-explain--light { color: var(--soft); }
.m-check-explain--light a { color: var(--brand-ink); }
.m-check-sogrid { display: flex; flex-wrap: wrap; gap: 16px; }
.m-check-socard, .m-check-sofix { flex: 1 1 300px; min-width: 0; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.m-check-socard { border: 1px solid #e8ebf5; }
.m-check-socard h3, .m-check-sofix h3 { font-weight: 800; font-size: 17px; }
.m-check-sogaps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.m-check-sogaps li { display: flex; gap: 10px; font-size: 15px; }
.m-check-sogaps li::before { content: "\00d7"; color: var(--bad); font-weight: 800; font-size: 18px; line-height: 1.1; }
.m-check-sofix { background: #e3f6ec; color: #14573a; }
.m-check-sofix-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.m-check-sofix p { font-size: 15px; }
.m-check-gate { background: var(--navy); color: #fff; border-radius: 18px; padding: 22px clamp(18px, 3%, 28px); display: flex; flex-direction: column; gap: 12px; }
.m-check-gate h3 { font-weight: 800; font-size: 20px; }
.m-check-gate p { margin-top: 2px; font-size: 15px; color: #d3daf5; }
.m-check-gaterow { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.m-check-gaterow .m-check-field { flex: 1 1 240px; }
.m-check-gaterow .m-check-field label { color: #fff; }
.m-check-gaterow .m-btn { min-height: 48px; }
.m-check-gate .m-check-notice { background: #fff4de; }
.m-check-grade { flex: 0 0 auto; }

/* progress across retests on the owner's report page */
.m-rep-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.m-rep-history li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.m-rep-history-grade { width: 36px !important; height: 36px !important; font-size: 20px !important; border-radius: 10px !important; }
.m-retest-banner { background: #123d2b; color: #d7f5e5; padding: 10px 0; font-size: 14px; }
.m-retest-banner .m-wrap { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.m-retest-banner strong { color: #fff; }

/* ---------- cookie banner (analytics consent) ---------- */
.m-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font-size: 14px; box-shadow: 0 -2px 12px rgba(0, 0, 0, .25); }
.m-cookie[hidden] { display: none; }
.m-cookie p { margin: 0; flex: 1 1 260px; }
.m-cookie-actions { display: flex; gap: 8px; }
.m-cookie button { min-height: 44px; border-radius: 12px; padding: 0 18px; font: inherit; font-weight: 700; cursor: pointer; }
.m-cookie-accept { background: var(--brand-solid); color: #fff; border: 0; }
.m-cookie-decline { background: transparent; color: #fff; border: 1px solid #4a5378; }
.m-cookie-foot { text-align: center; padding: 8px 16px 24px; }

/* the phone's bottom bar steps aside while the check is on screen, while typing, and once the report is sent */
.m-bottombar.is-away { display: none !important; }
body.m-check-done .m-mini .m-btn { display: none; }

/* Question 2 has two controls: a small switch for offices (does not move on) and the answers for people (move on). */
.m-check-offices .m-check-toggle { max-width: 100%; }
.m-check-offices .m-check-toggle button { white-space: nowrap; }
.m-check-offices .m-check-label:last-child { margin-top: 12px; padding-top: 14px; border-top: 1px solid #e3e7f2; align-self: stretch; }

/* the link to an earlier report: a clear text link, not a small word */
.m-rep-history-text { flex: 1 1 200px; }
.m-rep-history-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; display: inline-flex; align-items: center; }
