/* benchlyapp.dk — one stylesheet for every page. Colours follow the app's
   Material scheme (lib/theme/theme.dart) and the icon's background green. */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6fbf3;
  --surface: #ffffff;
  --text: #171d18;
  --muted: #414941;
  --primary: #316a41;
  --on-primary: #ffffff;
  --leaf: #acd484;
  --line: #c1c9bf;
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101510;
    --surface: #1c211c;
    --text: #dfe4dc;
    --muted: #c1c9bf;
    --primary: #98d4a3;
    --on-primary: #003919;
    --leaf: #3d5a2a;
    --line: #414941;
  }
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

/* Header */

.site-header {
  padding-block: 20px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.lang {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Landing */

.hero {
  padding-block: 48px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.4fr 1fr;
    padding-block: 72px 96px;
  }
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 24px;
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-art {
  justify-self: center;
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 56px;
  background: var(--leaf);
  display: grid;
  place-items: center;
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.35);
}

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: 56px;
}

.badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 0.9375rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feature h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9875rem;
}

/* Legal pages */

.doc {
  max-width: 44rem;
  padding-block: 32px 72px;
}

.doc h1 {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 0.9375rem;
}

.doc h2 {
  font-size: 1.25rem;
  margin: 32px 0 8px;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 48px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 4px 0;
}
