/* Prompty marketing — minimal, function-over-polish. One column, system fonts,
   light/dark via prefers-color-scheme. The goal is "explain the product, get
   them to install or sign in" — not pixel-perfect art direction. */

:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #555;
  --line: #e5e5e5;
  --accent: #2b6cb0;
  --code-bg: #eef0f3;
  --card-bg: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --fg: #f0f0f0;
    --muted: #aaa;
    --line: #2c2c2c;
    --accent: #63b3ed;
    --code-bg: #242424;
    --card-bg: #1f1f1f;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--fg); }
header nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
header nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
header nav a:hover { color: var(--fg); }
header nav a.cta { color: white; }

main { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
section { margin-bottom: 3rem; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 0 1.5rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.cta {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}
.cta.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cta:hover { filter: brightness(1.08); }

h2 { font-size: 1.5rem; margin: 0 0 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
p { margin: 0 0 0.85rem; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

ul.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
ul.features li {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  line-height: 1.5;
}

code, pre {
  font-family: ui-monospace, "SF Mono", Monaco, Consolas, monospace;
  background: var(--code-bg);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.92em;
}
pre {
  padding: 0.85rem 1rem;
  overflow: auto;
  line-height: 1.45;
}
pre code { background: transparent; padding: 0; }

details {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}
details summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-left: 1.25rem;
}
details summary::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  transition: transform 0.15s;
}
details[open] summary::before { transform: rotate(90deg); }
details p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

a { color: var(--accent); }
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer p { margin: 0 0 0.5rem; }
