@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #121213;
  --surface: #1c1c1e;
  --line: #3a3a3c;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --green: #538d4e;
  --green-bright: #6aaa64;
  --yellow: #b59f3b;
  --grey: #3a3a3c;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f4f4f5;
    --line: #d4d4d8;
    --text: #18181b;
    --muted: #71717a;
    --grey: #787c7e;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--green-bright); }

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav a.link { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a.link:hover { color: var(--text); }

/* Landing */

.hero { text-align: center; padding: 32px 0 48px; }
.hero img.mark { width: 128px; height: 128px; border-radius: 28px; }
.hero h1 {
  font-size: clamp(3rem, 13vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 24px 0 14px;
}
.tagline { color: var(--muted); font-size: 1.2rem; margin: 0 auto 28px; max-width: 32ch; }

.tiles { display: flex; justify-content: center; gap: 6px; margin: 0 0 32px; }
.tiles span { width: 34px; height: 34px; border-radius: 6px; animation: flip 0.5s ease-out both; }
.tiles span:nth-child(1) { background: var(--grey); animation-delay: .1s; }
.tiles span:nth-child(2) { background: var(--yellow); animation-delay: .2s; }
.tiles span:nth-child(3) { background: var(--yellow); animation-delay: .3s; }
.tiles span:nth-child(4) { background: var(--green); animation-delay: .4s; }
.tiles span:nth-child(5) { background: var(--green); animation-delay: .5s; }
.tiles span:nth-child(6) { background: var(--green); animation-delay: .6s; }
@keyframes flip { from { transform: rotateX(90deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tiles span { animation: none; } }

.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
}
.button:hover { background: var(--green-bright); }
.note { color: var(--muted); font-size: .9rem; margin-top: 10px; }

.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding-bottom: 48px;
}
.how div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.how h2 { font-size: 1.02rem; margin: 0 0 4px; font-weight: 700; }
.how p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Documents */

.doc { padding: 8px 0 48px; }
.doc h1 { font-size: 2.1rem; letter-spacing: -0.02em; margin: 8px 0 4px; }
.doc h2 { font-size: 1.2rem; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.meta { color: var(--muted); margin: 0 0 24px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.summary ul { margin: 8px 0 0; padding-left: 20px; }

footer { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: .85rem; }
footer .links { margin-bottom: 10px; }
footer a { color: var(--muted); }
footer p { margin: 0; line-height: 1.5; }
