/* Jagtafstand website — shared stylesheet for all languages (same pattern as jagttider-web).
   Dark forest green, warm off-white text, leaf-green accent. No meaning is carried by colour alone. */

:root {
  --bg: #12290F;
  --text: #EFE9DC;
  --text-dim: rgba(239, 233, 220, 0.85);
  --text-dimmer: rgba(239, 233, 220, 0.6);
  --accent: #9CCB7E;
  --accent-ink: #12290F;
  --hairline: rgba(239, 233, 220, 0.12);
  --serif: "Lora", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--accent); }

/* ── Language switch ── */

.langbar {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  padding: 12px 24px 0;
  max-width: 680px;
  margin: 0 auto;
}
.langbar .langswitch {
  display: flex;
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
}
.langbar a {
  padding: 6px 12px;
  color: var(--text-dimmer);
  text-decoration: none;
}
.langbar a[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ── Hero (front page) ── */

.hero { padding: 56px 24px 24px; }
.hero-inner { max-width: 480px; margin: 0 auto; text-align: center; }

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 40px;
  color: var(--text-dim);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-subtitle {
  font-size: 18px;
  margin: 0 auto 32px;
  max-width: 26em;
  color: var(--text-dim);
}

.appstore-button {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.appstore-pending {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--text-dimmer);
  margin: 0;
}

/* Cropped just below the widget on purpose: the phone runs off the bottom of
   the frame, only the top corners are rounded. */
.hero-shot {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 48px auto 0;
  border-radius: 16px 16px 0 0;
}

.punkter {
  list-style: none;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 0;
  margin: 48px 0 0;
  text-align: left;
}
.punkt { margin: 0; }
.punkt h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--accent);
}
.punkt p { margin: 0; font-size: 15px; color: var(--text-dim); }

.kilder {
  margin: 48px auto 0;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dimmer);
}

/* ── Text pages (privacy, support) ── */

.doc { padding: 40px 24px 24px; }
.doc-inner { max-width: 680px; margin: 0 auto; }

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
}

.doc h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.doc .updated { margin: 0 0 32px; font-size: 14px; color: var(--text-dimmer); }
.doc .lead { font-size: 18px; margin: 0 0 32px; color: var(--text-dim); }

.doc section { margin-bottom: 32px; }
.doc h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}
.doc h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.doc p { margin: 0 0 12px; color: var(--text-dim); }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 24px; color: var(--text-dim); }
.doc a { color: var(--accent); }

.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.faq-item p { margin: 0; }

.provenance {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  font-style: italic;
  color: var(--text-dimmer);
}

/* ── Site footer (legal disclosure, all pages) ── */

.site-footer {
  margin-top: auto;
  padding: 48px 24px 56px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
}
.site-footer-nav a { color: var(--accent); text-decoration: none; }
.site-footer-nav .dot { color: var(--text-dimmer); }
.site-footer-legal {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dimmer);
}
.site-footer-legal a { color: var(--text-dimmer); }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* ── Front page body text + widget example (Jesper's copy, 27/9) ── */

.forside-tekst {
  margin: 48px auto 0;
  max-width: 480px;
  text-align: left;
}
.forside-tekst p { margin: 0 0 16px; font-size: 16px; color: var(--text-dim); }
.forside-tekst .kort { color: var(--text); font-weight: 600; }

/* Plain-text rendering of the widget, as in the listing. No colour carries meaning. */
.widget-eksempel {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(239, 233, 220, 0.04);
  font-size: 15px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.widget-eksempel p { margin: 0; color: var(--text-dim); }
.widget-eksempel .sted { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.widget-eksempel b { color: var(--text); font-weight: 600; }

.forside-tekst .kilder { margin: 32px 0 0; max-width: none; font-size: 14px; color: var(--text-dimmer); }
.forside-tekst .gratis { margin-top: 24px; font-family: var(--serif); font-size: 20px; color: var(--accent); }

/* ── Front page media: header video + one screenshot (all-width hero) ── */

.hero-inner { max-width: 1040px; }
.hero-inner > .wordmark, .hero-inner > h1, .hero-inner > .hero-subtitle, .hero-inner > .appstore-pending { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-inner > .hero-subtitle { margin-bottom: 32px; }
.hero-inner > .wordmark { margin-bottom: 40px; }

.hero-video { position: relative; margin: 40px 0 0; }
.hero-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 822;
  border-radius: 16px;
  background: #0b1a09;
  object-fit: cover;
}
.video-toggle {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 8px 14px;
  min-height: 40px;
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  background: rgba(18, 41, 15, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.video-toggle:hover { border-color: var(--accent); }
.video-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.forside-grid { display: grid; gap: 40px; margin-top: 48px; }
.forside-grid .punkter { margin: 0; }
.forside-grid .forside-tekst { margin: 0 auto; }
.hero-shot-wrap { margin: 0; justify-self: center; }
.hero-shot-wrap .hero-shot {
  width: min(100%, 300px);
  aspect-ratio: 720 / 1565;
  height: auto;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--hairline);
}

@media (min-width: 860px) {
  .forside-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas: "punkter shot" "tekst shot";
    column-gap: 56px;
    align-items: start;
  }
  .forside-grid .punkter { grid-area: punkter; grid-template-columns: 1fr; }
  .forside-grid .forside-tekst { grid-area: tekst; margin: 0; max-width: none; }
  .hero-shot-wrap { grid-area: shot; }
}
