/* UptimeVanguard — marketing site. Hand-authored, no build step, no third-party origins.
   v3: v1's layout and mood kept; the stock-template signals taken out.

   What changed and why, so nobody puts it back:
   - The palette was Tailwind's defaults (slate-950 #020617, amber-500 #f59e0b,
     green-500, red-500). It is now mixed off the logo's gold, so it belongs to
     this product rather than to every generated page.
   - The hero's radial "aurora" glow is replaced by a probe grid — a pattern that
     means something on a monitoring site.
   - The nine equal feature cards are weighted: the two checks people buy for
     span wide and carry a gold edge.
   - The fake browser chrome (three grey dots) is gone. That panel now holds real
     fleet data, written by tools/refresh-board.php. */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/inter-latin-500.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-latin-600.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/inter-latin-700.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg:     #0a0d12;
  --bg-1:   #10151d;
  --bg-2:   #172029;
  --line:   #212b37;
  --line-2: #35434f;
  --fg:     #edf1f6;
  --fg-1:   #a6b3c2;
  --fg-2:   #7a8794;
  --brand:   #e8a33d;
  --brand-1: #f7c576;
  --brand-2: #b87c20;
  --ok:  #3ddc84;
  --err: #f2564b;
  --radius: 12px;
  --radius-lg: 18px;
  --page: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* The gold hairline across the top is the brand's, and the one piece of pure
   decoration on the page. */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--brand-2), var(--brand), var(--brand-1) 55%, var(--brand-2));
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-1); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.mono, code { font-family: var(--mono); font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; border-radius: 4px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #1a1204; padding: .7rem 1.1rem; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- layout ---------- */
.page { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: 1.5rem; }
section { padding-block: clamp(4rem, 8vw, 6.5rem); }
section[id] { scroll-margin-top: 5rem; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
/* A short gold rule instead of the letter-spaced all-caps eyebrow every
   generated page uses. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; color: var(--brand-1); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--brand); flex: none; }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); letter-spacing: -0.025em; }
.lede { color: var(--fg-1); font-size: 1.08rem; margin-top: 1rem; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) { header { background: var(--bg); } }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--fg); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { color: var(--fg-1); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: .9rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; padding: .72rem 1.3rem;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #1a1204; }
.btn-primary:hover { background: var(--brand-1); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg-2); background: var(--bg-1); }
.btn-quiet { color: var(--fg-1); padding-inline: .4rem; }
.btn-quiet:hover { color: var(--fg); }
.btn-lg { font-size: 1.02rem; padding: .95rem 1.7rem; }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
}
/* A probe grid fading downward, instead of the radial blur blob. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(232 163 61 / .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(232 163 61 / .07) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}
.hero .page { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
h1 { font-size: clamp(2.5rem, 5.8vw, 4.1rem); letter-spacing: -0.035em; }
h1 .accent { color: var(--brand-1); }
.hero p.lede { font-size: 1.15rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; color: var(--fg-2); font-size: .92rem; }
.hero-notes li { display: flex; align-items: center; gap: .5rem; }
.hero-notes li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex: none; }

/* ---------- counter panel ----------
   A cumulative total, not a live board: it never goes stale, and it is the one
   number a one-person service can show that reads as scale. */
.counter {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem 1.6rem; text-align: center; position: relative; overflow: hidden;
}
.counter::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(232 163 61 / .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(232 163 61 / .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 78%);
}
.counter > * { position: relative; }
.counter-label {
  font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-2);
}
.counter-num {
  font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em;
  color: var(--brand-1); margin-top: .7rem; line-height: 1.05;
}
.counter-sub { font-size: .93rem; color: var(--fg-1); margin-top: .6rem; }
.counter-figs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 1.8rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line);
}
.counter-figs dt { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.counter-figs dd { margin: .35rem 0 0; font-family: var(--mono); font-size: 1.1rem; font-weight: 600; color: var(--fg); }
@media (max-width: 420px) { .counter-figs { grid-template-columns: 1fr; gap: .8rem; } }

/* ---------- live fleet panel (kept: used by the regions section if wanted) ---------- */
.mock {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / .02);
}
.mock-title { font-size: .85rem; font-weight: 600; }
.mock-live { margin-left: auto; display: flex; align-items: center; gap: .45rem; font-size: .74rem; color: var(--fg-2); }
.mock-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgb(61 220 132 / .18);
}
.mock-body { padding: 1.1rem; display: grid; gap: .9rem; }

.fleet { width: 100%; border-collapse: collapse; }
.fleet th, .fleet td { text-align: left; padding: .32rem .2rem; font-size: .82rem; font-weight: 400; }
.fleet thead th {
  font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--fg-2); padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.fleet tbody tr + tr td { border-top: 1px solid rgb(255 255 255 / .04); }
.fleet td:first-child { color: var(--fg-1); }
.fleet td:last-child, .fleet thead th:last-child { text-align: right; }
.st { white-space: nowrap; font-size: .78rem; }
.st::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: .45rem; vertical-align: .08em; }
.st-up { color: var(--ok); } .st-up::before { background: var(--ok); }
.st-down { color: var(--err); } .st-down::before { background: var(--err); }

.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.kpi { background: rgb(255 255 255 / .03); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem; }
.kpi span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-2); }
.kpi strong { font-family: var(--mono); font-size: 1.2rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.mock-foot {
  padding: .6rem 1.1rem; border-top: 1px solid var(--line);
  font-size: .72rem; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: .3rem 1rem;
}
.mock-foot .sep { margin-left: auto; }

/* ---------- stat band ---------- */
.band { border-block: 1px solid var(--line); background: var(--bg-1); }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 2.4rem; }
.stat strong {
  display: block; font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--brand-1); font-variant-numeric: tabular-nums;
}
.stat span { color: var(--fg-2); font-size: .9rem; }

/* ---------- feature cards ----------
   Weighted, not nine identical tiles. */
.grid-3 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.card {
  grid-column: span 2;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; transition: border-color .15s, background-color .15s;
}
.card:hover { border-color: var(--line-2); background: var(--bg-2); }
.card-wide { grid-column: span 3; border-color: var(--line-2); background: var(--bg-2); }
.card-wide::before {
  content: ""; display: block; width: 2.2rem; height: 2px; background: var(--brand); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.card-wide h3 { font-size: 1.28rem; }
.card p { color: var(--fg-1); font-size: .95rem; }
.icon { color: var(--brand); margin-bottom: .9rem; }
.icon svg { width: 26px; height: 26px; }
.card-wide .icon { display: none; }

/* ---------- alerting ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.grid-2-split { align-items: center; gap: 3.5rem; }
.grid-2-split > * { min-width: 0; }
.ticks { display: grid; gap: .6rem; margin-top: 1.7rem; }
.ticks li { display: flex; gap: .7rem; font-size: .96rem; color: var(--fg-1); }
.ticks li::before { content: "\25B8"; color: var(--brand); flex: none; }

.log { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--bg-1); overflow: hidden; }
.log-head {
  padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .02);
  font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2);
}
.log pre { margin: 0; padding: 1.1rem; overflow-x: auto; }
.log code { font-size: .78rem; line-height: 1.85; color: var(--fg-1); white-space: pre; }
.log .u { color: var(--ok); } .log .d { color: var(--err); } .log .t { color: var(--fg-2); }
.log-note { padding: 0 1.1rem 1rem; font-size: .74rem; color: var(--fg-2); }

/* ---------- regions ---------- */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .5rem; }
.region {
  display: flex; align-items: baseline; gap: .6rem;
  border: 1px solid var(--line); background: var(--bg-1);
  border-radius: 8px; padding: .55rem .9rem; font-size: .93rem; color: var(--fg);
}
.region code { color: var(--fg-2); font-size: .76rem; margin-left: auto; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 2.6rem; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 1rem; left: 0;
  font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--brand);
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--fg-1); font-size: .95rem; }

/* ---------- pricing ---------- */
.price-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem; align-items: start; }
.price-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 1.9rem;
}
.price-amount { display: flex; align-items: baseline; gap: .45rem; margin-block: 1rem .3rem; }
.price-amount strong { font-family: var(--mono); font-size: 3.1rem; font-weight: 700; letter-spacing: -0.03em; color: var(--brand-1); }
.price-amount span { color: var(--fg-2); }
.price-meta { color: var(--fg-2); font-size: .85rem; }
/* A fixed scale, not a slider: the whole curve is visible and the page needs no JS. */
.scale { width: 100%; border-collapse: collapse; margin-top: 1.6rem; }
.scale th, .scale td { padding: .45rem .2rem; font-size: .9rem; font-weight: 400; text-align: left; border-top: 1px solid var(--line); }
.scale thead th { font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); border-top: 0; }
.scale td { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.scale th[scope="row"] { font-family: var(--mono); color: var(--fg-1); }
.scale tbody tr:first-child th, .scale tbody tr:first-child td { color: var(--brand-1); font-weight: 600; }
.price-note { margin-top: 1.4rem; font-size: .84rem; color: var(--fg-2); }
.price-card .btn { width: 100%; margin-top: 1.5rem; }
.price-includes { margin-top: 1.5rem; display: grid; gap: .6rem; }
.price-includes li { display: flex; gap: .7rem; font-size: .95rem; color: var(--fg-1); }
.price-includes li::before { content: "\25B8"; color: var(--brand); flex: none; }
.col-title { font-size: 1.15rem; margin-bottom: 1.1rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: .7rem; max-width: 52rem; }
details { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.3rem; }
details[open] { border-color: var(--line-2); background: var(--bg-2); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 700; flex: none; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--fg-1); font-size: .95rem; margin-top: .8rem; }

/* ---------- final cta ---------- */
.cta-panel {
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: var(--bg-1); padding: clamp(2.2rem, 5vw, 3.4rem); text-align: center;
  position: relative; overflow: hidden;
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(232 163 61 / .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(232 163 61 / .06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(60% 90% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 90% at 50% 0%, #000, transparent 75%);
}
.cta-panel > * { position: relative; }
.cta-panel h2 { max-width: 28rem; margin-inline: auto; }
.cta-panel .lede { margin-inline: auto; max-width: 34rem; }
.cta-panel .hero-cta { justify-content: center; }
.cta-panel .eyebrow { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-1); padding-block: 3.25rem 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.foot-grid h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-2); margin-bottom: .9rem; font-weight: 600; }
.foot-grid li + li { margin-top: .5rem; }
.foot-grid a { color: var(--fg-1); font-size: .93rem; }
.foot-grid a:hover { color: var(--fg); }
.foot-about p { color: var(--fg-2); font-size: .9rem; margin-top: .9rem; max-width: 24rem; }
.foot-legal {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--fg-2); font-size: .82rem;
}
.foot-legal .sep { margin-left: auto; }

/* ---------- utilities ---------- */
.pt-0 { padding-top: 0; }
.mt-lg { margin-top: 1.6rem; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-wide { grid-column: span 4; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-2-split, .price-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* v1 hid the nav entirely below 900px and left no way to reach Pricing. */
  .nav { flex-wrap: wrap; height: auto; padding-block: .7rem; gap: .6rem 1.2rem; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 1.2rem; }
  .nav-cta { margin-left: auto; }
  section[id] { scroll-margin-top: 7.5rem; }
}
@media (max-width: 780px) {
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 660px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card-wide { grid-column: span 2; }
  body { font-size: 16px; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .fleet th, .fleet td { font-size: .76rem; }
  .fleet td:first-child { white-space: nowrap; }
}
