/* nimiq.vote design tokens + landing styles.
   @nimiq/style sets html { font-size: 8px } so 1rem = 8px. All custom CSS below
   uses px to avoid the half-size trap; nq-* component classes use their own rem. */
:root {
  --nimiq-blue: #1f2348;
  --nimiq-light-blue: #0582ca;
  --nimiq-gold: #e9b213;
  --nimiq-green: #21bca5;
  --bg: #f8f8f8;
  --card: #ffffff;
  --ink: #1f2348;
  --ink-60: rgba(31, 35, 72, 0.6);
  --ink-40: rgba(31, 35, 72, 0.4);
  --ink-10: rgba(31, 35, 72, 0.1);
  --radius-card: 8px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Mulish', 'Muli', system-ui, sans-serif !important;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* The hidden attribute must win over any custom display on a component. */
[hidden] {
  display: none !important;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  padding: 20px 32px;
}
.site-header svg { flex-shrink: 0; }
.site-header__app {
  margin-left: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

/* ── Main ── */
.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 48px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  max-width: 640px;
  margin: 40px auto 8px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-wrap: balance;
}
.hero__lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 520px;
  margin: 0 auto 32px;
  text-wrap: pretty;
}
.cta { text-decoration: none; }

/* ── Mode cards ── */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 960px;
  margin: 56px auto 0;
}
.mode-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(31, 35, 72, 0.06);
  text-align: left;
}
.mode-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
}
.mode-card p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-60);
  margin: 0;
}
.mode-card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.25, 0, 0, 1);
}
.mode-card__link:hover {
  color: var(--nimiq-light-blue);
}

/* ── Footer ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
.site-footer a {
  color: var(--ink-40);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.25, 0, 0, 1);
}
.site-footer a:hover { color: var(--ink); }
.site-footer__hex { opacity: 0.4; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .modes { grid-template-columns: 1fr; max-width: 480px; }
  .hero { margin-top: 24px; }
}
@media (max-width: 520px) {
  .site-header { padding: 16px 20px; }
  .page-main { padding: 16px 16px 40px; }
  .hero h1 { font-size: 32px; }
  .hero__lead { font-size: 16px; }
  .mode-card { padding: 24px 20px; }
}
