/* SaveMe — Landing & Legal pages
   Designed to match the in-app theme (purple accent on dark/light backgrounds).
*/

:root {
  --accent:        #6C63FF;
  --accent-dim:    rgba(108, 99, 255, 0.1);
  --accent-border: rgba(108, 99, 255, 0.3);
  --bg:            #FAFAFB;
  --bg-card:       #FFFFFF;
  --text-primary:  #1F2937;
  --text-secondary:#4B5563;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --success:       #16A34A;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Header ───────────────────────────────────────────────────────────────── */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text-primary);
}
.hero h1 .accent { color: var(--accent); }
.hero .subhead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(108, 99, 255, 0.45);
  text-decoration: none;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}
.feature p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Legal page content ───────────────────────────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal-page h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.legal-page .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 36px 0 10px;
  color: var(--text-primary);
}
.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.legal-page ul, .legal-page ol {
  padding-left: 22px;
}
.legal-page strong { color: var(--text-primary); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer .links a {
  color: var(--text-muted);
  font-size: 14px;
}
.footer .copyright {
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero { padding: 50px 20px 40px; }
  .hero h1 { font-size: 36px; }
  .hero .subhead { font-size: 16px; }
  .features { grid-template-columns: 1fr; padding: 20px 20px 60px; }
  .legal-page h1 { font-size: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
