/* Patch Landing Page — Nat Friedman / sfcompute aesthetic
   JetBrains Mono. Light first. Near-zero color. Content dominates.
   Dark/light toggle included. No gradients, no illustrations, no chrome.
*/

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

body {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  width: 24px; height: 24px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--fg-muted);
  font-size: 12px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--fg-muted);
  padding: 4px 10px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg-faint); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 32px 64px;
  text-align: left;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero p {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Inbox mockup — stripped browser chrome */
.hero-inbox { display: flex; justify-content: flex-start; }
.browser-window {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.browser-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.browser-dot:nth-child(1) { background: var(--fg-faint); }
.browser-dot:nth-child(2) { background: var(--fg-faint); }
.browser-dot:nth-child(3) { background: var(--fg-faint); }
.browser-bar-title {
  margin-left: 8px;
  font-size: 10px;
  color: var(--fg-faint);
}
.browser-url {
  flex: 1;
  margin-left: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  color: var(--fg-muted);
}

/* Inbox rows inside browser */
.b-window-channels {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.channel-pill {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.channel-pill.active { border-color: var(--fg-faint); color: var(--fg); }

.b-window-msgs { padding: 0; }
.b-msg {
  display: grid;
  grid-template-columns: 20px 90px 1fr 60px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.b-msg:hover { background: var(--hover-row); }
.b-msg-dot {
  width: 16px; height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
}
.b-msg-dot.signal { background: rgba(74,158,255,0.15); color: var(--signal); }
.b-msg-dot.gmail  { background: rgba(244,180,0,0.15);  color: var(--gmail); }
.b-msg-dot.sms    { background: rgba(76,175,80,0.15);  color: var(--sms); }
.b-msg-from { font-size: 11px; color: var(--fg); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-msg-text { font-size: 11px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-msg-time { font-size: 10px; color: var(--fg-faint); text-align: right; white-space: nowrap; }

/* ── Problem ────────────────────────────────────────────────────────── */
.problem {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 48px 32px;
}
.problem-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}
.problem-stat { text-align: center; flex-shrink: 0; }
.stat-num {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--fg);
  display: block;
}
.stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 6px;
}
.problem-divider { width: 1px; height: 80px; background: var(--border); flex-shrink: 0; }
.problem-text h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 10px;
}
.problem-text p { font-size: 13px; color: var(--fg-muted); line-height: 1.7; max-width: 360px; }

/* ── Features ───────────────────────────────────────────────────────── */
.features { padding: 64px 32px; }
.features-inner { max-width: 780px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 12px;
  display: block;
}

.features h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 40px;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.feature-item {
  padding: 28px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-item:nth-child(2n) { border-right: none; }
.feature-item:nth-child(2n-1) { border-bottom: 1px solid var(--border); }

.feature-item h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.feature-item p {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Platforms ───────────────────────────────────────────────────────── */
.platforms {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 32px;
}
.platforms-inner { max-width: 780px; margin: 0 auto; }

.platforms h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.platform-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-tag {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s;
}
.platform-tag:hover { border-color: var(--fg-faint); color: var(--fg); }

/* ── Closing CTA ─────────────────────────────────────────────────────── */
.closing {
  padding: 80px 32px;
  text-align: left;
}
.closing-inner { max-width: 780px; margin: 0 auto; }

.closing h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}
.closing p {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 400px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.8; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-faint); }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
}
.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
}
.footer-tagline { font-size: 11px; color: var(--fg-faint); }

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 48px 20px 48px; }
  .features-list { grid-template-columns: 1fr; }
  .feature-item { border-right: none; }
  .problem-inner { flex-direction: column; gap: 24px; }
  .problem-divider { display: none; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; }
}