/* Shepherd's page, as is: Nord: polar night ground, snow storm text, one frost accent. Geist, as Zeron. Dark only. */
:root {
  --bg: #242933;
  --bg-raise: #2e3440;
  --ink: #eceff4;
  --dim: #a9b3c5;
  --faint: #6f7a90;
  --line: #3b4252;
  --line-soft: #333a49;
  --accent: #88c0d0;
  --accent-hi: #8fbcbb;
  --accent-ink: #2e3440;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); scroll-behavior: smooth; overflow-x: hidden; }
body {
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* ── nav ── */
nav { position: relative; z-index: 50; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; }
nav .links { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 500; padding: 11px 20px; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 9px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hi); }
.btn.ghost { background: transparent; color: var(--dim); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--ink); border-color: var(--faint); background: transparent; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; }
/* a field of dim terminal glyphs, drawn once by site.js, fading out towards the edges */
.glyphs {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask: radial-gradient(ellipse 70% 90% at 50% 40%, #000 20%, transparent 100%);
  mask: radial-gradient(ellipse 70% 90% at 50% 40%, #000 20%, transparent 100%);
}
.hero-grid { position: relative; z-index: 1; text-align: center; padding: 80px 32px 56px; }
.hero-copy { max-width: 760px; margin: 0 auto; }
/* one paragraph: the bold lead in --ink, the rest in --dim */
.hero h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.45; color: var(--dim); }
.hero h1 b { display: block; font-weight: 600; color: var(--ink); }
.hero .cta-row { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 12px 22px; flex-wrap: wrap; }
/* the hero keeps its own snow-white button and quiet text link */
.hero .btn { height: 40px; padding: 0 18px; font-size: 15.5px; background: var(--ink); color: var(--accent-ink); border-radius: 10px; }
.hero .btn:hover { background: #d8dee9; }
.hero .btn.ghost { background: transparent; color: var(--dim); border: 1px solid var(--line); }
.hero .btn.ghost:hover { color: var(--ink); border-color: var(--faint); }
.hero .text-link { font-size: 15.5px; font-weight: 500; color: var(--dim); transition: color .15s; }
.hero .text-link:hover { color: var(--ink); }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--faint); }

/* ── shots: the store captures, four phones in a row (two by two on a phone) ── */
.shots { padding: 20px 0 0; }
.shot-row { max-width: 1240px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shot-row img { width: 100%; border-radius: 14px; }

/* ── panel: intro, features in a hairline grid, a copy + figure row ── */
.panel-sect { padding-top: 88px; }
.p-copy h2 { font-size: clamp(26px, 3vw, 34px); }
.p-copy p { margin-top: 16px; max-width: 520px; font-size: 16.5px; line-height: 1.6; color: var(--dim); }
.p-intro { padding-bottom: 44px; }
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.feature { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* the mono caption voice, as Zeron's gallery captions */
.tag { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--accent); opacity: .85; }
.feature h3 { margin-top: 12px; font-size: 17.5px; letter-spacing: -0.02em; }
.feature p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--dim); }

.panel-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 72px 0 0; }
.panel-row .p-copy p + p { margin-top: 12px; }
.p-copy .cta-row { margin-top: 28px; display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.p-copy .text-link { font-size: 15px; font-weight: 500; color: var(--dim); transition: color .15s; }
.p-copy .text-link:hover { color: var(--ink); }
.desk-shot { width: 100%; border-radius: 12px; align-self: center; }
.p-copy .tag { margin-bottom: 12px; }
.p-copy a.inline { color: var(--accent); }
#herdr .panel-row { padding: 0 0 56px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-self: center; max-width: 520px; justify-self: center; }
.duo img { width: 100%; border-radius: 14px; }
.feature.shot { grid-column: span 2; padding: 0; overflow: hidden; }
.feature.shot img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: max-content 1fr; align-self: center; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { padding-right: 32px; font: 12.5px/1.9 var(--mono); color: var(--accent); }
.facts dd { color: var(--dim); }

/* ── downloads: centered lede, then hairline rows with a lead column and a list of builds ── */
.downloads { padding: 120px 0 0; }
.downloads .wrap { scroll-margin-top: 40px; }
.dl-lede { text-align: center; }
.dl-lede h2 { font-size: clamp(30px, 3.6vw, 40px); }
.dl-lede .sub { margin: 16px auto 0; max-width: 540px; font-size: 16.5px; line-height: 1.6; color: var(--dim); }
.version { color: var(--ink); }
.dl-rows { margin-top: 56px; border-bottom: 1px solid var(--line); }
.dl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; padding: 44px 0; border-top: 1px solid var(--line); }
.dl-lead h3 { font-size: 22px; letter-spacing: -0.02em; }
.dl-lead p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--faint); }
.dl-list { list-style: none; padding: 0; }
.dl-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.dl-list li + li { border-top: 1px solid var(--line-soft); }
.dl-name { font-size: 16px; font-weight: 500; }
.dl-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--faint); white-space: nowrap; }
.dl-list .btn { margin-left: auto; padding: 9px 15px; font-size: 14px; }
.pair { margin-left: auto; display: flex; gap: 8px; }
.pair .btn { margin-left: 0; }
.download-foot { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.download-foot a { color: var(--dim); transition: color .15s; }
.download-foot a:hover { color: var(--ink); }

/* ── closing, footer ── */
.closing { margin: 140px 0 80px; }
.closing h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; }
.closing p { margin-top: 18px; max-width: 520px; font-size: 17.5px; line-height: 1.6; color: var(--dim); }
.closing .cta-row { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
footer { padding: 28px 0 44px; }
.footer-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--faint); }
.footer-inner .right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.footer-note { flex-basis: 100%; font-size: 12.5px; }
footer a:hover { color: var(--dim); }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .panel-row, .dl-row { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav-inner { height: 58px; }
  /* the in-page anchors give way: Desktop and Get Shepherd stay on a phone's width */
  nav .links a[href^="#"]:not(.btn) { display: none; }
  .hero-grid { padding: 44px 20px 32px; text-align: left; }
  .hero-copy { margin: 0; }
  .hero .cta-row { justify-content: flex-start; }
  .panel-sect { padding-top: 64px; }
  .features { grid-template-columns: 1fr; }
  .feature.shot { grid-column: auto; }
  .shot-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .downloads { padding: 84px 0 0; }
  .dl-rows { margin-top: 36px; }
  .dl-row { padding: 32px 0; }
  .dl-list li { flex-wrap: wrap; row-gap: 8px; }
  /* the signature line is wider than a phone; nowrap would widen the whole row */
  .dl-meta { white-space: normal; }
  .closing { margin: 80px 0 56px; }
  footer { padding: 20px 0 32px; }
}