/* =========================================
   Splitsies website — global styles
   Palette mirrors the iOS app
   ========================================= */

:root {
  --bg: #FBF5F2;
  --text: #1C1C1E;
  --text-secondary: #6B6B70;
  --accent-start: #E8845A;
  --accent-end: #7B5EA7;
  --positive: #2A8A66;
  --border: #E5DDD8;
  --card-bg: #FFFFFF;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

main {
  flex: 1;
}

/* ---- Layout ---- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow {
  max-width: 720px;
}

/* ---- Header ---- */

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex-shrink: 0;
}

/* ---- Hero ---- */

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

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.app-store-badge img {
  display: block;
  margin: 0 auto;
}

/* ---- Features ---- */

.features {
  padding: 4rem 0 5rem;
}

.features h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ---- Content pages (privacy policy, support) ---- */

.content-page {
  padding: 3.5rem 0 5rem;
}

.content-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.375rem;
}

.updated {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.content-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.content-page p,
.content-page li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.content-page ul {
  padding-left: 1.5rem;
}

.content-page a {
  color: var(--accent-start);
  text-decoration: none;
}

.content-page a:hover {
  text-decoration: underline;
}

/* ---- FAQ ---- */

.faq {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin-bottom: 0;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

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