/* ──────────────────────────────────────────────────────────────
   nycblocks.com — shared site styles
   Cool minimal SaaS palette (Linear / Stripe / Vercel feel).
   Brand DNA (indigo + green) kept as accents only — body copy and
   most chrome are neutral so long-form pages read calmly.
     bg       #fafafa   (very subtle off-white)
     ink      #0a0a0a   (near-black, slight warmth)
     muted    #525252   (neutral grey)
     accent   #4338ca   (muted indigo — CTAs + links ONLY)
     complete #16a34a   (forest green — walked/completed payoff)
   ────────────────────────────────────────────────────────────── */

:root {
  /* ── Surfaces — neutral, modern SaaS ── */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #ededed;

  /* ── Text — near-black body + neutral grey hierarchy ──
     Body copy is NOT brand-colored. Indigo is reserved for links / CTAs. */
  --ink: #0a0a0a;
  --ink-2: #262626;
  --muted: #525252;
  --subtle: #a3a3a3;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;

  /* ── Brand accent — slate (Stripe-style restrained neutral) ──
     Almost-grey with the barest blue tint. Accent disappears into
     chrome; only the green payoff reads as "brand color". Used on
     CTAs, links, brand surfaces, and eyebrow underlines. Long-form
     text NEVER uses --accent. */
  --accent:        #475569;
  --accent-strong: #334155;
  --accent-soft:   rgba(71, 85, 105, 0.07);
  --accent-dim:    rgba(71, 85, 105, 0.18);

  /* ── Forest green — payoff signal ── */
  --complete:        #16a34a;
  --complete-strong: #15803d;
  --complete-soft:   rgba(22, 163, 74, 0.10);

  /* ── Block visualization (decorative SVG on hero) ── */
  --block:        #e5e5e5;
  --block-strong: #d4d4d4;
  --block-stroke: rgba(10, 10, 10, 0.10);

  --water: #dbeafe;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1200px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--ink); color: #fff; }

/* ── Reusable typographic primitives ─────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow.neutral { color: var(--muted); }
.eyebrow.green   { color: var(--complete-strong); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 7vw, 92px); line-height: 0.96; letter-spacing: -0.04em; font-weight: 600; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
h4 { font-size: 17px; line-height: 1.3; }

p { margin: 0; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
p.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 56ch; line-height: 1.5; }

/* ── Layout primitives ───────────────────────────────────── */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: clamp(64px, 8vw, 120px) 0; }
section.tight { padding: clamp(48px, 5vw, 72px) 0; }

/* ── Top nav ─────────────────────────────────────────────── */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.015em;
  color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; background: var(--bg);
}
.brand-mark::before { left: 9px; top: 4px; width: 1.5px; height: 20px; }
.brand-mark::after  { top: 9px; left: 4px; height: 1.5px; width: 20px; }
.brand-mark .accent {
  position: absolute; left: 11px; top: 6px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--complete);
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: translateY(-1px); }

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

.site-foot {
  border-top: 1px solid var(--line);
  padding: 64px 0 48px;
  margin-top: 80px;
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14.5px; color: var(--ink); transition: color 0.15s ease; }
.foot-col a:hover { color: var(--complete-strong); }
.foot-blurb {
  font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 32ch; margin-top: 14px;
}
.foot-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

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

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  letter-spacing: -0.005em;
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* App Store badge — Apple's brand-guideline requires the badge to be
   black, not whatever brand color the surrounding page uses. Hardcoded
   to #000 so it doesn't drift if --ink ever moves again. Pure black
   matches the official "Download on the App Store" lockup. */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
  border: 1px solid #000;
}
.appstore-badge:hover { transform: translateY(-1px); background: #1a1a1a; border-color: #1a1a1a; }
.appstore-badge .apple {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.appstore-badge .copy { display: flex; flex-direction: column; line-height: 1; }
.appstore-badge .copy .pre { font-size: 10px; letter-spacing: 0.02em; opacity: 0.75; }
.appstore-badge .copy .main { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-top: 2px; }

/* ── Doc page (privacy / terms / support / delete) ──────── */

.doc-hero {
  padding: 72px 0 32px;
  border-bottom: 1px solid var(--line);
}
.doc-hero .eyebrow { color: var(--muted); }
.doc-hero h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 12px; }
.doc-hero .meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.doc-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding: 56px 0 24px;
}
.doc-toc {
  position: sticky; top: 88px;
  align-self: start;
  font-size: 14px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.doc-toc .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.doc-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-toc a { color: var(--muted); transition: color 0.15s ease; line-height: 1.35; display: block; }
.doc-toc a:hover { color: var(--ink); }

.doc-content { max-width: 70ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.doc-content h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
  scroll-margin-top: 88px;
  color: var(--ink);
}
.doc-content h2:first-child { margin-top: 0; }
.doc-content h3 { font-size: 17px; margin: 28px 0 10px; color: var(--ink); }
.doc-content p { margin-bottom: 14px; color: var(--ink-2); }
.doc-content ul { padding-left: 20px; margin: 0 0 16px; }
.doc-content li { margin-bottom: 8px; color: var(--ink-2); }
.doc-content strong { color: var(--ink); font-weight: 600; }
.doc-content a { color: var(--ink); border-bottom: 1.5px solid var(--accent-dim); }
.doc-content a:hover { border-bottom-color: var(--ink); }
.doc-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink);
}
.doc-content .callout {
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink-2);
}
.doc-content .callout strong { color: var(--ink); }

@media (max-width: 880px) {
  .doc-body { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc { position: static; border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; order: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { display: none; }
  .foot-base { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}
