/* SquatchPix — shared website styles */

:root {
  --clr-bg:        #0d0d0f;
  --clr-surface:   #18181c;
  --clr-surface2:  #222228;
  --clr-border:    #2e2e38;
  --clr-primary:   #c8b8ff;   /* Purple80 — light on dark */
  --clr-primary-dark: #6650a4; /* Purple40 */
  --clr-text:      #e8e6f0;
  --clr-muted:     #9e9aae;
  --clr-error:     #ffb4ab;
  --clr-success:   #96d8a4;
  --radius:        10px;
  --max-w:         960px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--clr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,15,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -.3px;
}

.nav-brand span { color: var(--clr-primary); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: .875rem;
  color: var(--clr-muted);
  transition: color .15s;
}

.nav-links a:hover { color: var(--clr-text); text-decoration: none; }

/* ── Layout ──────────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--clr-primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--clr-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
}

.btn:hover { opacity: .88; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clr-primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--clr-border);
  color: var(--clr-text);
}

/* ── Cards ───────────────────────────────────────────────────── */

.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--clr-text);
}

.card p {
  font-size: .9rem;
  color: var(--clr-muted);
}

.card .icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
  display: block;
}

/* ── Section headings ────────────────────────────────────────── */

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--clr-muted);
  margin-bottom: 40px;
  max-width: 560px;
}

/* ── Prose (Privacy / Terms) ─────────────────────────────────── */

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.prose .meta {
  color: var(--clr-muted);
  font-size: .875rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--clr-border);
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--clr-primary);
}

.prose p, .prose li {
  font-size: .9375rem;
  color: var(--clr-muted);
  margin-bottom: 12px;
}

.prose ul, .prose ol {
  padding-left: 24px;
}

.prose li { margin-bottom: 6px; }

.prose a { color: var(--clr-primary); }

.prose .placeholder-notice {
  background: var(--clr-surface2);
  border: 1px dashed var(--clr-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--clr-muted);
  font-size: .875rem;
}

/* ── Footer ──────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--clr-border);
  padding: 40px 24px;
  text-align: center;
  color: var(--clr-muted);
  font-size: .8125rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

footer .footer-links a { color: var(--clr-muted); }
footer .footer-links a:hover { color: var(--clr-text); text-decoration: none; }

/* ── Badge ───────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  margin-bottom: 16px;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 48px; }
  section { padding: 48px 0; }
}
