/* Postframe — postframe.net
   One stylesheet for every page. No build step, no JavaScript, no external requests.
   Edit the tokens below first; everything else is built from them. */

/* ---------------------------------------------------------------- tokens */

:root {
  --bg: #07080a;
  --bg-1: #0b0d10;
  --bg-2: #11151a;
  --line: rgb(255 255 255 / 0.10);
  --line-strong: rgb(255 255 255 / 0.18);
  --ink: #eef2f1;
  --ink-dim: #a8b0b5;
  --ink-faint: #7b838a;
  --accent: #6ee7b7;
  --accent-ink: #04221a;

  /* The mark's gradient, light to dark end. */
  --mint: #67ffc9;
  --cyan: #20dccf;
  --azure: #18a8f5;
  --violet: #7657ff;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 71rem;
  --measure: 42rem;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter,
          system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* ---------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* A single, very quiet wash of the mark's colours behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 120vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48rem 30rem at 18% 6%, rgb(32 220 207 / 0.10), transparent 70%),
    radial-gradient(42rem 26rem at 82% 0%, rgb(118 87 255 / 0.10), transparent 72%),
    radial-gradient(30rem 20rem at 55% 18%, rgb(103 255 201 / 0.05), transparent 75%);
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

code, kbd, samp {
  font-family: var(--mono);
  overflow-wrap: anywhere;
  font-size: 0.92em;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.36em;
}

kbd { white-space: nowrap; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
section + section { border-top: 1px solid var(--line); }

.lede {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-dim);
  max-width: var(--measure);
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
}

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 640;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 1.4rem + 5.3vw, 4.65rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  background: rgb(7 8 10 / 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 640;
  letter-spacing: -0.012em;
  font-size: 1.06rem;
  margin-right: auto;
}

.brand img { width: 2rem; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.15rem);
  font-size: 0.94rem;
}

.nav a {
  color: var(--ink-dim);
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.nav .button { color: var(--accent-ink); }

@media (max-width: 46rem) {
  .nav .quiet { display: none; }
}

@media (max-width: 27rem) {
  .nav a[href="/faq/"] { display: none; }
  .brand__name { display: none; }
}

@media (max-width: 44rem) {
  .site-header .wrap { gap: 0.7rem; min-height: 3.6rem; }
  .nav { gap: 0.55rem; font-size: 0.92rem; }
  .nav a.button { min-height: 2.4rem; padding: 0.45rem 0.85rem; font-size: 0.9rem; }
  .brand img { width: 1.7rem; }
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 620;
  font-size: 0.96rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, filter 160ms ease, background-color 160ms ease;
}
.button:hover { filter: brightness(1.07); text-decoration: none; }
.button:active { transform: translateY(1px); }

.button--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.button--ghost:hover { background: rgb(255 255 255 / 0.05); filter: none; }

.button--store {
  background: var(--ink);
  color: #0a0b0d;
  padding-inline: 1.35rem;
  border-radius: 12px;
}
.button--store svg { width: 1.15rem; height: 1.15rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}

.hero-mark { width: clamp(5.5rem, 12vw, 8.5rem); height: auto; margin-bottom: 1.6rem; }

.hero h1 { max-width: 24ch; }

.hero .lede { margin-block: 1.35rem 2rem; }

.hero-note {
  margin-top: 1.15rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
  max-width: 34rem;
}

/* ---------------------------------------------------------------- hero visual */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 22px 50px -28px #000;
  overflow: hidden;
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.02);
  font-size: 0.79rem;
  color: var(--ink-faint);
  font-family: var(--mono);
}

.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--line-strong); }
.dot:first-child { background: rgb(255 255 255 / 0.25); }

.panel__body { padding: clamp(1rem, 2.4vw, 1.6rem); }

.frames-figure { margin: 0; }

.frames-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.83rem;
  color: var(--ink-faint);
  font-family: var(--mono);
}

/* The HUD mock: a monospace readout in the app's own colours. */
.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgb(0 0 0 / 0.55);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.5;
  overflow-x: auto;
}

.hud__item { display: inline-flex; align-items: baseline; gap: 0.4rem; white-space: nowrap; }
.hud__label { font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em; color: var(--ink-faint); }
.hud__value { color: var(--ink); }
.hud__unit { font-size: 0.66rem; color: var(--ink-faint); }
.hud__value--good { color: #6ee7b7; }
.hud__value--warn { color: #ffd14d; }

/* ---------------------------------------------------------------- frame tracks */

.frames { display: grid; gap: 0.9rem; margin-bottom: 1.15rem; }

.track-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  margin-bottom: 0.45rem;
}

.track { display: flex; gap: 4px; align-items: stretch; height: 2.4rem; }

.tick { flex: 1 1 0; border-radius: 3px; }

.tick--real {
  background: rgb(255 255 255 / 0.10);
  border: 1px solid rgb(255 255 255 / 0.22);
}

.tick--gen {
  background: linear-gradient(180deg, var(--mint), var(--azure));
  box-shadow: 0 0 12px -2px rgb(32 220 207 / 0.45);
}

.frames-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.frames-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }

.swatch { width: 0.7rem; height: 0.7rem; border-radius: 2px; display: inline-block; }
.swatch--real { background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.3); }
.swatch--gen { background: linear-gradient(180deg, var(--mint), var(--azure)); }

/* ---------------------------------------------------------------- latency comparison */

.latency {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.25rem;
}

.latency__row {
  background: var(--bg-1);
  padding: clamp(1.15rem, 2.6vw, 1.75rem);
  display: grid;
  gap: 0.55rem;
}

.latency__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.latency__head h3 { margin: 0; font-size: 1rem; }

.latency__cost {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.latency__cost--good { color: var(--accent); }

.latency__bar {
  height: 0.7rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  overflow: hidden;
  display: flex;
}

.latency__fill {
  height: 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(115deg, rgb(255 255 255 / 0.22) 0 6px, rgb(255 255 255 / 0.1) 6px 12px);
  min-width: 2px;
}

.latency__fill--gen {
  background: linear-gradient(90deg, var(--mint), var(--azure));
}

.latency__row p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-dim);
  max-width: var(--measure);
}

.latency__row--accent .latency__head h3 { color: var(--ink); }

@media (min-width: 54rem) {
  .latency__row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  counter-reset: step;
}

.steps > li {
  background: var(--bg-1);
  padding: clamp(1.15rem, 2.6vw, 1.75rem);
}

.steps > li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-dim); font-size: 0.96rem; }

@media (min-width: 54rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.028), transparent 70%), var(--bg-1);
}

.cards--tight { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-dim); font-size: 0.95rem; }
.card__icon {
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.85rem;
  color: var(--accent);
}

/* ---------------------------------------------------------------- table */

.table-wrap { overflow-x: auto; margin-top: 2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 34rem;
}

caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

th, td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 650;
  border-bottom-color: var(--line-strong);
}

tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }

@media (max-width: 44rem) {
  .table-wrap--stack table { min-width: 0; }
  .table-wrap--stack thead { display: none; }
  .table-wrap--stack tr {
    display: block;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
  }
  .table-wrap--stack tr:first-child { padding-top: 0; }
  .table-wrap--stack th, .table-wrap--stack td {
    display: block;
    border: 0;
    padding: 0 0 0.5rem;
    white-space: normal;
  }
  .table-wrap--stack th[scope="row"] {
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    padding-bottom: 0.45rem;
  }
  .table-wrap--stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.2rem;
  }
  .table-wrap--stack caption { padding-top: 1.2rem; }
}

/* ---------------------------------------------------------------- callouts */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgb(110 231 183 / 0.05);
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
  margin-block: 1.5rem;
}
.note strong { color: var(--ink); }
.note > :last-child { margin-bottom: 0; }

.note--warn {
  border-left-color: #ffd14d;
  background: rgb(255 209 77 / 0.06);
}

/* ---------------------------------------------------------------- FAQ */

.faq { margin-top: 2rem; border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 0.35rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2.2rem 1.05rem 0;
  position: relative;
  font-weight: 570;
  font-size: 1.02rem;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.62rem;
  height: 0.62rem;
  margin-top: -0.42rem;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq details[open] summary::after { transform: rotate(225deg); margin-top: -0.2rem; }

.faq details > div {
  padding: 0 0 1.25rem;
  color: var(--ink-dim);
  max-width: var(--measure);
  font-size: 0.97rem;
}

.faq details > div > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- licence text */

.licence-text {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  color: var(--ink-dim);
  margin: 1.5rem 0 0;
}

/* ---------------------------------------------------------------- prose (legal, support) */

.prose { max-width: var(--measure); }
.prose > h2 { margin-top: 2.4rem; }
.prose > h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.15rem; margin: 0 0 1.05em; }
.prose li { margin-bottom: 0.4em; color: var(--ink-dim); }
.prose li strong { color: var(--ink); }
.prose h2:first-child { margin-top: 0; }

.small { font-size: 0.87rem; color: var(--ink-faint); }

/* ---------------------------------------------------------------- page head */

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head .lede { margin-top: 1rem; }

/* Two-column shell for docs-ish pages: content + sidebar. */
.shell {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}

.shell > * { min-width: 0; }

@media (min-width: 60rem) {
  .shell { grid-template-columns: minmax(0, 1fr) 16rem; }
  .shell__aside { position: sticky; top: 5.4rem; }
}

.shell__aside h2 {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}

.shell__aside ul { list-style: none; margin: 0 0 1.75rem; padding: 0; font-size: 0.93rem; }
.shell__aside li { margin-bottom: 0.35rem; }
.shell__aside a { color: var(--ink-dim); text-decoration: none; }
.shell__aside a:hover { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------------- contact block */

.contact {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-block: 1.75rem;
}

.contact__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  background: var(--bg-1);
}

.contact__card h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.contact__card p { font-size: 0.9rem; color: var(--ink-dim); margin-bottom: 0.55rem; }
.contact__card a {
  font-weight: 600;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- store availability */

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.8rem 0.32rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-dim);
  background: rgb(255 255 255 / 0.03);
}

.availability::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ffd14d;
  box-shadow: 0 0 0 3px rgb(255 209 77 / 0.16);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.35));
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.footer-grid h2 {
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: var(--ink-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }

.footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.6rem; }
.footer-brand img { width: 1.6rem; }

.legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-faint);
  max-width: none;
}

.legal p { margin: 0; max-width: 46rem; }

/* ---------------------------------------------------------------- 404 */

.notfound {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.5rem;
}
.notfound .hero-mark { margin-inline: auto; }

/* ---------------------------------------------------------------- motion & print */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  body { background: #fff; color: #000; }
  body::before, .site-header, .site-footer, .cta-row, .hero-mark { display: none; }
  a { color: #000; }
  .prose { max-width: none; }
}

/* App screenshots */
.shot { display: block; width: 100%; height: auto; border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
/* The HUD as the app draws it (HUDBar in Sources/main.swift), shown large in the hero */
.hud--hero { display: inline-flex; margin-top: 2.75rem; padding: .7rem 1.25rem; gap: .6rem 1.6rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; font-size: 1.35rem; border-radius: 8px; }
.hud--hero .hud__label { font-size: 1.1rem; font-weight: 900; letter-spacing: 0; }
.hud--hero .hud__value { font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.hud--hero .hud__unit { font-size: .85rem; font-weight: 500; color: rgb(255 255 255 / .55); }
.hud__label--orange { color: #ff9e33; }
.hud__label--pink { color: #ed669e; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- guide: drawn macOS UI */
.guide { max-width: 46rem; padding-bottom: 4rem; }
.guide h2 { margin-top: 3rem; }
.hud--guide { margin: .5rem 0 0; font-size: 1.1rem; }
.hud--guide .hud__label { font-size: .9rem; }
.mac { margin: 1.75rem 0; }
.mac figcaption { margin-top: .75rem; font-size: .85rem; color: var(--ink-faint); }
.mac-dialog, .mac-settings, .mac-toast {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: #f2f2f4; background: #2b2b2f; border-radius: 14px;
  box-shadow: 0 20px 60px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 255 255 / .1);
}
.mac-dialog { width: 17.5rem; padding: 1.25rem 1rem 1rem; text-align: center; }
.mac-dialog img { width: 64px; height: 64px; }
.mac-dialog__title { margin: .6rem 0 .4rem; font-size: .9rem; font-weight: 700; line-height: 1.3; }
.mac-dialog__text { font-size: .75rem; line-height: 1.4; color: rgb(242 242 244 / .8); }
.mac-dialog__buttons { display: grid; gap: .5rem; margin-top: 1rem; }
.mac-btn { display: inline-block; padding: .3rem .8rem; border-radius: 7px; font-size: .8rem; font-weight: 500;
  background: rgb(255 255 255 / .14); text-align: center; white-space: nowrap; }
.mac-btn--primary { background: #2f6fe4; color: #fff; }
.mac-settings { max-width: 30rem; padding: 1rem; }
.mac-settings__head { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.mac-settings__note { font-size: .78rem; color: rgb(242 242 244 / .6); margin-bottom: .75rem; }
.mac-settings__list { background: rgb(255 255 255 / .05); border-radius: 9px; margin-top: .6rem;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); }
.mac-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; font-size: .85rem; }
.mac-row + .mac-row { border-top: 1px solid rgb(255 255 255 / .07); }
.mac-row img { width: 28px; height: 28px; }
.mac-row span { flex: 1; }
.mac-row--selected b { color: #4c8dff; }
.mac-toggle { width: 2.1rem; height: 1.2rem; border-radius: 1rem; background: rgb(255 255 255 / .2); position: relative; flex: none; }
.mac-toggle::after { content: ""; position: absolute; top: .1rem; left: .1rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; }
.mac-toggle--on { background: #2f6fe4; }
.mac-toggle--on::after { left: auto; right: .1rem; }
.mac-toast { max-width: 22.5rem; padding: .9rem 1rem; }
.mac-toast__title { font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }
.mac-toast__text { font-size: .78rem; line-height: 1.45; }
.mac-toast__buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: .8rem; }

/* ---------------------------------------------------------------- guide: keyboard */
.kb { max-width: 40rem; padding: .7rem; border-radius: 14px; background: #1c1d21;
  box-shadow: 0 20px 60px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .08);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
.kb-row { display: flex; gap: .3rem; }
.kb-row + .kb-row { margin-top: .3rem; }
.kb-key { min-width: 0; height: 2.3rem; padding: .2rem .3rem; border-radius: 6px; background: #2e3036;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .35); color: rgb(255 255 255 / .55); font-size: .62rem;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: hidden; white-space: nowrap; }
.kb-sym { font-size: .8rem; line-height: 1; margin-bottom: .1rem; }
.kb-key--mod { background: #6ee7b7; color: #062a1d; font-weight: 700; }
.kb-key--f { background: linear-gradient(180deg, #2ee6c0, #22b8e8); color: #04202a; font-weight: 800; font-size: .9rem; justify-content: center; }
.kb-key--m { background: linear-gradient(180deg, #3b82f6, #8b5cf6); color: #fff; font-weight: 800; font-size: .9rem; justify-content: center; }
.kb-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.kb-swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -1px; margin-right: .45rem; }
.kb-swatch--mod { background: #6ee7b7; }
.kb-swatch--f { background: linear-gradient(180deg, #2ee6c0, #22b8e8); }
.kb-swatch--m { background: linear-gradient(180deg, #3b82f6, #8b5cf6); }
@media (max-width: 560px) { .kb-key { height: 1.7rem; font-size: .5rem; } .kb-sym { font-size: .6rem; } .kb-row, .kb-row + .kb-row { gap: .15rem; margin-top: .15rem; } }

/* ---------------------------------------------------------------- texture and hero
   One accent (--accent), black, fine grain, hairlines. The spotlight follows the pointer via
   assets/hero.js (two CSS variables); the frame strip is a pure CSS animation. */

/* Film grain over the whole site: barely there, it keeps the black from looking flat. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero { overflow: hidden; isolation: isolate; --spot-x: 75%; --spot-y: 45%; }
.hero > .wrap { position: relative; z-index: 1; }

/* Soft mint light that follows the pointer; the grain above gives it texture. */
.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--spot-x) var(--spot-y), rgb(110 231 183 / .14), transparent 65%),
    radial-gradient(900px circle at 100% 0%, rgb(110 231 183 / .05), transparent 60%); }

.hero .eyebrow { display: inline-block; padding: .4rem .7rem; border: 1px solid var(--line-strong); border-radius: 4px;
  font-family: var(--mono); font-weight: 500; letter-spacing: .08em; color: var(--ink-dim); }
.hero h1 em { font-style: normal; color: var(--accent); }

/* Frame strip: the game's frames on top, what you see underneath. Scrolls at the display's refresh rate. */
.strip { margin-top: 3.25rem; max-width: 40rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--ink-faint); }
.strip__row { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1rem; }
.strip__row + .strip__row { margin-top: .6rem; }
.strip__row b { font-weight: 500; color: var(--ink-dim); }
.strip__row b i { font-style: normal; color: var(--accent); }
.strip__track { height: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.strip__ticks { height: 100%; width: calc(100% + 36px); animation: strip 0.6s linear infinite; will-change: transform; }
.strip__ticks--game { background: linear-gradient(90deg, #fff 0 2px, transparent 2px) 0 0 / 36px 100% repeat-x; }
.strip__ticks--out {
  background: linear-gradient(90deg, #fff 0 2px, transparent 2px 12px, var(--accent) 12px 14px, transparent 14px 24px,
              var(--accent) 24px 26px, transparent 26px) 0 0 / 36px 100% repeat-x; }
@keyframes strip { to { transform: translateX(-36px); } }
@media (prefers-reduced-motion: reduce) { .strip__ticks { animation: none; } }

/* ---------------------------------------------------------------- input delay comparison
   Axis: 0–30 ms across the track. Both bars grow at the same speed over 1.8 s of a 3.6 s loop
   (30 ms → 1.8 s, 60× slower): 4.2 ms ends at 7%, 20.8 ms at 34.7%. */
.lag { margin: 2.25rem 0 0; max-width: 46rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }
.lag__lane { display: grid; grid-template-columns: 13rem 1fr 5.5rem; align-items: center; gap: 1rem; }
.lag__lane + .lag__lane { margin-top: .9rem; }
.lag__name { color: var(--ink-dim); }
.lag__ms { text-align: right; color: var(--ink-dim); font-size: .85rem; }
.lag__lane--pf .lag__name, .lag__lane--pf .lag__ms { color: var(--accent); }
.lag__track { position: relative; height: 26px; border-radius: 4px; background: rgb(255 255 255 / .04);
  box-shadow: inset 0 0 0 1px var(--line); }
.lag__input { position: absolute; left: 0; top: -4px; bottom: -4px; width: 2px; background: #fff; animation: lag-input 3.6s linear infinite; }
.lag__bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; transform-origin: left; }
.lag__bar--slow { width: 69.33%; background: rgb(255 255 255 / .28); animation: lag-slow 3.6s linear infinite; }
.lag__bar--fast { width: 14%; background: var(--accent); animation: lag-fast 3.6s linear infinite; }
.lag__hit { position: absolute; top: -4px; bottom: -4px; width: 2px; opacity: 0; }
.lag__hit--slow { left: 69.33%; background: #fff; animation: lag-hit-slow 3.6s linear infinite; }
.lag__hit--fast { left: 14%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: lag-hit-fast 3.6s linear infinite; }
.lag__axis { display: flex; justify-content: space-between; white-space: nowrap; margin: .6rem 6.5rem 0 14rem; color: var(--ink-faint); font-size: .65rem; }
.lag figcaption { margin-top: 1rem; color: var(--ink-faint); font-size: .7rem; }
@keyframes lag-input { 0%, 4% { opacity: 1; box-shadow: 0 0 12px #fff; } 10%, 100% { opacity: .35; box-shadow: none; } }
@keyframes lag-fast { 0% { transform: scaleX(0); opacity: 1; } 7% { transform: scaleX(1); } 88% { opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes lag-slow { 0% { transform: scaleX(0); opacity: 1; } 34.7% { transform: scaleX(1); } 88% { opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes lag-hit-fast { 0%, 6.9% { opacity: 0; } 7%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes lag-hit-slow { 0%, 34.6% { opacity: 0; } 34.7%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@media (max-width: 640px) {
  .lag__lane { grid-template-columns: 1fr auto; }
  .lag__track { grid-column: 1 / -1; grid-row: 2; }
  .lag__axis { margin: .6rem 0 0; }
}
@media (prefers-reduced-motion: reduce) { .lag__bar, .lag__hit, .lag__input { animation: none; opacity: 1; } }

/* ---------------------------------------------------------------- homepage visuals */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--media-first { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 860px) { .split, .split--media-first { grid-template-columns: 1fr; } }
.cards--stack { grid-template-columns: 1fr; gap: .75rem; margin-top: 1.5rem; }
.cards--stack .card { padding: 1rem 1.2rem; }

/* Universal: DLSS/FSR vs Postframe */
.flow { margin: 2.25rem 0 0; display: grid; gap: 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }
.flow__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: 10px; background: rgb(255 255 255 / .02); }
.flow__row--pf { border-color: rgb(110 231 183 / .35); background: rgb(110 231 183 / .04); }
.flow__label { width: 7rem; color: var(--ink-dim); }
.flow__row--pf .flow__label { color: var(--accent); }
.flow__games { display: flex; gap: .5rem; }
.flow__game { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-width: 5.6rem;
  padding: .55rem .6rem; border-radius: 6px; border: 1px dashed var(--line-strong); color: var(--ink-faint); }
.flow__game small { font-size: .6rem; color: var(--ink-faint); }
.flow__game--on { border-style: solid; border-color: rgb(255 255 255 / .5); color: var(--ink); }
.flow__row--pf .flow__game--on { border-color: rgb(110 231 183 / .7); }
.flow__arrow { width: 1.6rem; height: 1px; background: rgb(255 255 255 / .4); position: relative; }
.flow__arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid rgb(255 255 255 / .55); }
.flow__step { padding: .55rem .75rem; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--ink-dim); text-align: center; line-height: 1.35; }
.flow__step--pf { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 24px rgb(110 231 183 / .18); }

/* Built for the Mac: chip */
.chip { margin: 0; padding: 1.5rem; border-radius: 20px; position: relative;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .18) 0 2px, transparent 2px 14px) top / 100% 8px no-repeat,
              repeating-linear-gradient(90deg, rgb(255 255 255 / .18) 0 2px, transparent 2px 14px) bottom / 100% 8px no-repeat,
              repeating-linear-gradient(180deg, rgb(255 255 255 / .18) 0 2px, transparent 2px 14px) left / 8px 100% no-repeat,
              repeating-linear-gradient(180deg, rgb(255 255 255 / .18) 0 2px, transparent 2px 14px) right / 8px 100% no-repeat; }
.chip__die { padding: 1.25rem; border-radius: 14px; border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, #15181d, #0c0e11); box-shadow: 0 30px 80px rgb(0 0 0 / .45); }
.chip__name { display: block; margin-bottom: 1rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.chip__blocks { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.chip__block { display: flex; flex-direction: column; gap: .3rem; padding: .9rem; border-radius: 8px; border: 1px solid var(--line);
  background: rgb(255 255 255 / .03); font-weight: 650; font-size: .95rem; }
.chip__block small { font-family: var(--mono); font-weight: 400; font-size: .65rem; letter-spacing: .04em; color: var(--ink-faint); }
.chip__block--gpu { grid-column: 1 / -1; min-height: 7rem; justify-content: flex-end; border-color: rgb(110 231 183 / .6);
  background: radial-gradient(120% 120% at 100% 0%, rgb(110 231 183 / .18), transparent 60%), rgb(110 231 183 / .04); color: var(--accent); }
.chip__block--gpu small { color: rgb(110 231 183 / .75); }

/* Results: docked MacBook */
.dock { margin: 0; }
.dock svg { width: 100%; height: auto; display: block; }
.stats { display: grid; gap: .75rem; margin-top: 1.5rem; }
.stat { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.stat b { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat:first-child b { color: var(--accent); }
.stat span { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); }
.specs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 1rem; }
.specs li { padding: .35rem .7rem; border: 1px solid var(--line-strong); border-radius: 4px; font-family: var(--mono); font-size: .7rem; color: var(--ink-dim); }
.chip__block--wide { grid-column: 1 / -1; }
