/* ChirpChirps brand system — matches the App Store art direction:
   condensed cream headlines, mono labels, amber accent, deep navy ink. */

:root {
  --ink:       #060a14;
  --ink-2:     #0a1020;
  --ink-3:     #0e1526;
  --cream:     #f2ece0;
  --amber:     #ffb800;
  --amber-dim: #c9a200;
  --muted:     #7a839a;
  --muted-2:   #525b70;
  --line:      rgba(242, 236, 224, 0.10);
  --line-soft: rgba(242, 236, 224, 0.055);
  --maxw:      1120px;
}

* { box-sizing: border-box; }

html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--muted);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Type ─────────────────────────────────────────────── */

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin: 0 0 18px;
}
.eyebrow .dot { color: var(--muted-2); margin: 0 6px; }

h1, h2, h3, .display {
  font-family: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cream);
  letter-spacing: 0.005em;
  margin: 0;
}

h1 { font-size: clamp(3.4rem, 13vw, 8.5rem); line-height: 0.86; }
h2 { font-size: clamp(2.3rem, 6.5vw, 4.25rem); line-height: 0.92; margin-bottom: 14px; }
h3 { font-size: 1.32rem; line-height: 1.1; letter-spacing: 0.02em; }

.lede {
  font-size: clamp(1rem, 2.1vw, 1.16rem);
  line-height: 1.65;
  color: #98a1b5;
  max-width: 34rem;
  margin: 22px 0 0;
}

.section { padding: clamp(72px, 11vw, 132px) 0; border-top: 1px solid var(--line-soft); }
.section-head { margin-bottom: clamp(40px, 6vw, 68px); max-width: 44rem; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; }

/* ── Tuning-dial tick rule (the App Store motif) ───────── */

.ticks {
  height: 26px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 13px 26px;
  background-image: linear-gradient(to right, rgba(242,236,224,0.19) 1px, transparent 1px);
  background-position: 0 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  position: relative;
}
.ticks::after {
  content: "";
  position: absolute;
  left: 18%;
  bottom: 0;
  width: 2px;
  height: 26px;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.6);
}

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 3px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary {
  background: var(--amber);
  color: #17120a;
  box-shadow: 0 0 0 rgba(255,184,0,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(255, 184, 0, 0.26);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn-ghost:hover { border-color: rgba(242,236,224,0.3); transform: translateY(-2px); }

/* ── Nav ──────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 21px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cream); text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.nav-brand .pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px var(--amber);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2); text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--cream); }
@media (max-width: 620px) { .nav-links { gap: 15px; } .nav-links a { font-size: 10px; letter-spacing: .1em; } }

/* ── Hero ─────────────────────────────────────────────── */

.hero { position: relative; padding: 168px 0 clamp(80px, 12vw, 140px); overflow: hidden; }
#mesh {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 42%, #000 32%, transparent 78%);
          mask-image: radial-gradient(120% 80% at 50% 42%, #000 32%, transparent 78%);
}
.hero-in { position: relative; z-index: 2; }
.hero h1 span { display: block; }
.hero h1 .amber { color: var(--amber); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-strip {
  margin-top: clamp(56px, 8vw, 92px);
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-2);
}
.hero-strip b { color: var(--amber-dim); font-weight: 500; }

/* ── Steps ────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.step { background: var(--ink); padding: 40px 30px 44px; position: relative; }
.step .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.6rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,184,0,0.5);
  display: block; margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.65; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ── Shots ────────────────────────────────────────────── */

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.5vw, 40px); }
.shot img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(242,236,224,0.09);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}
.shot figcaption {
  margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted);
}
.shot .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber-dim); display: block; margin-bottom: 8px;
}
@media (max-width: 800px) { .shots { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }

/* ── Capability list ──────────────────────────────────── */

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.cap { background: var(--ink); padding: 34px 28px 38px; transition: background .2s; }
.cap:hover { background: var(--ink-2); }
.cap h3 { font-size: 1.15rem; margin-bottom: 9px; }
.cap p { margin: 0; font-size: 13.8px; line-height: 1.65; color: var(--muted); }
.cap .ix {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; color: var(--muted-2); display: block; margin-bottom: 16px;
}
@media (max-width: 900px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .caps { grid-template-columns: 1fr; } }

/* ── Specs ────────────────────────────────────────────── */

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.spec { background: var(--ink); padding: 34px 26px; }
.spec .v {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1;
  color: var(--cream); display: block;
}
.spec .k {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--muted-2);
  display: block; margin-top: 10px;
}
@media (max-width: 640px) { .specs { grid-template-columns: repeat(2, 1fr); } }

/* ── Use cases ────────────────────────────────────────── */

.uses { border-top: 1px solid var(--line-soft); }
.use {
  display: grid; grid-template-columns: 62px 1fr 1.25fr; gap: 24px; align-items: baseline;
  padding: 30px 4px; border-bottom: 1px solid var(--line-soft);
}
.use .ix { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .16em; color: var(--muted-2); }
.use h3 { font-size: 1.5rem; }
.use p { margin: 0; font-size: 14.5px; line-height: 1.6; }
@media (max-width: 760px) {
  .use { grid-template-columns: 1fr; gap: 8px; }
  .use .ix { order: -1; }
}

.disclaimer {
  margin-top: 30px; font-size: 12.5px; line-height: 1.7;
  color: var(--muted-2); max-width: 46rem;
}

/* ── Closing CTA ──────────────────────────────────────── */

.close { text-align: center; padding: clamp(90px, 14vw, 170px) 0; border-top: 1px solid var(--line-soft); }
.close h2 { margin-bottom: 20px; }
.close .lede { margin-inline: auto; text-align: center; }
.close .hero-cta { justify-content: center; }

/* ── Footer ───────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line-soft); padding: 40px 0 52px; }
.foot-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a, .foot small {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2);
  text-decoration: none; transition: color .15s;
}
.foot-links a:hover { color: var(--cream); }

/* ── Legal / prose pages ──────────────────────────────── */

.prose { max-width: 40rem; margin: 0 auto; padding: 132px 28px 100px; }
.prose h1 { font-size: clamp(2.6rem, 8vw, 4rem); line-height: .92; margin-bottom: 10px; }
.prose .updated {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2);
  margin: 0 0 56px;
}
.prose h2 { font-size: 1.45rem; line-height: 1.15; margin: 52px 0 12px; }
.prose h3 { font-size: 1.05rem; margin: 34px 0 8px; color: #cdd3e0; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.75; color: #8d95a9; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--cream); font-weight: 600; }
.prose a { color: var(--amber-dim); text-decoration: none; border-bottom: 1px solid rgba(201,162,0,.35); }
.prose a:hover { color: var(--amber); }
.prose code {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  color: var(--cream); background: var(--ink-3); padding: 2px 6px; border-radius: 3px;
}

/* Reveal-on-scroll — only ever hidden when JS is there to reveal it again. */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
}

/* Cards inside prose pages (credits libraries, support contact) */
.prose .cards { display: grid; gap: 12px; margin: 0 0 40px; }
.prose .card {
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
  border-radius: 6px;
  padding: 22px 24px;
}
.prose .card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--cream); }
.prose .card p { margin: 0 0 6px; font-size: 14px; }
.prose .card p:last-of-type { margin-bottom: 10px; }
.prose .card a { font-size: 14px; }

.prose .subtitle {
  font-size: 1.05rem; line-height: 1.6; color: #98a1b5;
  margin: 14px 0 52px;
}

/* Narrow screens: drop the in-page jump links so the wordmark never collides. */
@media (max-width: 600px) {
  .nav-brand { font-size: 18px; }
  .nav-links a.jump { display: none; }
}
