/* webpointspider.com - Web Point Spider LLC
   Palette sampled from images/logo.png:
     ink  #0b252b (spider body / wordmark "webpoint")
     rose #b04a70 (wordmark "spider" / nodes)
     plum #5d1f42 (web strands)
   Everything else is a tint or shade of those three. */
:root {
  --ink: #0b252b;
  --ink-2: #16414a;
  --ink-soft: #3d5a60;
  --rose: #b04a70;
  --rose-d: #963c5e;
  --plum: #5d1f42;
  --rose-50: #fbf0f4;
  --rose-100: #f5dde7;
  --plum-50: #f6edf2;
  --teal-50: #edf4f5;
  --teal-100: #dbe8ea;
  --bg: #f6f3f5;
  --card: #ffffff;
  --line: #e5dde2;
  --muted: #5b6e72;
  --radius: 22px;
  --shadow: 0 24px 48px -28px rgba(11, 37, 43, .35), 0 2px 6px rgba(11, 37, 43, .05);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(176, 74, 112, .10), transparent 60%),
    radial-gradient(900px 520px at 100% 10%, rgba(11, 37, 43, .08), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-d); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.top { padding: 34px 0 10px; text-align: center; }
.top .brand { display: inline-block; }
.top .brand img { width: 250px; height: auto; margin: 0 auto; }
.top--page { padding-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 500; font-size: 15px; }
.ip-pill {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin-top: 18px; padding: 9px 22px; border-radius: 999px;
  background: var(--card); box-shadow: 0 8px 22px -14px rgba(11, 37, 43, .45);
  font-size: 15px; color: var(--ink-soft);
}
.ip-pill strong { font-family: var(--mono); color: var(--rose-d); font-weight: 600; word-break: break-all; }

/* ---------- Cards ---------- */
.panel {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 46px; margin-top: 22px;
}
.panel p { margin: 0 0 16px; }
.intro { max-width: 70ch; color: var(--ink-soft); }
.intro strong { color: var(--rose-d); }

.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; align-items: start; }

/* ---------- Gauge ---------- */
.meter { text-align: center; }
.gauge { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-track { fill: none; stroke: var(--teal-100); stroke-width: 18; stroke-linecap: round; }
.g-fill { fill: none; stroke: url(#gGrad); stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset .18s linear; }
.g-tick { stroke: #b7c7ca; stroke-width: 2; }
.g-lbl { font-family: var(--mono); font-size: 11px; fill: var(--muted); text-anchor: middle; }
.g-needle { transform-origin: 160px 160px; transition: transform .18s linear; }
.g-needle line { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.g-hub { fill: var(--ink); }
.g-hub-in { fill: var(--rose); }
.readout { margin-top: -6px; }
.readout__num { font-family: var(--mono); font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.readout__unit { font-size: 14px; color: var(--muted); margin-top: 4px; }
.meter__label { font-weight: 600; margin: 14px 0 0; color: var(--ink-2); }
.phase { min-height: 24px; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.phase.is-err { color: #9b1c3b; font-weight: 500; }

.dl-ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px auto 0; max-width: 360px; }
.mini { border-radius: 14px; padding: 12px 14px; text-align: left; background: var(--teal-50); border: 1px solid var(--teal-100); }
.mini--up { background: var(--rose-50); border-color: var(--rose-100); }
.mini__k { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.mini__k svg { width: 16px; height: 16px; stroke: var(--ink-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini--up .mini__k svg { stroke: var(--rose-d); }
.mini__v { font-family: var(--mono); font-weight: 600; font-size: 20px; }
.mini__v small { font-family: var(--font); font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.mini.is-active { box-shadow: 0 0 0 2px var(--rose) inset; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 22px; padding: 15px 34px; min-height: 52px; border: 0; border-radius: 999px;
  background: var(--rose); color: #fff; font: 600 17px/1 var(--font); cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(176, 74, 112, .9);
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--rose-d); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.is-running { background: var(--ink); box-shadow: 0 14px 26px -14px rgba(11, 37, 43, .9); }
.btn.is-running:hover { background: var(--ink-2); }

/* ---------- How it works ---------- */
.how { background: linear-gradient(160deg, var(--plum-50), var(--teal-50)); border-radius: 18px; padding: 30px 30px 28px; }
.how h2 { margin: 0 0 18px; font-size: 25px; line-height: 1.2; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; margin-bottom: 16px; color: var(--ink-soft); font-size: 16px; }
.steps li::before {
  content: counter(s); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rose); color: #fff; font-weight: 600; font-size: 15px;
}
.tip { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--card); border-top: 1px solid var(--line); font-size: 15px; }
.tip svg { width: 22px; height: 22px; stroke: var(--rose); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tip p { margin: 0; color: var(--ink-soft); }
.tip strong { display: block; color: var(--ink); }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.stat {
  position: relative; border-radius: 16px; padding: 20px 22px 22px; min-height: 124px;
  box-shadow: 0 10px 22px -18px rgba(11, 37, 43, .5); border: 1px solid transparent;
}
.stat--a { background: var(--teal-50); border-color: var(--teal-100); }
.stat--b { background: var(--plum-50); border-color: #ead9e2; }
.stat--c { background: var(--rose-50); border-color: var(--rose-100); }
.stat--wide { grid-column: 1 / -1; min-height: 0; }
.stat__k { font-size: 14px; color: var(--muted); margin: 0; }
.stat__v { font-family: var(--mono); font-weight: 600; font-size: 21px; margin: 12px 0 0; overflow-wrap: anywhere; line-height: 1.35; }
.stat__v--txt { font-family: var(--font); font-size: 20px; }
.stat svg { position: absolute; top: 18px; right: 20px; width: 22px; height: 22px; fill: none; stroke: var(--rose); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat--a svg { stroke: var(--ink-2); }

/* ---------- Info block ---------- */
.info { margin-top: 30px; }
.info h2 { font-size: 21px; margin: 30px 0 12px; line-height: 1.3; }
.info p, .info li { color: var(--ink-soft); }
.note { padding: 16px 20px; border-left: 4px solid var(--rose); background: var(--rose-50); border-radius: 0 12px 12px 0; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.split--rev { grid-template-columns: .9fr 1.1fr; }
.split--rev figure { order: -1; }
.split figure { margin: 0; }
.split img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 0 16px 30px -22px rgba(11, 37, 43, .6); }
.split figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.split figcaption a { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--rose-100); box-shadow: inset 0 0 0 4px var(--rose); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 34px 0 40px; margin-top: 30px; border-top: 1px solid var(--line); }
.foot__logo { width: 190px; margin: 0 auto 16px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; }
.foot nav a { padding: 2px 14px; font-size: 15px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot nav a + a { border-left: 1px solid var(--line); }
.foot address { font-style: normal; font-size: 14px; color: var(--muted); margin: 16px 0 4px; }
.foot address a { color: var(--muted); }
.foot__small { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* ---------- Sub pages ---------- */
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 10px; }
.doc .lede { font-size: 19px; color: var(--ink-soft); }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc .updated { font-size: 14px; color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; padding: 20px 22px; border-radius: 16px; background: var(--teal-50); border: 1px solid var(--teal-100); margin: 0; }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-soft); }
.form { display: grid; gap: 16px; margin-top: 10px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #cbbfc6;
  font: 16px var(--font); color: var(--ink); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px rgba(176, 74, 112, .2); }
.err { display: none; color: #9b1c3b; font-size: 14px; margin: 6px 0 0 !important; }
.is-bad .err { display: block; }
.is-bad input, .is-bad select, .is-bad textarea { border-color: #9b1c3b; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--rose); }
.form-ok { display: none; padding: 12px 16px; border-radius: 12px; background: var(--teal-50); border: 1px solid var(--teal-100); }
.form-ok.is-on { display: block; }
.form-note { font-size: 14px; color: var(--muted); }
.form .btn { justify-self: start; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .test-grid, .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev figure { order: 0; }
  .panel { padding: 30px 22px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .top .brand img { width: 210px; }
  .panel { padding: 24px 16px; border-radius: 18px; }
  .how { padding: 22px 18px; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .readout__num { font-size: 38px; }
  .foot nav a { padding: 2px 10px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
