:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5e5e66;
  --border: #e3e3e8;
  --accent: #2f5bd8;
  --navy: #1b2340;
  --radius: 14px;
  --max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1a1d24;
    --text: #f2f2f5;
    --muted: #a3a6b0;
    --border: #2c303a;
    --accent: #7aa2ff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.rainbow {
  height: 4px;
  background: linear-gradient(90deg, #e8453c, #f59a23, #f2c94c, #3fbf5f, #2f80ed, #8e5be8);
}

header.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }

nav a {
  color: var(--muted);
  margin-left: 20px;
  font-size: 15px;
}
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 24px; letter-spacing: -0.01em; margin: 48px 0 12px; }
h3 { font-size: 18px; margin: 28px 0 6px; }
p, ul { margin: 0 0 14px; }
li { margin-bottom: 6px; }

.lede { font-size: 20px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Home */
.hero { text-align: center; padding: 32px 0 8px; }
.hero img { width: 160px; height: 160px; }
.hero h1 { font-size: 48px; margin-top: 12px; }
.hero .lede { max-width: 560px; margin: 0 auto 20px; }

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.mosaic {
  display: grid;
  grid-template-columns: 5fr 3fr 2fr;
  grid-template-rows: 70px 50px 40px;
  gap: 4px;
  margin: 40px auto 8px;
  max-width: 520px;
  border-radius: var(--radius);
  overflow: hidden;
}
.mosaic span { display: block; }
.mosaic span:nth-child(1) { grid-row: 1 / 4; background: #2f80ed; }
.mosaic span:nth-child(2) { grid-column: 2 / 4; background: #e8453c; }
.mosaic span:nth-child(3) { background: #f59a23; }
.mosaic span:nth-child(4) { grid-row: 2 / 4; background: #3fbf5f; }
.mosaic span:nth-child(5) { background: #8e5be8; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 10px; }
details p:last-child, details ol:last-child, details ul:last-child { margin-bottom: 0; }

.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

footer.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
footer.site a { color: var(--muted); margin-left: 16px; }
footer.site a:first-child { margin-left: 0; }

@media (max-width: 560px) {
  h1 { font-size: 32px; }
  .hero h1 { font-size: 38px; }
  nav a { margin-left: 14px; }
}
