/* pocketrepo.io. The palette and the button follow the PocketRepo app, which
   takes them from Mugove's desktop styles. */
:root {
  --bg: #0d1117;
  --bar: #10141c;
  --accent: #2dd4a5;
  --on-accent: #0a1018;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #7a8fa6;
  --border: rgba(255, 255, 255, 0.07);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* Header */
.bar {
  background: var(--bar);
  border-bottom: 1px solid var(--border);
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.brand img { border-radius: 8px; }
nav { display: flex; gap: 20px; }
nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
nav a:hover { color: var(--text); }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-block: 64px 56px;
}
.hero-text { flex: 1 1 0; }
h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lede {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
  max-width: 34em;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  padding: 13px 22px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { opacity: 0.88; }
/* The second button in a pair: the same shape, outlined instead of filled, so
   the App Store link stays the one the eye lands on. */
.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 21px;
}
.button.ghost:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.aside {
  color: var(--dim);
  font-size: 14px;
  margin-top: 14px;
  text-wrap: balance;
}
.aside a { white-space: nowrap; }
/* The app's Broadcast screen, drawn at the app's own sizes. Its codes are the
   app's first pass for the sample payload (assets/broadcast-frames.png, from
   scripts/build-hero.mts): 13 codes of 75 modules, quiet zone included, shown
   at 4 px to a module so every module covers whole pixels. */
.shot {
  --module: 4px;
  flex: 0 0 auto;
}
.phone {
  width: calc(75 * var(--module) + 34px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--bar);
  border-bottom: 1px solid var(--border);
}
.phone-close {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  color: var(--dim);
}
.phone-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}
.phone-subtitle {
  color: var(--dim);
  font-size: 13px;
  line-height: 17px;
  margin-top: 1px;
}
.phone-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 20px;
}
.qr {
  width: calc(75 * var(--module));
  height: calc(75 * var(--module));
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
}
.qr img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.qr-status {
  height: 20px;
  margin-top: 12px;
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.qr-status span { display: block; }
/* Both strips step through the 13 codes together, at 5 codes per second (one
   of the app's speeds). */
.qr img,
.qr-status > span { animation: play-codes 2.6s steps(13) infinite; }
@keyframes play-codes {
  to { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .qr img,
  .qr-status > span { animation: none; }
}
.phone-hint {
  margin-top: 18px;
  color: var(--dim);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

/* Sections, separated by a hairline rule */
.section {
  border-top: 1px solid var(--border);
  padding-block: 36px;
}
h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.section p {
  color: var(--muted);
  max-width: 40em;
}
.steps {
  display: grid;
  gap: 10px;
  max-width: 40em;
  padding-left: 22px;
  color: var(--muted);
}
.steps strong { color: var(--text); }
.steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* Footer */
.foot {
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 14px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
}
.foot nav a { color: var(--dim); }

/* Privacy policy. The column lines up with the header, like the home page. */
.doc { padding-block: 48px 64px; }
.doc > * { max-width: 720px; }
.doc h1 { font-size: clamp(26px, 4vw, 34px); }
.doc .updated {
  color: var(--dim);
  margin-top: 6px;
}
.doc h2 { margin-top: 32px; }
.doc p {
  color: var(--muted);
  margin-top: 12px;
}

@media (max-width: 760px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    padding-block: 40px 36px;
  }
}

/* Too narrow for 4 px modules: 3 px still keeps every module on whole pixels. */
@media (max-width: 373px) {
  .shot { --module: 3px; }
}
