/* ProSwitcher — proswitcher.app
   One stylesheet for every page. The palette is the app's own: ATEM Software
   Control greys, with tally red and green used only where they mean something. */

:root {
  --ground: #171717;
  --panel: #202020;
  --inset: #141414;
  --rule: #333;
  --rule-soft: #2a2a2a;
  --ink: #ececea;
  --ink-2: #b9b6b0;
  --muted: #8b8781;
  --live: #f51e10;
  --pvw: #22dd22;
  --armed: #ffe500;
  --amber: #ff9a3c;
  --measure: 64ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.65 "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

h1, h2, h3, .eyebrow {
  font-family: "Barlow Semi Condensed", "IBM Plex Sans", sans-serif;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.03; letter-spacing: -.02em; margin: 0 0 .4em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.12; letter-spacing: -.01em; margin: 2.2em 0 .5em; font-weight: 600; }
h2:first-of-type { margin-top: 0; }
h3 { font-size: 1.05rem; margin: 1.6em 0 .35em; font-weight: 600; }
p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }
a { color: var(--amber); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px;
}
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 1rem;
}
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 48ch; }
.note { color: var(--muted); font-size: .88rem; }
.updated { color: var(--muted); font-size: .9rem; margin: -.4rem 0 2.4rem; }

/* ---------- header ---------- */
header.top {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 10;
  background: rgba(23, 23, 23, .93);
  backdrop-filter: blur(8px);
}
header.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 58px; }
.brand {
  font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700;
  font-size: 1.25rem; color: var(--ink); text-decoration: none;
}
.brand .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 8px var(--live);
  margin-right: .5rem; vertical-align: middle;
}
header.top nav { margin-left: auto; display: flex; gap: 1.3rem; font-size: .93rem; }
header.top nav a { color: var(--ink-2); text-decoration: none; }
header.top nav a:hover, header.top nav a[aria-current] { color: var(--ink); }

/* ---------- sections ---------- */
main { padding-bottom: 1rem; }
section { padding: clamp(2.8rem, 7vw, 5rem) 0; border-top: 1px solid var(--rule); }
section.first { border-top: 0; }
article { padding: clamp(2.5rem, 6vw, 4rem) 0; }

/* ---------- hero ---------- */
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; align-items: center; }
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 7px;
  font-weight: 600; text-decoration: none; font-size: .98rem;
}
.btn-primary { background: linear-gradient(#f4f4f4, #cbcbcb); color: #181818; border: 1px solid #8f8f8f; }
.btn-ghost { border: 1px solid var(--rule); color: var(--ink-2); }

/* ---------- media ---------- */
figure { margin: 2.5rem 0 0; }
figure img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid var(--rule); box-shadow: 0 30px 70px -40px #000;
}
figcaption { color: var(--muted); font-size: .85rem; margin-top: .7rem; }

.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1.1fr .9fr; } }
.split img {
  width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto;
  border-radius: 12px; border: 1px solid var(--rule);
}

/* ---------- cards & tiers ---------- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 9px; padding: 1.2rem 1.3rem; }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-2); font-size: .94rem; margin: 0; }

.tiers { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.tier { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem; }
.tier.pro { border-color: #5a4a12; }
.tier h3 { margin-top: 0; }
.tier .price {
  font-family: "Barlow Semi Condensed", sans-serif; font-size: 2.2rem;
  font-weight: 700; line-height: 1; margin: .2rem 0 .1rem;
}
.tier .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.tier ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.tier li { padding-left: 1.4rem; position: relative; color: var(--ink-2); font-size: .94rem; margin: .45rem 0; }
.tier li::before { content: "▸"; position: absolute; left: 0; color: var(--muted); }
.tier.pro li::before { color: var(--armed); }

/* ---------- FAQ ---------- */
details {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 8px;
  padding: .9rem 1.1rem; margin: .6rem 0; max-width: var(--measure);
}
summary { cursor: pointer; font-weight: 600; }
details p { margin: .8rem 0 .2rem; color: var(--ink-2); }

.callout {
  background: var(--panel); border: 1px solid var(--rule);
  border-left: 3px solid var(--amber); border-radius: 6px;
  padding: 1rem 1.2rem; margin: 1.6rem 0; max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--rule); padding: 2.5rem 0 3.5rem;
  color: var(--muted); font-size: .88rem;
}
footer a { color: var(--ink-2); }
footer .links { display: flex; gap: 1.3rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.disclaimer { max-width: 72ch; line-height: 1.6; }

/* ---------- colophon & releases ---------- */
.colophon { margin: 1rem 0 0; color: var(--muted); }
.colophon strong { color: var(--ink-2); font-weight: 600; }
.colophon a { color: var(--ink-2); }

.release {
  background: var(--panel); border: 1px solid var(--rule);
  border-left: 3px solid var(--armed); border-radius: 8px;
  padding: 1.3rem 1.5rem; margin: 1.5rem 0 2.5rem; max-width: var(--measure);
}
.release-head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: .8rem; }
.release-head .ver {
  font-family: "Barlow Semi Condensed", sans-serif; font-size: 1.6rem;
  font-weight: 700; color: var(--ink); line-height: 1;
}
.release-head .date { color: var(--muted); font-size: .88rem; }
.release ul { margin: .6rem 0 1rem; padding-left: 1.2rem; }
.release li { color: var(--ink-2); margin: .3rem 0; }
