:root {
  --navy-950: #00162f;
  --navy-900: #00244a;
  --navy-800: #003b70;
  --blue-600: #0077b8;
  --blue-500: #01a9f4;
  --blue-100: #d8eeff;
  --blue-50: #edf7ff;
  --ink: #101c2e;
  --slate: #465364;
  --muted: #687587;
  --line: #cdd8e6;
  --line-soft: #e1e8f0;
  --surface: #fff;
  --canvas: #f7f9fc;
  --green: #24b36b;
  --amber: #e69b18;
  --red: #d85c5c;
  --radius-sm: 5px;
  --radius: 9px;
  --radius-lg: 14px;
  --container: 1180px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 59, 112, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 59, 112, .024) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 760px);
}

a { color: inherit; }
button { font: inherit; }
svg { display: block; }

:focus-visible {
  outline: 3px solid rgba(1, 169, 244, .34);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  color: #fff;
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(185, 199, 216, .9);
  background: rgba(247, 249, 252, .94);
  backdrop-filter: blur(18px);
}

.utility-bar {
  color: #dbeaf6;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(139, 201, 236, .16);
}

.utility-shell {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-note {
  display: inline-flex;
  align-items: center;
  color: #aec3d3;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: -.005em;
}

.utility-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.utility-client-label {
  color: #8faabd;
  font-size: .7rem;
}

.nav-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  width: max-content;
  display: block;
  text-decoration: none;
}

.brand-logo-frame {
  position: relative;
  width: 152px;
  height: 58px;
  display: block;
  overflow: hidden;
}

.brand-logo {
  position: absolute;
  top: -22px;
  left: -19px;
  width: 190px;
  max-width: none;
  height: auto;
}

.main-nav {
  height: 76px;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 28px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--slate);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.nav-link:hover { color: var(--navy-900); }
.nav-link:hover::after { transform: scaleX(1); }

.client-support {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  color: #d6e2eb;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(176, 204, 224, .22);
  border-radius: 999px;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.client-support::after {
  margin-left: 5px;
  color: var(--blue-600);
  content: "\2197";
}

.client-support:hover {
  color: #fff;
  background: rgba(255, 255, 255, .11);
  border-color: rgba(128, 213, 255, .46);
}

.service-status {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  color: #d6e2eb;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(176, 204, 224, .28);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  text-decoration: none;
  white-space: nowrap;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.service-status:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(128, 213, 255, .52);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, .14);
}

.service-status[data-state="operational"] .status-dot {
  background: #22c76a;
  box-shadow: 0 0 0 5px rgba(34, 199, 106, .15), 0 0 14px rgba(34, 199, 106, .34);
  animation: pulse 2.4s ease-in-out infinite;
}

.service-status[data-state="disruption"] .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(230, 155, 24, .15);
}

.service-status[data-state="maintenance"] .status-dot {
  background: var(--blue-500);
  box-shadow: 0 0 0 5px rgba(1, 169, 244, .16), 0 0 14px rgba(1, 169, 244, .3);
}

.hero {
  min-height: 262px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 48px;
  padding-block: 56px 46px;
}

.hero-copy { max-width: 760px; }

.eyebrow,
.section-code {
  color: var(--blue-600);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow { display: inline-flex; align-items: center; gap: 10px; }

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(36, 179, 107, .12);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero h1 {
  margin: 14px 0 9px;
  color: var(--navy-950);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.hero p { max-width: 720px; margin: 0; color: var(--slate); font-size: clamp(1rem, 1.6vw, 1.16rem); }

.hero-privacy {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--slate);
  background: rgba(237, 247, 255, .78);
  border: 1px solid var(--blue-100);
  border-left: 3px solid var(--blue-600);
  border-radius: var(--radius);
}

.hero-privacy-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  background: #fff;
  border: 1px solid var(--blue-100);
  border-radius: 50%;
}

.hero-privacy-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hero-privacy > div { min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 18px; }
.hero-privacy strong { color: var(--navy-900); font-size: .82rem; white-space: nowrap; }
.hero-privacy p { max-width: none; margin: 0; color: var(--slate); font-size: .78rem; line-height: 1.45; }

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.refresh-button,
.copy-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 17px;
  color: #fff;
  background: var(--navy-900);
  border: 1px solid var(--navy-900);
  border-radius: var(--radius-sm);
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.refresh-button:hover { background: var(--navy-800); transform: translateY(-1px); }
.refresh-button:disabled { cursor: wait; opacity: .72; transform: none; }
.refresh-button svg,
.copy-button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.is-loading .refresh-button svg { animation: spin 900ms linear infinite; }

.copy-button {
  color: var(--navy-900);
  background: var(--surface);
  border-color: var(--line);
}

.copy-button:hover:not(:disabled) {
  color: var(--navy-800);
  background: var(--blue-50);
  border-color: var(--blue-100);
  transform: translateY(-1px);
}

.copy-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.copy-button[data-state="copied"] { color: #167a48; background: #effbf4; border-color: #bce9ce; }
.copy-button[data-state="error"] { color: #a43f3f; background: #fff3f3; border-color: #efc2c2; }

.results-shell {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 60px rgba(0, 36, 74, .08);
}

.results-head {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
}

.results-head h2,
.connection-details h2 { margin: 3px 0 0; color: var(--navy-950); font-size: 1.35rem; letter-spacing: -.025em; }

.test-state {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  color: var(--slate);
  background: var(--canvas);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
}

.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(230, 155, 24, .13); }
.test-state[data-state="complete"] .state-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(36, 179, 107, .13); }
.test-state[data-state="partial"] .state-dot { background: var(--amber); }
.test-state[data-state="error"] .state-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(216, 92, 92, .12); }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.metric-card {
  min-width: 0;
  padding: 26px 28px 25px;
  border-right: 1px solid var(--line-soft);
}

.metric-card:last-child { border-right: 0; }

.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.card-number { color: var(--blue-600); }

.primary-value {
  min-height: 54px;
  overflow-wrap: anywhere;
  color: var(--navy-950);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.35rem, 2.35vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.045em;
}

.tag-row { min-height: 27px; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }

.metric-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: var(--navy-800);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .025em;
}

.location-value { min-height: 81px; display: flex; flex-direction: column; justify-content: flex-start; }
.location-value strong { overflow-wrap: anywhere; color: var(--navy-950); font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.18; letter-spacing: -.04em; }
.location-value span { margin-top: 5px; color: var(--muted); font-size: .88rem; }

.latency-line { min-height: 42px; display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.latency-line > strong { color: var(--navy-950); font-family: "SFMono-Regular", Consolas, monospace; font-size: 2.15rem; line-height: 1; letter-spacing: -.06em; }
.latency-line > span:not(.quality-badge) { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .77rem; }

.dns-result-line {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.dns-result-line .quality-badge { margin-left: 0; }

.quality-badge {
  margin-left: 9px;
  padding: 3px 8px;
  color: var(--muted);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .035em;
  line-height: 1.4;
  text-transform: uppercase;
}

.quality-badge[data-quality="excellent"],
.quality-badge[data-quality="good"] { color: #167a48; background: #effbf4; border-color: #bce9ce; }
.quality-badge[data-quality="fair"] { color: #976007; background: #fff8e9; border-color: #f0d699; }
.quality-badge[data-quality="high"],
.quality-badge[data-quality="offline"] { color: #a43f3f; background: #fff3f3; border-color: #efc2c2; }

.detail-list { margin: 25px 0 0; border-top: 1px solid var(--line-soft); }
.detail-list div { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line-soft); }
.detail-list dt { color: var(--muted); font-size: .74rem; }
.detail-list dd { margin: 0; color: var(--slate); font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.detail-list .is-hidden { display: none; }
.detail-list dd[data-state="available"],
.detail-list dd[data-state="excellent"] { color: #167a48; }
.detail-list dd[data-state="partial"],
.detail-list dd[data-state="unavailable"] { color: #976007; }

.path-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 1fr) minmax(180px, 1fr);
  align-items: center;
  gap: 15px;
  margin: 0 28px 28px;
  padding: 20px 24px;
  color: #dbeeff;
  background:
    radial-gradient(circle at 47% -130%, rgba(1, 169, 244, .22), transparent 51%),
    var(--navy-950);
  border: 1px solid rgba(116, 207, 255, .15);
  border-radius: var(--radius);
}

.path-node { display: flex; align-items: center; gap: 12px; opacity: .58; transition: opacity 220ms ease; }
.path-node.complete { opacity: 1; }
.node-icon { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; color: #81d2f9; background: rgba(1, 169, 244, .08); border: 1px solid rgba(116, 207, 255, .24); border-radius: 50%; }
.node-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.path-node > span:last-child { min-width: 0; display: grid; }
.path-node small { color: #7896ac; font-family: "SFMono-Regular", Consolas, monospace; font-size: .59rem; letter-spacing: .08em; text-transform: uppercase; }
.path-node strong { overflow: hidden; color: #fff; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.path-link { min-width: 0; display: grid; align-items: center; gap: 6px; text-align: center; }
.path-link span { position: relative; height: 1px; background: rgba(116, 207, 255, .22); }
.path-link span::after { position: absolute; top: -3px; right: 0; width: 7px; height: 7px; content: ""; border-top: 1px solid #74cfff; border-right: 1px solid #74cfff; transform: rotate(45deg); }
.path-link small { color: #89b5d0; font-family: "SFMono-Regular", Consolas, monospace; font-size: .62rem; }
.is-loading .path-link span::before { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; content: ""; border-radius: 50%; background: #81d2f9; box-shadow: 0 0 9px #01a9f4; animation: travel 1.8s ease-in-out infinite; }

.connection-details {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 2fr);
  align-items: center;
  gap: 44px;
  padding-block: 48px;
}

.connection-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.connection-facts div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line-soft); }
.connection-facts div:nth-child(-n+4) { border-bottom: 1px solid var(--line-soft); }
.connection-facts div:nth-child(4n) { border-right: 0; }
.connection-facts div:last-child { border-right: 0; }
.connection-facts dt { margin-bottom: 4px; color: var(--muted); font-size: .68rem; }
.connection-facts dd { margin: 0; overflow: hidden; color: var(--navy-900); font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.optional-tests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  padding-top: 48px;
}

.extended-test {
  margin-bottom: 48px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 44px rgba(0, 36, 74, .06);
}

.optional-tests .extended-test {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.optional-tests .extended-test-head {
  min-height: 0;
  align-items: stretch;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
}

.optional-tests .extended-test-copy { flex: 1; }
.optional-tests .extended-button { align-self: flex-start; }

.extended-test-head {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 26px 28px;
}

.extended-test-copy { max-width: 760px; }
.extended-test h2 { margin: 3px 0 5px; color: var(--navy-950); font-size: 1.35rem; letter-spacing: -.025em; }
.extended-test-copy p { margin: 0; color: var(--slate); font-size: .85rem; }

.extended-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 17px;
  color: #fff;
  background: var(--blue-600);
  border: 1px solid var(--blue-600);
  border-radius: var(--radius-sm);
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.extended-button:hover:not(:disabled) { background: var(--navy-800); transform: translateY(-1px); }
.extended-button:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.extended-button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.extended-test[data-state="running"] .extended-button svg { animation: downloadPulse 700ms ease-in-out infinite; }

.extended-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.extended-results div { min-width: 0; padding: 17px 28px; border-right: 1px solid var(--line-soft); }
.extended-results div:last-child { border-right: 0; }
.extended-results dt { margin-bottom: 3px; color: var(--muted); font-size: .68rem; }
.extended-results dd { margin: 0; overflow-wrap: anywhere; color: var(--navy-900); font-family: "SFMono-Regular", Consolas, monospace; font-size: .82rem; font-weight: 700; }
.extended-test[data-state="error"] .extended-results dd { color: #a43f3f; }
.extended-test[data-state="warning"] .extended-results dd[data-state="warning"] { color: #976007; }

.extended-status { margin: 0; padding: 12px 28px 14px; color: var(--muted); font-size: .72rem; }
.extended-test[data-state="complete"] .extended-status { color: #167a48; }
.extended-test[data-state="warning"] .extended-status { color: #976007; }

.optional-tests .extended-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.optional-tests .extended-results div { border-bottom: 1px solid var(--line-soft); }
.optional-tests .extended-results div:nth-child(even) { border-right: 0; }
.optional-tests .extended-results div:nth-last-child(-n+2) { border-bottom: 0; }

.results-help {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 34px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-600);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 36px rgba(0, 36, 74, .065);
}

.results-help h2 { margin: 0; color: var(--navy-950); font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.04em; }
.results-help p { max-width: 650px; margin: 0; color: var(--slate); font-size: .78rem; line-height: 1.6; }
.results-help a { min-height: 44px; display: inline-flex; align-items: center; gap: 18px; margin-top: 8px; padding: 9px 16px; color: #fff; background: var(--blue-600); border-radius: var(--radius-sm); font-size: .76rem; font-weight: 780; text-decoration: none; transition: background 160ms ease, transform 160ms ease; }
.results-help a:hover { color: #fff; background: var(--navy-800); transform: translateY(-1px); }
.connection-help { margin-top: 0; margin-bottom: 78px; }

/* Cloudflare's injected privacy notice is inline. These rules keep it a corner
   dialog even if tag styles arrive late or are reordered by the tag manager. */
body #privacy-banner {
  position: fixed !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
  left: auto !important;
  z-index: 99999 !important;
  width: auto !important;
  max-width: min(520px, calc(100vw - 40px)) !important;
}

.site-footer { color: #b5c7d8; background: var(--navy-950); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr;
  gap: 60px;
  padding-block: 58px 46px;
}

.footer-brand .brand { color: #fff; }
.footer-brand .brand-logo { filter: invert(1); }
.footer-brand p { max-width: 440px; margin: 22px 0 0; color: #9eb5c7; }

.footer-column strong {
  display: block;
  margin-bottom: 13px;
  color: #fff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: max-content;
  margin: 8px 0;
  color: #aec1d1;
  text-decoration: none;
}

.footer-column a:hover { color: #fff; }

.footer-column .footer-connection-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 8px 13px;
  color: #fff;
  background: var(--blue-600);
  border: 1px solid rgba(116, 207, 255, .36);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-column .footer-connection-button:hover {
  background: var(--navy-800);
  border-color: rgba(116, 207, 255, .65);
  transform: translateY(-1px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(177, 207, 229, .18);
  color: #8299ac;
  font-size: .8rem;
}

.footer-bottom a { color: #aec1d1; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.skeleton-text { transition: opacity 180ms ease; }
.is-loading .skeleton-text { opacity: .56; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(36, 179, 107, .12); }
  50% { box-shadow: 0 0 0 8px rgba(36, 179, 107, 0); }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes travel { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
@keyframes downloadPulse { 50% { transform: translateY(3px); } }

@media (max-width: 920px) {
  .hero { min-height: 0; display: block; }
  .hero-privacy { margin-top: 24px; }
  .hero-actions { margin-top: 28px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { border-bottom: 1px solid var(--line-soft); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .path-panel { grid-template-columns: 1fr; justify-items: start; }
  .path-link { width: 38px; min-height: 34px; margin-left: 0; justify-items: center; }
  .path-link span { width: 1px; height: 28px; }
  .path-link span::after { top: auto; right: -3px; bottom: 0; transform: rotate(135deg); }
  .is-loading .path-link span::before { top: 0; left: -2px; animation: travelVertical 1.8s ease-in-out infinite; }
  .connection-details { grid-template-columns: 1fr; gap: 20px; }
  .optional-tests { grid-template-columns: 1fr; }
  .extended-test-head { align-items: flex-start; }
  @keyframes travelVertical { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: calc(100% - 5px); opacity: 0; } }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, var(--container)); }
  .site-header .container { width: min(100% - 20px, var(--container)); }
  .utility-shell { min-height: 38px; justify-content: flex-end; }
  .utility-note,
  .utility-client-label { display: none; }
  .utility-actions { gap: 7px; }
  .nav-shell { min-height: 70px; }
  .main-nav { height: 70px; }
  .brand-logo-frame { width: 124px; height: 47px; }
  .brand-logo { top: -18px; left: -15px; width: 155px; }
  .service-status { width: 42px; justify-content: center; padding: 5px; }
  .status-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero { min-height: 0; display: block; padding-block: 42px 34px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.5rem); }
  .hero-privacy { align-items: start; }
  .hero-privacy > div { grid-template-columns: 1fr; gap: 2px; }
  .hero-privacy strong { white-space: normal; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .hero-actions button { width: 100%; }
  .results-head { align-items: flex-start; padding: 20px; }
  .test-state { padding-inline: 9px; }
  .test-state span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card,
  .metric-card:nth-child(2),
  .metric-card:last-child { grid-column: auto; padding: 24px 20px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .metric-card:last-child { border-bottom: 0; }
  .primary-value { font-size: 1.4rem; }
  .path-panel { margin: 0 20px 20px; padding: 20px; }
  .connection-details { padding-block: 38px; }
  .connection-facts { grid-template-columns: 1fr 1fr; }
  .connection-facts div { border-bottom: 1px solid var(--line-soft); }
  .connection-facts div:nth-child(2) { border-right: 0; }
  .connection-facts div:nth-child(even) { border-right: 0; }
  .connection-facts div:last-child { border-bottom: 0; }
  .optional-tests { padding-top: 38px; }
  .extended-test-head { display: block; padding: 24px 20px; }
  .extended-button { width: 100%; margin-top: 20px; }
  .extended-results { grid-template-columns: 1fr 1fr; }
  .extended-results div { padding: 15px 20px; }
  .extended-results div:nth-child(2) { border-right: 0; }
  .extended-results div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .extended-status { padding-inline: 20px; }
  body #privacy-banner {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 28px) !important;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
