/* PTZ Tracker website. One family (Archivo), wide and heavy for headings. */
:root {
  --ink: #16181c;
  --panel: #1e2126;
  --band: #1b1e23;
  --deep: #121418;
  --line: #2c3038;
  --text: #edeff2;
  --text-2: #c2c8d2;
  --muted: #a2a8b3;
  --faint: #8a919d;
  --link: #c9d6ff;
  --hero: #1d3bea;
  --frame: #ff6a45;
  --glide: #8fb0ff;
  --tally: #ff3b30;
  --wrap: 1200px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.55 "Archivo", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--glide); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 6px; }

/* Type */
.wordmark { color: var(--text); text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: -0.01em; }
.page-title { font-weight: 850; font-stretch: 125%; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 0.98; letter-spacing: -0.02em; }
.section-title { font-weight: 800; font-stretch: 115%; font-size: 2rem; line-height: 1.1; }
.section-title--large { font-size: 2.5rem; line-height: 1.05; }
.lead { color: var(--muted); font-size: 1.25rem; margin: 12px 0 44px; }
.small { font-size: 14px; color: var(--muted); margin-top: 24px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 6px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.button--light { background: var(--text); color: var(--ink); }
.button--light:hover { background: #fff; color: var(--ink); }
.button--dark { background: var(--deep); color: #fff; }
.button--dark:hover { background: #000; color: #fff; }
.button--ghost { border: 1.5px solid rgba(255, 255, 255, 0.75); color: #fff; font-weight: 600; }
.button--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.button--outline { border: 1.5px solid var(--faint); color: var(--text); font-weight: 600; }
.button--outline:hover { border-color: var(--text); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; flex: 1 1 auto; font-size: 15px; }
.site-nav a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero {
  color: #fff;
  background-color: var(--hero);
  background-image:
    repeating-linear-gradient(104deg, rgba(255,255,255,0.07) 0 2px, rgba(255,255,255,0) 2px 19px),
    linear-gradient(104deg, rgba(4,10,40,0.55) 0%, rgba(4,10,40,0) 55%);
}
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-weight: 850; font-stretch: 125%; font-size: clamp(3rem, 7vw, 5.75rem); line-height: 0.92; letter-spacing: -0.025em; }
.hero__lead { font-size: 1.375rem; line-height: 1.4; max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: rgba(255,255,255,0.88); }
.hero__notes li { display: flex; align-items: center; gap: 10px; }
.hero__notes svg { flex: none; }
.hero__notes-plain { padding-left: 30px; }
.viewfinder { flex: 1 1 560px; min-width: 0; margin: 0; }

/* A picture with overlays drawn on it, in percentages of the picture. */
.picture { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; border: 1px solid rgba(255,255,255,0.28); background: #1c1f27; }
.picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.picture--wide { border-radius: 12px; border-color: var(--line); }
.ov { position: absolute; display: block; }
.ov--line { left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.32); }
.ov--box { border: 1.5px solid rgba(255,255,255,0.8); border-bottom: 0; }
.ov--hold { border: 1.5px dotted rgba(255,255,255,0.75); }
.ov--strong { border: 2px dotted #fff; }
.ov--cross { width: 3.2%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.ov--cross::before, .ov--cross::after { content: ""; position: absolute; background: #fff; }
.ov--cross::before { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.ov--cross::after { top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; }
.ov--corner { width: 3.5%; aspect-ratio: 1; border: 0 solid rgba(255,255,255,0.7); }
.ov--tl { left: 3%; top: 5%; border-left-width: 2px; border-top-width: 2px; }
.ov--tr { right: 3%; top: 5%; border-right-width: 2px; border-top-width: 2px; }
.ov--bl { left: 3%; bottom: 5%; border-left-width: 2px; border-bottom-width: 2px; }
.ov--br { right: 3%; bottom: 5%; border-right-width: 2px; border-bottom-width: 2px; }
.ov--tally { left: 6%; top: 9.5%; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fff; }
.ov--tally::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--tally); }
.ov--label { font-size: 14px; font-weight: 700; color: #fff; }
.ov--label-quiet { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.85); }
.ov--zone { border: 2px dashed #fff; }
.ov--shot { border: 2px solid var(--frame); }
.ov--shot-full { inset: 0; border-radius: 12px; }
.ov--shot-label { font-weight: 800; font-stretch: 110%; font-size: clamp(13px, 1.6vw, 22px); color: #fff; }

/* Intro */
.intro { max-width: 820px; margin: 0 auto; padding: 96px var(--gutter) 24px; }
.intro p { font-size: 1.5rem; line-height: 1.45; text-align: center; }

/* Features */
.features { display: flex; flex-direction: column; gap: 96px; padding-top: 72px; padding-bottom: 72px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.feature--flip { flex-direction: row-reverse; }
.feature__art { flex: 1 1 440px; min-width: 0; margin: 0; }
.feature__art.picture { border-radius: 12px; border-color: var(--line); }
.feature__art--panel { aspect-ratio: 16 / 10; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.feature__art--padded { aspect-ratio: auto; padding: 28px; }
.feature__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.feature__text h2, .showcase__text h2 { font-weight: 800; font-stretch: 115%; font-size: 2rem; line-height: 1.1; }
.feature__text p, .showcase__text p { color: var(--text-2); max-width: 46ch; }
.companion { display: block; width: 100%; max-width: 560px; border-radius: 10px; }
.showcase { display: flex; flex-direction: column; gap: 28px; }
.showcase__text { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.showcase__text p { max-width: 60ch; }
.showcase figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.filmstrip { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 0; background: #0e1013; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.filmstrip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.filmstrip__line { position: absolute; left: 0; right: 0; top: calc(14px + (100% - 28px) * 0.283); border-top: 2px dashed var(--frame); }

/* The graph */
.art { width: 100%; height: auto; }
.art__axis { stroke: #4a505c; stroke-width: 1.5; fill: none; }
.art__muted { stroke: #5c6370; stroke-width: 2; fill: none; }
.art__line { stroke: var(--glide); stroke-width: 3; fill: none; stroke-linecap: round; }
.art__text { fill: var(--muted); font: 14px "Archivo", sans-serif; }
.art__text--strong { fill: var(--text); font-weight: 700; font-size: 15px; }

/* Also, needs */
.also { padding-top: 48px; padding-bottom: 72px; }
.also__list { margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; }
.also__list div { border-top: 1px solid var(--line); padding-top: 16px; }
.also__list dt { font-weight: 700; margin-bottom: 6px; }
.also__list dd { margin: 0; color: var(--muted); }
.needs { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.needs__inner { display: flex; flex-wrap: wrap; gap: 24px 64px; padding-top: 64px; padding-bottom: 64px; }
.needs h2 { flex: 0 1 280px; }
.needs ul { flex: 1 1 480px; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }

/* Pricing */
.pricing { padding-top: 96px; padding-bottom: 96px; }
.pricing__plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.plan--trial { background: none; border: 1px dashed #4a505c; }
.plan__name { font-size: 1.125rem; font-weight: 700; }
.plan__price { font-weight: 850; font-stretch: 120%; font-size: 3rem; line-height: 1; }
.plan__price span { font-size: 1rem; font-weight: 500; font-stretch: 100%; color: var(--muted); }
.plan__note { color: var(--muted); }
.plan__note--grow { flex: 1 1 auto; }
.plan__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); flex: 1 1 auto; }
.checkout-problem { color: #ff8f80; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; padding: 24px var(--gutter) 104px; }
.faq h2 { margin-bottom: 24px; }
.faq__item { border-top: 1px solid var(--line); padding: 18px 0; }
.faq__item:last-of-type { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; font-weight: 700; font-size: 1.125rem; }
.faq__item p { margin-top: 12px; color: var(--text-2); }

/* Text pages */
.page-top { padding-top: 72px; padding-bottom: 104px; }
.prose { max-width: 720px; line-height: 1.6; }
.prose h1 { margin-bottom: 16px; }
.prose h2 { font-weight: 800; font-stretch: 110%; font-size: 1.375rem; margin: 32px 0 12px; }
.prose p, .prose ul, .prose ol { color: var(--text-2); margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text); }
.prose__lead { font-size: 1.25rem; color: var(--text) !important; }
.notice { padding: 16px 20px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.prose .button { margin: 8px 0 16px; }
article.prose.page-top { margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); max-width: calc(720px + 2 * var(--gutter)); }

.legal { display: flex; flex-wrap: wrap; gap: 40px 72px; padding-top: 72px; padding-bottom: 104px; }
.legal__nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.legal__nav a { color: var(--muted); text-decoration: none; }
.legal__nav a:hover { color: #fff; }
.legal__nav a[aria-current="page"] { color: #fff; font-weight: 700; border-left: 2px solid var(--glide); padding-left: 12px; margin-left: -14px; }
.legal__text { flex: 999 1 560px; min-width: 0; }
.legal__date { color: var(--muted) !important; font-size: 15px; margin-bottom: 24px !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--deep); }
.site-footer__columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 24px; }
.site-footer__about { display: flex; flex-direction: column; gap: 10px; }
.site-footer__about p { color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer nav h2 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.site-footer__small { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--faint); }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero__inner { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .intro { padding-top: 64px; }
  .intro p { font-size: 1.25rem; }
  .features { gap: 72px; }
  .filmstrip { gap: 4px; padding: 8px 0; }
  .filmstrip__line { top: calc(8px + (100% - 16px) * 0.283); }
  .ov--corner, .ov--tally { display: none; }
}
