/* Palette taken from the tool's mark: a teal ping on a cool grey ground. Light only, on
   purpose -- the shared J-Tools bar is black on white on every tool, and a dark page under
   a white bar looks like two sites stapled together. */
:root {
  --wmi-teal: #0e7490;
  --wmi-teal-dark: #0b5c73;
  --wmi-teal-pale: #e0f2f7;
  --wmi-ink: #1f2933;
  --wmi-muted: #5b6b76;
  --wmi-line: #d7e0e5;
  --wmi-ground: #f4f7f9;
  --wmi-white: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--wmi-ink);
  background-color: var(--wmi-ground);
  min-height: 100vh;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 1em 0.8em 2em;
}

h1, h2 { color: var(--wmi-teal-dark); }
h1 { font-size: 1.3em; }
h2 { font-size: 1.1em; margin: 0 0 0.6em; }
h3 { font-size: 0.95em; margin: 1.4em 0 0.5em; color: var(--wmi-muted); text-transform: uppercase; letter-spacing: 0.04em; }

a { color: var(--wmi-teal); }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.card {
  background: var(--wmi-white);
  border: 1px solid var(--wmi-line);
  border-radius: 12px;
  padding: 1.1em;
  margin-bottom: 1em;
}

.hint {
  display: block;
  color: var(--wmi-muted);
  font-size: 0.85em;
  margin-top: 0.25em;
}

.notice {
  background: var(--wmi-teal-pale);
  border-radius: 8px;
  padding: 0.7em 0.9em;
  margin: 0.6em 0 0;
  font-size: 0.9em;
}

/* The answer. Big enough to read across a desk, and allowed to wrap mid-address because a
   full IPv6 address does not fit on a phone in one line at this size. */
.hero { text-align: center; }
.hero-label {
  margin: 0;
  color: var(--wmi-muted);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-ip {
  margin: 0.35em 0 0;
  font-size: clamp(1.5em, 6vw, 2.4em);
  line-height: 1.15;
  word-break: break-all;
}
.hero-ip code { color: var(--wmi-teal-dark); }
.hero-ip-missing { font-size: 1.1em; color: var(--wmi-muted); }
.hero-actions { margin: 0.7em 0 0; }
.hero-note { margin: 0.6em 0 0; color: var(--wmi-muted); font-size: 0.9em; }

.btn {
  display: inline-block;
  background: var(--wmi-teal);
  color: var(--wmi-white);
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-size: 0.95em;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--wmi-teal-dark); }

/* Label/value rows. Two columns once there is room for them, stacked on a phone, and the
   value column allowed to break so a long AS name or IPv6 address never widens the page. */
.kv {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
}
.kv dt {
  color: var(--wmi-muted);
  font-size: 0.85em;
  padding-top: 0.6em;
}
.kv dd {
  margin: 0;
  padding: 0.1em 0 0.6em;
  border-bottom: 1px solid var(--wmi-line);
  min-width: 0;
  overflow-wrap: break-word;
}
.kv dd:last-of-type { border-bottom: none; }
.kv code { font-size: 1.05em; }
.muted { color: var(--wmi-muted); }

/* Once there is room, label and value sit side by side. Each dt/dd pair lands on one grid
   row, so a border on both cells reads as one line across the card. */
@media (min-width: 560px) {
  .kv { grid-template-columns: 15em 1fr; column-gap: 1.2em; }
  .kv dt { padding: 0.6em 0; border-bottom: 1px solid var(--wmi-line); }
  .kv dd { padding: 0.6em 0; }
  .kv dt:last-of-type { border-bottom: none; }
}

/* Outlined rather than bordered: a border would grow the element's box by two pixels, and
   this is the very element whose measured size the card reports. */
.probe-canvas {
  display: block;
  margin: 0.8em 1px 0;
  max-width: 100%;
  height: auto;
  outline: 1px dashed var(--wmi-line);
  border-radius: 6px;
  background: repeating-conic-gradient(var(--wmi-ground) 0% 25%, var(--wmi-white) 0% 50%) 0 0 / 16px 16px;
}

.device-result { margin: 0; font-size: 1.05em; }

.privacy-list { margin: 0; padding-left: 1.2em; }
.privacy-list li { margin-bottom: 0.5em; }

/* Copy-paste blocks. They scroll on their own rather than stretching the page, which is what
   a long curl line would otherwise do on a phone. */
.code {
  background: var(--wmi-ink);
  color: #e6f6fb;
  border-radius: 8px;
  padding: 0.8em 0.9em;
  overflow-x: auto;
  margin: 0.4em 0 0.2em;
  font-size: 0.9em;
}
.code code { color: inherit; }

/* Landing page. */
.landing-hero { text-align: center; padding: 1em 0 0.5em; }
.landing-logo { max-width: 100%; height: auto; }
.landing-title { margin: 0.4em 0 0.2em; }
.landing-tagline { margin: 0 0 1em; color: var(--wmi-muted); }
.landing-steps { margin: 0; padding-left: 1.2em; }
.landing-steps li { margin-bottom: 0.6em; }
.landing-cta { text-align: center; }

.site-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0.8em 2.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 1.2em;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: var(--wmi-muted);
}
.footer-links, .footer-langs { display: flex; gap: 0.9em; flex-wrap: wrap; }
.footer-langs { letter-spacing: 0.05em; }
.lang-current { color: var(--wmi-ink); font-weight: 600; }
