/* SAYVA – App theme (primary #2196F3, secondary #4CAF50, accent #FF9800) */
:root {
  --primary: #2196F3;
  --primary-dark: #1976D2;
  --secondary: #4CAF50;
  --accent: #FF9800;
  --error: #F44336;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --card-bg: #FAFAFA;
  --border: #E0E0E0;
  --text-primary: #212121;
  --text-secondary: #757575;
  /* Logo-inspired header */
  --header-bg: #1A2A3A;
  --header-glow: #66CCFF;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--header-bg) 0%, #253545 100%);
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.site-header .logo {
  display: block;
  margin: 0 auto 0.5rem;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.site-header .tagline {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

/* Navigation */
.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.site-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover {
  color: white;
}

.site-nav a.active {
  color: white;
  border-bottom-color: var(--accent);
}

/* Main */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

h1 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin: 2rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border);
}

p {
  margin: 0 0 1rem;
  color: var(--text-primary);
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Feature grid */
.features {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 500px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* How it works steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps li strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.steps li span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}

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

.site-footer a:hover {
  text-decoration: underline;
}

/* Accent highlight */
.highlight {
  background: linear-gradient(120deg, rgba(33, 150, 243, 0.12) 0%, rgba(76, 175, 80, 0.08) 100%);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}

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

.highlight a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.highlight a:hover {
  text-decoration: underline;
}

/* Legal pages */
.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

.legal h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}

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

.legal a:hover {
  text-decoration: underline;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--text-primary);
}

.legal ul li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.legal .last-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}
