/* VerifyPulse design system.
   A marked-up technical document: paper, ink, one postal blue, and pass / warn / fail
   marks in the margin. Mono type is reserved for DNS records and measured values. */
:root {
  --paper: #F3F5F1;
  --surface: #FFFFFF;
  --sunken: #E9EDE7;
  --ink: #14211C;
  --ink-2: #55635C;
  --ink-3: #7A877F;
  --rule: #CFD6CE;
  --rule-strong: #9FAAA1;
  --blue: #2140D9;
  --blue-wash: #E6EAFB;
  --pass: #0B7A4B;
  --pass-wash: #E0F1E8;
  --warn: #A86A00;
  --warn-wash: #F8EBCF;
  --fail: #B42318;
  --fail-wash: #F9E1DE;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 3px;
  --gutter: 16px;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.vp {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.vp h1, .vp h2, .vp h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }
.vp h1 { font-size: clamp(2.4rem, 6.2vw, 4.5rem); }
.vp h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.vp h3 { font-size: 1.2rem; line-height: 1.2; }
.vp p { margin: 0; max-width: var(--measure); }
.vp a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vp a:hover { text-decoration-thickness: 2px; }
.vp code, .vp .mono { font-family: var(--mono); font-size: 0.9em; }
.vp :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.vp ::selection { background: var(--blue); color: #fff; }
.vp .lede { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); }
.vp .muted { color: var(--ink-2); }
.vp .small { font-size: 0.875rem; }
.vp .stack > * + * { margin-top: 14px; }
.vp .stack-lg > * + * { margin-top: 28px; }
.vp [hidden] { display: none !important; }

/* Page frame */
.vp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.vp-top { border-bottom: 1px solid var(--ink); background: var(--paper); }
.vp-top .vp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; flex-wrap: wrap; }
.vp-mark { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink) !important; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.vp-mark svg { display: block; }
.vp-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; font-size: 0.95rem; }
.vp-nav a { color: var(--ink) !important; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.vp-nav a:hover, .vp-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.vp-foot { border-top: 1px solid var(--ink); margin-top: 72px; padding: 28px 0 44px; font-size: 0.9rem; color: var(--ink-2); }
.vp-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; }
.vp-foot strong { display: block; color: var(--ink); margin-bottom: 6px; font-family: var(--display); font-size: 1rem; }
.vp-foot a { display: block; color: var(--ink-2) !important; text-decoration: none; padding: 2px 0; }
.vp-foot a:hover { color: var(--ink) !important; text-decoration: underline; }

/* A section is a row of the document: its heading sits in the margin column. */
.sec { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px 40px; padding: 44px 0; border-top: 1px solid var(--rule); }
.sec:first-of-type { border-top: 0; }
.sec > header p { color: var(--ink-2); font-size: 0.95rem; margin-top: 10px; }
.hero { padding: 56px 0 40px; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 20px; max-width: 54ch; }

/* Controls */
.vp .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 0.95rem/1 var(--sans); padding: 12px 18px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--ink); color: var(--paper) !important; cursor: pointer; text-decoration: none; white-space: nowrap; }
.vp .btn:hover { background: #000; }
.vp .btn:disabled { opacity: 0.55; cursor: progress; }
.vp .btn.quiet { background: transparent; color: var(--ink) !important; }
.vp .btn.quiet:hover { background: var(--sunken); }
.vp .btn.blue { background: var(--blue); border-color: var(--blue); color: #fff !important; }
.vp label.field { display: block; font-size: 0.875rem; font-weight: 600; }
.vp label.field > span { display: block; margin-bottom: 6px; }
.vp input[type=text], .vp input[type=email], .vp input[type=password], .vp input[type=search], .vp input:not([type]), .vp textarea, .vp select {
  width: 100%; font: 400 1rem/1.4 var(--mono); color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 11px 12px;
}
.vp textarea { resize: vertical; }
.vp input:focus, .vp textarea:focus, .vp select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.vp .inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.vp .note { font-size: 0.9rem; color: var(--ink-2); min-height: 1.4em; }
.vp .note.is-fail { color: var(--fail); }

/* Surfaces */
.vp .panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; }
.vp .panel.flush { padding: 0; overflow: hidden; }
.vp .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vp .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.vp .list { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.vp .list li + li { margin-top: 6px; }
.vp ol.steps { margin: 0; padding-left: 1.3em; }
.vp ol.steps li + li { margin-top: 10px; }

/* Status marks */
.vp .mark { display: inline-block; font: 600 0.78rem/1 var(--mono); padding: 4px 7px; border-radius: 2px; background: var(--sunken); color: var(--ink); white-space: nowrap; }
.vp .mark.pass { background: var(--pass-wash); color: var(--pass); }
.vp .mark.warn { background: var(--warn-wash); color: var(--warn); }
.vp .mark.fail { background: var(--fail-wash); color: var(--fail); }
.vp .grade { font: 600 1.05rem/1 var(--mono); }
.vp .t-pass { color: var(--pass); } .vp .t-warn { color: var(--warn); } .vp .t-fail { color: var(--fail); }

/* The annotated record: a DNS record with its verdict in the margin. */
.vp .record { display: grid; grid-template-columns: 74px minmax(0, 1fr); border-top: 1px solid var(--rule); }
.vp .record:first-child { border-top: 0; }
.vp .record > .verdict { padding: 14px 0 14px 14px; }
.vp .record > .body { padding: 12px 14px; min-width: 0; }
.vp .record .name { font-weight: 600; }
.vp .record .value { font: 400 0.84rem/1.5 var(--mono); color: var(--ink-2); word-break: break-all; margin-top: 4px; }
.vp .record .fix { font-size: 0.9rem; margin-top: 6px; }
.vp pre.txt { margin: 0; font: 400 0.84rem/1.55 var(--mono); background: var(--sunken); border-radius: var(--r); padding: 12px; white-space: pre-wrap; word-break: break-all; }

/* Tables */
.vp .scroll { overflow-x: auto; }
.vp table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.vp table.data th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.vp table.data td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; white-space: nowrap; }
.vp table.data td.wide { white-space: normal; min-width: 240px; color: var(--ink-2); }
.vp table.data td.num, .vp table.data th.num { text-align: right; font-family: var(--mono); }
.vp table.data tr:last-child td { border-bottom: 0; }

/* Figures */
.vp .figure { border-top: 2px solid var(--ink); padding-top: 10px; }
.vp .figure .n { font: 500 2.1rem/1.1 var(--mono); letter-spacing: -0.02em; }
.vp .figure .l { color: var(--ink-2); font-size: 0.9rem; margin-top: 4px; }
.vp .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; }
.vp .price { font: 600 2.6rem/1 var(--display); }
.vp .price small { font: 400 0.95rem/1 var(--sans); color: var(--ink-2); }
.vp .bar { height: 8px; background: var(--sunken); border-radius: 1px; overflow: hidden; }
.vp .bar > i { display: block; height: 100%; background: var(--ink); }
.vp .banner { border: 1px solid var(--warn); background: var(--warn-wash); color: #5c3b00; border-radius: var(--r); padding: 12px 14px; font-size: 0.92rem; }

@media (max-width: 860px) {
  .sec { grid-template-columns: 1fr; padding: 32px 0; gap: 16px; }
  .vp .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 24px; }
}
@media (max-width: 560px) {
  .vp .inline-form { grid-template-columns: 1fr; }
  .vp .record { grid-template-columns: 62px minmax(0, 1fr); }
  .vp-nav { gap: 2px 14px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { .vp * { transition: none !important; animation: none !important; } }
