/* Quackbase PQC Check
   Brand CI from quackbase.co (black, the red, the logo), but its own site.
   The one bold object is the handshake panel, lit by a red glow. */

:root {
  --paper: #0a0a0a;      /* quackbase.co background */
  --surface: #131416;
  --ink: #f3f4f6;
  --ink-2: #a8adb6;
  --ink-3: #7c828c;
  --line: #24272c;
  --red: #e5392d;        /* Quackbase red: actions, and "vulnerable" */
  --red-ink: #ff6b60;    /* red for text on dark surfaces, as on quackbase.co */
  --safe: #4ade9a;
  --warn: #f5b942;

  /* handshake panel: a raised slab on the black page */
  --night: #121418;
  --night-2: #1b1e24;
  --night-line: #2a2e35;
  --night-text: #e8ebef;
  --night-dim: #8f96a1;
  --night-safe: #4ade9a;
  --night-bad: #ff7a70;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Clear the sticky top bar when jumping to a section. */
section[id] { scroll-margin-top: 88px; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.nowrap { white-space: nowrap; }

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

:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus-visible { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #cf2f24; }
.btn-red:disabled { cursor: progress; background: #8f2a22; color: rgba(255,255,255,0.8); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 500; font-size: 15px; padding: 10px 16px; }
.btn-quiet:hover { border-color: var(--ink-3); background: rgba(255, 255, 255, 0.05); }

/* ---------- top bar ---------- */
.bar { border-bottom: 1px solid var(--line); background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark-product, .bar-talk { white-space: nowrap; }
/* The wordmark is set in Poppins on quackbase.co; here it is Plex at the
   same weight, next to the real icon. */
.mark-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.mark-product {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding-left: 10px; border-left: 1px solid var(--line);
}
.bar-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 88px;
  /* Faint red haze behind the panel, the same light as the quackbase.co hero. */
  background: radial-gradient(ellipse 40% 55% at 75% 45%, rgba(229, 57, 45, 0.14), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.hero-sub { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 34em; }

.scan { margin-top: 36px; max-width: 560px; }
.scan-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.scan-row {
  display: flex; gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1.5px solid #3a3f47;
  border-radius: 14px;
}
.scan-row:focus-within { box-shadow: 0 0 0 4px rgba(229, 57, 45, 0.25); border-color: var(--red); }
.scan-row input {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 18px; color: var(--ink);
  background: transparent; border: 0;
  padding: 10px 12px;
}
.scan-row input::placeholder { color: #5c626c; }
.scan-row input:focus { outline: none; }
.scan-status { min-height: 1.65em; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.scan-status.is-error { color: var(--red-ink); font-weight: 500; }
.scan-note { font-size: 14px; color: var(--ink-3); }

/* ---------- handshake panel (the one bold object) ---------- */
.panel {
  background: var(--night);
  color: var(--night-text);
  border-radius: 20px;
  padding: 28px 28px 24px;
  border: 1px solid var(--night-line);
  box-shadow: 0 40px 120px -40px rgba(229, 57, 45, 0.45);
}
.panel-ends { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.end {
  font-size: 14px; font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.end-server { font-family: var(--mono); font-size: 13.5px; }
.wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--night-line) 0 6px, transparent 6px 10px); }
.wire i {
  position: absolute; top: -3px; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--night-dim);
  opacity: 0;
}
.panel.is-scanning .wire i { opacity: 1; background: var(--red); animation: packet 1.1s ease-in-out infinite alternate; }
@keyframes packet { from { left: 0; } to { left: calc(100% - 8px); } }

.panel-title { margin-top: 26px; font-size: 15px; font-weight: 600; color: var(--night-dim); }
.probes { list-style: none; margin-top: 10px; }
.probes li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--night-line);
  font-size: 15px;
}
.probes li:last-child { border-bottom: 1px solid var(--night-line); }
.probe-l { color: var(--night-text); }
.probe-v { flex: none; font-family: var(--mono); font-size: 13.5px; color: var(--night-dim); display: inline-flex; align-items: center; gap: 8px; }
.probes li.is-pending .probe-v { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.probes li.is-good .probe-v { color: var(--night-safe); }
.probes li.is-bad .probe-v { color: var(--night-bad); }
.probes li.is-neutral .probe-v { color: var(--night-dim); }
.probes li.is-good .probe-v::before, .probes li.is-bad .probe-v::before, .probes li.is-neutral .probe-v::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.probes li.is-in { animation: settle 0.35s var(--ease) both; }
@keyframes settle { from { opacity: 0.2; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.panel-foot { margin-top: 16px; font-size: 14px; color: var(--night-dim); }
.panel-foot[data-verdict] { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.panel-verdict { font-size: 20px; font-weight: 700; }
.panel-foot[data-verdict="ready"] .panel-verdict { color: var(--night-safe); }
.panel-foot[data-verdict="partial"] .panel-verdict { color: var(--warn); }
.panel-foot[data-verdict="not"] .panel-verdict { color: var(--night-bad); }
.panel-score { font-family: var(--mono); font-size: 15px; color: var(--night-text); }

/* ---------- result ---------- */
.result { padding: 0 0 88px; }
.result[data-verdict="ready"]   { --tone: var(--safe); }
.result[data-verdict="partial"] { --tone: var(--warn); }
.result[data-verdict="not"]     { --tone: var(--red-ink); }

.verdict {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px 56px;
  padding: 40px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.verdict-word { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--tone); }
.verdict-host { margin-top: 6px; font-family: var(--mono); font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.verdict-host:focus { outline: none; }
.verdict-summary { margin-top: 14px; color: var(--ink-2); max-width: 38em; }
.verdict-meta { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.verdict-score { align-self: center; }
.score { display: flex; align-items: baseline; gap: 4px; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.score-of { font-size: 20px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* Score meter: one segment per check, width = its weight. */
.meter { display: flex; gap: 4px; margin-top: 18px; height: 12px; }
.meter > span {
  position: relative;
  border-radius: 3px;
  background: #24272d;
  overflow: hidden;
}
.meter > span > i {
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  background: var(--c, var(--safe));
  transition: width 0.7s var(--ease);
}
.meter > span[data-status="pass"], .meter > span[data-status="info"] { --c: var(--safe); }
.meter > span[data-status="warn"] { --c: #d39a2c; }
.meter > span[data-status="fail"] { background: repeating-linear-gradient(135deg, rgba(229, 57, 45, 0.45) 0 4px, rgba(229, 57, 45, 0.15) 4px 8px); }

.result-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.h3 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }

.ledger { list-style: none; background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.ledger li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  padding: 20px 24px;
}
.ledger li + li { border-top: 1px solid var(--line); }
.ledger-title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ledger-title::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ledger li[data-status="pass"] { --c: var(--safe); }
.ledger li[data-status="info"] { --c: var(--ink-3); }
.ledger li[data-status="warn"] { --c: #d39a2c; }
.ledger li[data-status="fail"] { --c: var(--red); }
.ledger-pts { font-family: var(--mono); font-size: 14px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.ledger-pts b { font-weight: 500; color: var(--ink); }
.ledger-status { font-size: 14px; font-weight: 500; color: var(--c); grid-column: 1; padding-left: 20px; }
.ledger li[data-status="info"] .ledger-status { color: var(--ink-2); }
.ledger li[data-status="warn"] .ledger-status { color: var(--warn); }
.ledger li[data-status="fail"] .ledger-status { color: var(--red-ink); }
.ledger p { grid-column: 1 / -1; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; margin-top: 4px; max-width: 46em; }

.facts { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px 20px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: 14.5px; color: var(--ink-2); }
.facts dd { font-family: var(--mono); font-size: 13.5px; text-align: right; overflow-wrap: anywhere; }
.fine { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

.upsell {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  margin-top: 40px;
  padding: 32px 36px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.upsell h3 { font-size: 22px; font-weight: 600; line-height: 1.35; }
.upsell p { margin-top: 8px; color: var(--ink-2); max-width: 44em; }

/* ---------- content bands ---------- */
.band { padding: 88px 0; border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.band-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 52px; }
.band-head p { color: var(--ink-2); }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before {
  content: ""; position: absolute; top: 2px; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink-3);
}
.timeline li.is-now::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px rgba(229, 57, 45, 0.18); }
.tl-k { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.timeline li.is-now .tl-k { color: var(--red-ink); }
.timeline p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); }

.how-band { background: var(--surface); }
.meter-key { height: 40px; gap: 4px; margin: 0 0 36px; }
.meter-key > span { background: #2a2e35; display: flex; align-items: center; padding: 0 12px; border-radius: 6px; }
.meter-key > span:first-child { background: var(--red); }
.meter-key b { color: #fff; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.g60 { flex-grow: 60; } .g10 { flex-grow: 10; }
.weights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.weights dt { font-weight: 600; line-height: 1.4; }
.weights .w { display: block; font-family: var(--mono); font-size: 14px; color: var(--ink-3); margin-bottom: 4px; }
.weights div:first-child .w { color: var(--red-ink); }
.weights dd { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

.qb { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.qb p { margin-top: 14px; color: var(--ink-2); max-width: 40em; }
.qb-contact { display: grid; gap: 6px; justify-items: start; }
.qb-contact .btn { margin-bottom: 12px; }
.qb-contact p { margin-top: 0; }
.qb-contact a:not(.btn) { color: var(--ink); text-underline-offset: 3px; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--ink-3); }
.foot-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; }
.foot-mark { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .panel { max-width: 640px; }
  .result-cols { grid-template-columns: 1fr; }
  .weights { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  h1 br { display: none; }
  .hero-sub { font-size: 17px; }
  .panel { padding: 22px 18px 18px; border-radius: 16px; }
  .probes li { font-size: 14px; }
  .verdict { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .verdict-word { font-size: 32px; }
  .score { font-size: 48px; }
  .ledger li { padding: 16px; }
  .upsell { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .band { padding: 56px 0; }
  .band-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
  .timeline { grid-template-columns: 1fr; row-gap: 28px; padding-left: 28px; }
  .timeline::before { display: block; top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -28px; top: 6px; }
  .weights { grid-template-columns: 1fr; gap: 22px; }
  .meter-key b { font-size: 12px; }
  .meter-key > span { padding: 0 6px; }
  .qb { grid-template-columns: 1fr; gap: 28px; }
  .foot-inner { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .bar-talk { padding: 8px 12px; font-size: 14px; }
  .mark { gap: 8px; }
  .mark img { width: 112px; height: auto; }
  .mark-product { font-size: 13px; padding-left: 8px; }
  .scan-row { flex-direction: column; }
  .scan-row .btn { width: 100%; }
}

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