:root {
  color-scheme: light;
  --bg: #d9eafe;
  --bg-soft: #f8fbff;
  --card: #ffffff;
  --text: #0a192f;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #0a192f;
  --border-light: #93c5fd;
  --accent: #60a5fa;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(10, 25, 47, 0.08);
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  min-height: 100vh;
}

a { color: var(--text); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--border);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
}

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

.hero {
  text-align: center;
  padding: 32px 0 48px;
}

.hero img.logo {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.pill {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0 0 40px;
}

.feature {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.card-grid {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 48px;
}

.card-link {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.card-link:hover { transform: translateY(-1px); }

.card-link span {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.site-footer {
  text-align: center;
  padding: 24px 0 48px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
}

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

/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.legal-page h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.legal-page h2 { font-size: 1.15rem; margin-top: 1.75rem; }
.legal-page p, .legal-page li { font-size: 0.95rem; line-height: 1.6; }
.legal-page .meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.legal-page ul, .legal-page ol { padding-left: 1.25rem; }
.legal-page .back { display: inline-block; margin-bottom: 1rem; font-size: 0.9rem; text-decoration: none; font-weight: 600; }
.legal-page .notice {
  background: #e8f2ff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
}
