/* PawCount site styles.
   Colours mirror the app's AccentColor asset, which has a light and a dark
   variant; the same split is reproduced here with prefers-color-scheme. */

:root {
  --accent: #498b67;
  --accent-soft: rgba(73, 139, 103, 0.12);
  --accent-line: rgba(73, 139, 103, 0.22);
  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #11150f;
  --text-dim: #5f6560;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --measure: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #68b383;
    --accent-soft: rgba(104, 179, 131, 0.14);
    --accent-line: rgba(104, 179, 131, 0.26);
    --bg: #000000;
    --surface: #131513;
    --text: #f4f6f4;
    --text-dim: #9aa19b;
    --border: rgba(255, 255, 255, 0.1);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

/* ---------- header ---------- */

.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.site-header nav a {
  text-decoration: none;
  color: var(--text-dim);
}

.site-header nav a:hover {
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.hero img.icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 28px 0 0;
  text-wrap: balance;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-dim);
  max-width: 44ch;
  margin: 18px auto 0;
  text-wrap: balance;
}

.pill {
  display: inline-block;
  margin-top: 30px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- screenshots ---------- */

.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 44px 24px 12px;
  scroll-snap-type: x mandatory;
  justify-content: flex-start;
}

@media (min-width: 900px) {
  .shots {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
  }
}

.shots img {
  width: 232px;
  flex: 0 0 auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  scroll-snap-align: center;
  background: var(--surface);
}

/* ---------- sections ---------- */

section {
  padding: 56px 0;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.section-lede {
  color: var(--text-dim);
  margin: 0 0 34px;
  max-width: 56ch;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.steps strong {
  display: block;
  margin-bottom: 6px;
}

.steps span {
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- prose (privacy page) ---------- */

.prose {
  max-width: 68ch;
  padding: 56px 0 24px;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.prose .updated {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 36px;
}

.prose h2 {
  font-size: 1.2rem;
  margin: 36px 0 8px;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}

.callout p {
  margin: 0;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 56px;
  color: var(--text-dim);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
