:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #1d2a33;
  --muted: #5b6770;
  --primary: #1f3a4d;
  --primary-text: #ffffff;
  --accent: #e0a458;
  --border: #e4dfd6;
  --hero-bg: #1f3a4d;
  --hero-text: #f7f5f1;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a20;
    --surface: #1a252d;
    --text: #e8e4dc;
    --muted: #9aa6ae;
    --primary: #e0a458;
    --primary-text: #121a20;
    --accent: #e0a458;
    --border: #2a3740;
    --hero-bg: #182630;
    --hero-text: #e8e4dc;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--hero-bg);
  color: var(--hero-text);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

/* Hero */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 48px 0 64px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lead { font-size: 1.15rem; opacity: 0.92; max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #1d2a33;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:focus-visible { outline: 3px solid var(--hero-text); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--hero-text); border-color: currentColor; }
.btn-small { padding: 6px 16px; font-size: 0.95rem; }
.btn-large { padding: 16px 32px; font-size: 1.15rem; }

/* Sections */
.section { padding: 56px 16px 8px; }
.h2-spaced { margin-top: 48px; }
.note { color: var(--muted); font-style: italic; }
.small { font-size: 0.9rem; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card p { margin: 0; color: var(--muted); }
.card h3 a { color: var(--primary); }

.rules, .steps { padding-left: 1.3em; }
.rules li, .steps li { margin-bottom: 0.7em; }

/* Join */
.join {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 56px;
  padding: 40px 20px;
}
.join .btn { margin: 8px 0 16px; }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Help numbers */
.numbers { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.numbers a {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  text-decoration: none;
}
.numbers a:hover { border-color: var(--accent); }
.num { font-size: 1.5rem; font-weight: 800; color: var(--primary); min-width: 3ch; }

/* Footer */
.foot {
  margin-top: 64px;
  padding: 40px 0;
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
}
.foot .small { color: inherit; opacity: 0.7; }
.motto { font-weight: 700; font-size: 1.2rem; }
