/* Avelan — static site styles */
:root {
  --bg: #fafaf8;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --card-bg: #ffffff;
  --border: #e5e5e7;
  --green: #34c759;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent: #2997ff;
    --card-bg: #2c2c2e;
    --border: #3a3a3c;
  }
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.page-header { padding: 48px 0 32px; text-align: center; }
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-header .subtitle { color: var(--text-secondary); font-size: 0.95rem; }

/* Navigation */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250,250,248,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
@media (prefers-color-scheme: dark) {
  nav { background: rgba(28,28,30,.85); }
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
nav .logo { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
nav .links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.9rem;
  margin-left: 24px; transition: color .2s;
}
nav .links a:hover { color: var(--accent); }

/* Hero (index) */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto 32px; }
.hero .cta {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 36px; border-radius: 980px; font-weight: 600;
  text-decoration: none; font-size: 1rem; transition: opacity .2s;
}
.hero .cta:hover { opacity: .85; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 0 0 60px; }
.feature-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.feature-card .icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* Legal pages (privacy, terms) */
.legal { padding: 0 0 80px; }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin: 36px 0 12px; }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--text); }

/* Privacy highlights */
.highlights { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 24px 0 32px; }
.highlight-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
}
.highlight-row .icon { font-size: 1.6rem; flex-shrink: 0; }
.highlight-row h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.highlight-row p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* Support page */
.support-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 24px;
}
.support-card h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.support-card p { font-size: 0.95rem; color: var(--text-secondary); }
.support-card a { color: var(--accent); text-decoration: none; }
.support-card a:hover { text-decoration: underline; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center; font-size: 0.82rem;
  color: var(--text-secondary);
}
footer a { color: var(--text-secondary); text-decoration: none; margin: 0 12px; }
footer a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 48px 0 40px; }
  nav .links a { margin-left: 16px; font-size: 0.82rem; }
}
