/* ============================================================
   Keep It — styles.css
   ============================================================ */

/* Custom properties */
:root {
  --color-bg: #F5F5F7;
  --color-surface: #FFFFFF;
  --color-text: #1D1D1F;
  --color-text-secondary: #6E6E73;
  --color-text-body: #3A3A3C;
  --color-link: #0066CC;
  --color-link-hover: #004499;
  --color-border: #D2D2D7;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 760px;
  --radius: 12px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

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

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.375rem;
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
  padding: 2rem 0;
  margin-top: 5rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-link);
  text-decoration: none;
}

/* ============================================================
   Home — Hero
   ============================================================ */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-link);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   Home — Content sections
   ============================================================ */

.home-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--color-border);
}

.home-section h2 {
  margin-bottom: 1rem;
}

.home-section p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 600px;
}

.home-section p + p {
  margin-top: 0.75rem;
}

/* ============================================================
   Support page
   ============================================================ */

.page-header {
  padding: 4rem 0 2.5rem;
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 4rem;
}

.support-card {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
}

.support-card h3 {
  margin-bottom: 0.625rem;
  font-size: 1rem;
}

.support-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Legal pages (Privacy, Terms)
   ============================================================ */

.legal-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
  margin-bottom: 0.5rem;
}

.legal-date {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.legal-body {
  padding: 3rem 0 5rem;
}

.legal-body h2 {
  font-size: 1.3125rem;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-body > section:first-child h2,
.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: 0.875rem;
}

.legal-body ul,
.legal-body ol {
  margin-bottom: 1rem;
  color: var(--color-text-body);
}

.legal-body li {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.375rem;
}

.legal-body strong {
  font-weight: 600;
  color: var(--color-text);
}

.legal-body a {
  word-break: break-word;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.8125rem;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .legal-header {
    padding: 2.5rem 0 2rem;
  }

  .legal-body {
    padding: 2rem 0 4rem;
  }
}
