:root {
  --ink: #071c19;
  --deep: #0a2a24;
  --teal: #00e0c0;
  --gold: #f5c518;
  --page: #eef3f1;
  --card: #ffffff;
  --muted: #5b6b67;
  --line: #d5e3de;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.shell {
  width: min(100% - 32px, 980px);
  margin-inline: auto;
}

.top {
  padding: calc(12px + env(safe-area-inset-top)) 0 12px;
  background: var(--ink);
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.top a {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.top a:hover { color: var(--gold); }

.mark {
  display: inline-grid;
  min-width: 40px;
  min-height: 28px;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero {
  padding: 28px 0 8px;
}

.hero-box {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

.plate {
  display: grid;
  width: 132px;
  height: 64px;
  place-items: center;
  background: #f3f7f5;
}

.plate img {
  width: auto;
  max-width: 112px;
  max-height: 40px;
  object-fit: contain;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stats {
  display: grid;
  gap: 1px;
  margin: 20px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.stats div {
  padding: 14px 16px;
  background: var(--card);
}

.stats span {
  display: block;
  color: #0a7a68;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats b {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
}

.body {
  display: grid;
  gap: 16px;
  padding-bottom: 36px;
}

.story,
.license,
.help {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

.story h2,
.license h2,
.help h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.story p,
.help p,
.license p {
  margin: 0 0 10px;
  color: #3d4c48;
  line-height: 1.55;
}

.story p:last-child,
.help p:last-child { margin-bottom: 0; }

.license {
  border-left: 4px solid var(--gold);
}

.license dl { margin: 12px 0 0; }
.license div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.license dt { color: var(--muted); }
.license dd { margin: 0; font-weight: 700; }

.license a,
.help a {
  display: inline-grid;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 16px;
  place-items: center;
  background: var(--teal);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.foot {
  padding: 16px 0 calc(18px + env(safe-area-inset-bottom));
  background: var(--deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.foot p { margin: 0; }

.top a:focus-visible,
.license a:focus-visible,
.help a:focus-visible {
  outline: 3px solid rgba(0, 224, 192, 0.55);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .shell { width: min(100% - 56px, 980px); }

  .hero-box {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .body {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  }

  .help { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
