/* Paintlet landing page — macOS-flavored theme, light + dark via prefers-color-scheme.
   No external fonts or CDNs: the system font stack gives SF Pro on macOS for free. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --border: rgba(0, 0, 0, 0.1);
  --card: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-text: #ffffff;
  --shadow: rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.72);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #131315;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --border: rgba(255, 255, 255, 0.12);
    --card: #1c1c1e;
    --card-border: rgba(255, 255, 255, 0.1);
    --accent: #2997ff;
    --accent-text: #ffffff;
    --shadow: rgba(0, 0, 0, 0.6);
    --nav-bg: rgba(20, 20, 22, 0.72);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  border-radius: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
/* Plain nav links are muted; the Download button keeps its own button color. */
.nav-links a:not(.btn) {
  color: var(--text-2);
}
.nav-links a:not(.btn):hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 16px;
  padding: 11px 22px;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-small .btn-icon {
  width: 15px;
  height: 15px;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.btn-small {
  font-size: 14px;
  padding: 6px 15px;
  background: var(--accent);
  color: var(--accent-text);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 22px;
}
.lede {
  font-size: clamp(17px, 2.3vw, 20px);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 30px;
}
.cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-shot {
  margin: 48px auto 0;
  max-width: 1080px;
}
.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px;
}
.section-alt {
  background: var(--bg-alt);
  max-width: none;
}
.section-alt > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.section h2,
.download h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 700;
  text-align: center;
  margin: 0 0 44px;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--shadow);
}
.card .icon {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--text);
  margin-bottom: 14px;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* Screenshots */
.shots {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
}
.shot figcaption {
  text-align: center;
  color: var(--text-2);
  font-size: 16px;
  max-width: 640px;
  margin: 20px auto 0;
}
.shot figcaption strong {
  color: var(--text);
}

/* Download CTA */
.download {
  text-align: center;
  padding: 88px 24px;
  background: var(--bg-alt);
}
.download img {
  border-radius: 16px;
  margin-bottom: 20px;
}
.download p {
  color: var(--text-2);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 28px;
}
.download .btn {
  margin-bottom: 4px;
}
.download .fineprint {
  font-size: 13px;
  color: var(--text-2);
  /* `auto` on the sides so it stays centered like the paragraph above it —
     .download p's `margin: 0 auto 28px` would otherwise be overridden here. */
  margin: 16px auto 0;
}

/* ---------- Prose pages (privacy) ---------- */
/* Narrower and left-aligned: the landing page's centered, oversized headings
   are wrong for reading paragraphs. */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 24px;
}
.prose h1 {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 8px;
}
.prose h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 40px 0 10px;
}
.prose p {
  margin: 0 0 16px;
}
.prose-meta {
  color: var(--text-2);
  font-size: 14px;
  margin: 0 0 32px;
}

/* Footer */
.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
}
.footer em {
  color: var(--text);
  font-style: italic;
}
.footer-meta {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.footer-meta a {
  color: var(--text-2);
}
.footer-meta a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }
  .nav-links a:not(.btn) {
    display: none;
  }
  .hero {
    padding-top: 56px;
  }
}
