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

:root {
  --primary: #5957D6;
  --primary-dark: #4644B0;
  --text: #1a1a2e;
  --text-muted: #555;
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --border: #e0e0e8;
  --max-width: 720px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

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

.site-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
}

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

.site-header a {
  color: #fff;
}

.site-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-header nav a {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.site-header nav a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ---- Container ---- */

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

/* ---- Main content ---- */

main {
  flex: 1;
  padding: 2.5rem 1.5rem;
}

main .container {
  max-width: var(--max-width);
}

/* ---- Hero (landing page) ---- */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hero .description {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s;
}

.cta-button:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

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

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 540px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---- Legal pages (privacy, terms) ---- */

.legal h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal ul {
  margin-bottom: 1rem;
}

.legal ul {
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal .disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #6d5b00;
}

/* ---- Support page ---- */

.support h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.support h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.support p {
  margin-bottom: 1rem;
}

.email-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s;
}

.email-link:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

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

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
  margin: 0 0.75rem;
}

.site-footer a:hover {
  color: var(--primary);
}
