/* Hand-written styles for the pbranks.com landing page. The palette mirrors
 * pbranks-web's design tokens (src/styles/globals.css) so the marketing page
 * and the app read as one product; dark mode follows the OS preference. */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --border: #e3e7ef;
  --fg: #0f172a;
  --fg-muted: #64748b;
  --primary: #0b1f3a;
  --primary-fg: #ffffff;
  --accent: #2563eb;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2b;
    --border: #24304a;
    --fg: #e6ebf5;
    --fg-muted: #94a3b8;
    --primary: #2563eb;
    --primary-fg: #ffffff;
    --accent: #5b8def;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.topbar-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand img {
  display: block;
  border-radius: 6px;
}

main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 auto 1.25rem;
  max-width: 40rem;
}

.lede {
  color: var(--fg-muted);
  font-size: 1.125rem;
  max-width: 38rem;
  margin: 0 auto 2.25rem;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 10px;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  transition: opacity 120ms ease;
}

.button:hover {
  opacity: 0.88;
  text-decoration: none;
}

.button-hero {
  font-size: 1.15rem;
  padding: 0.85rem 2.2rem;
}

.button-small {
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-bottom: 3rem;
}

/* Four cards read best as 2x2 rather than 3+1. */
@media (min-width: 44rem) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.feature h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.cta {
  text-align: center;
  padding: 1.5rem 0 4.5rem;
}

.cta p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0.25rem 0;
}

.fineprint {
  font-size: 0.8rem;
}
