/*
  The site's palette is the app's own - VideoPhonePeer/Themes/Styles.xaml, dark scheme, read
  straight off the hex values there rather than eyeballed, so a screenshot dropped onto the page
  sits on a background that actually matches it instead of a "close enough" web version.

  Plain CSS, no build step - the same reason the app is plain WPF rather than reaching for a
  framework: this is a small site for one product, and a build step is one more thing to keep
  working for a maintainer who is otherwise just editing HTML.
*/

:root {
  --bg: #14161b;
  --surface: #1c1f26;
  --surface-alt: #242832;
  --border: #333947;
  --accent: #ee82ee;
  --accent-soft: rgba(238, 130, 238, 0.2);
  --accent-ink: #1a1206; /* what the app writes on top of the accent - see Theme.ContrastOn */
  --text: #e9ecf3;
  --text-muted: #a7aec0;
  --good: #4cc38a;
  --warn: #e5484d;

  --max-width: 880px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

code, .mono {
  font-family: Consolas, "SF Mono", Menlo, monospace;
}

/* ---------------------------------------------------------------- layout */

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(20, 22, 27, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

.brand img {
  width: 26px;
  height: 26px;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.current {
  color: var(--text);
  text-decoration: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

main.narrow {
  max-width: 640px;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

footer.site a {
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- type */

h1 {
  font-size: 34px;
  font-weight: 650;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--text);
}

h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 44px 0 12px;
  color: var(--text);
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 8px;
  color: var(--text);
}

p {
  color: var(--text);
  margin: 0 0 14px;
}

.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
}

/* The hero's second line - what the product literally is, in words, then what it means to
   somebody using it. Accent-coloured and a size down from the h1 so it reads as the answer to
   "so what", not a second headline competing with the first. */
.tagline {
  font-size: 21px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
}

.label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0 8px;
}

.hero .buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* A CSS/SVG illustration rather than a staged call screenshot: a real one needs two machines
   actually on a call, and faking the picture would be the one dishonest thing on an otherwise
   plain-spoken page. */
.hero-art svg {
  width: 100%;
  max-width: 340px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  background: #9b70f7;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 16px;
  margin: 20px 0 8px;
}

.grid-3 .card h3 {
  margin-top: 0;
}

.grid-3 .card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0;
}

/* No border, background or radius of its own - every screenshot is a real window capture with
   its own frame and corners already in the pixels, and a card around that just doubled it up. */
.shot img {
  display: block;
}

.shot-caption {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}

/* ---------------------------------------------------------------- steps */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 44px;
  border-left: 1px solid var(--border);
  margin-left: 15px;
}

.steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin-top: 2px;
}

.steps p {
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- top ten */

/* Ranked but not sequential - unlike .steps, there is no order dependency between these, so no
   connecting line between them. A big quiet numeral instead of a badge, mostly for the variety:
   the page already has one boxed grid of cards, and ten of those would be a wall of borders. */
.top-ten {
  list-style: none;
  margin: 28px 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 44px;
}

.top-ten li {
  display: flex;
  gap: 16px;
}

.top-ten .num {
  flex: none;
  min-width: 42px;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1.3;
}

.top-ten h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.top-ten p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------------------------------------------------------------- notes */

.note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  margin: 20px 0;
}

.note strong {
  color: var(--text);
}

.note.warn {
  border-left-color: var(--warn);
}

/* ---------------------------------------------------------------- forms */

form .field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

/* The honeypot field: present for a bot filling in every input it can see, invisible and
   unreachable for a person tabbing through the form. Off-screen rather than display:none - some
   spam scripts skip fields a screen reader would skip too. */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.status {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 22px;
}

.status.ok {
  background: rgba(76, 195, 138, 0.12);
  border: 1px solid var(--good);
  color: var(--good);
}

.status.error {
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid var(--warn);
  color: var(--warn);
}

/* ---------------------------------------------------------------- table */

table.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.specs th,
table.specs td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

table.specs th {
  color: var(--text-muted);
  font-weight: 600;
  width: 220px;
  vertical-align: top;
}

/* A SHA-256 is 64 characters with nowhere to break, so it is allowed to break anywhere rather
   than push the page sideways on a phone. */
table.hashes code,
pre code {
  word-break: break-all;
  font-size: 13px;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  white-space: pre-wrap;
  margin: 8px 0;
}

details.how {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 18px;
  margin: 20px 0;
  font-size: 14px;
}

details.how summary {
  cursor: pointer;
  font-weight: 600;
}

.alt-download {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .top-ten {
    grid-template-columns: 1fr;
  }

  table.specs th {
    width: auto;
    display: block;
    padding-bottom: 2px;
    border-bottom: none;
  }

  table.specs td {
    display: block;
    padding-top: 0;
  }

  .nav-links {
    gap: 14px;
  }
}
