:root {
  /* Palett – skog & papper (speglar app + webb) */
  --bg: #e7e3d8;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #1b1f1c;
  --ink-soft: #41463f;
  --muted: #797e74;
  --line: #e7e5dd;
  --line-strong: #dcd9cf;

  --forest: #2c5238;
  --forest-600: #356241;
  --forest-50: #eaf0ea;
  --ochre: #a9701f;

  --launch: #18271b;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 20, 0.05);
  --shadow: 0 10px 30px -18px rgba(20, 45, 25, 0.35);
  --shadow-lg: 0 30px 60px -28px rgba(16, 31, 21, 0.55);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  accent-color: var(--forest);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Dämpad älg i bakgrunden – djup utan att störa läsbarheten. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/moose.jpg') center bottom / cover no-repeat;
  opacity: 0.05;
  filter: saturate(0.85);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4 { line-height: 1.18; font-family: var(--font-serif); font-weight: 600; }

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-600); text-decoration: underline; }

::selection { background: var(--forest-50); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(231, 227, 216, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.nav__inner {
  max-width: 960px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 600; color: var(--ink); font-size: 17px; }
.nav__brand:hover { text-decoration: none; }
.nav__brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: var(--shadow-sm); }
.nav__links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav__links a {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 7px 12px; border-radius: 999px;
}
.nav__links a:hover { background: var(--surface); color: var(--forest); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--launch) url('/assets/moose.jpg') center 32% / cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(101deg, rgba(16,31,21,0.92) 0%, rgba(16,31,21,0.58) 50%, rgba(16,31,21,0.18) 100%),
    linear-gradient(to bottom, rgba(16,31,21,0) 48%, rgba(16,31,21,0.7) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 72px 20px 76px; }
.hero__icon { width: 92px; height: 92px; border-radius: 21px; box-shadow: 0 10px 30px rgba(0,0,0,0.45); margin-bottom: 22px; }
.hero__kicker { color: rgba(234,240,234,0.72); margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.hero h1 { color: #fbfaf5; margin: 0; font-size: clamp(34px, 6vw, 56px); }
.hero p { color: rgba(240,243,238,0.86); font-size: clamp(16px, 2.4vw, 20px); max-width: 32em; margin: 16px 0 0; }

.badges { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; padding: 11px 18px 11px 16px; border-radius: 12px;
  font-weight: 600; box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.appstore-badge:hover { text-decoration: none; color: #fff; transform: translateY(-1px); }
.appstore-badge svg { width: 24px; height: 24px; fill: #fff; }
.appstore-badge small { display: block; font-size: 10px; font-weight: 500; opacity: 0.8; letter-spacing: 0.04em; }
.appstore-badge span { font-size: 17px; line-height: 1.1; }
.badge-note { color: rgba(240,243,238,0.7); font-size: 13px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 44px 0; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0; color: var(--ink); }
.section-head p { color: var(--ink-soft); margin: 12px 0 0; font-size: 17px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--forest-50); color: var(--forest);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature__icon svg { width: 22px; height: 22px; stroke: var(--forest); fill: none; stroke-width: 1.8; }
.feature h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Screenshot gallery */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 22px;
  overflow-x: auto; padding: 8px 2px 24px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot { scroll-snap-align: center; }
.shot figure { margin: 0; }
.shot img {
  width: 232px; display: block; border-radius: 30px;
  border: 1px solid rgba(0,0,0,0.06); box-shadow: var(--shadow-lg); background: #000;
}
.shot figcaption { text-align: center; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* Disclaimer card */
.notice {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ochre);
  border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.notice h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.notice p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Article (legal/support pages) ---------- */
.page-hero {
  background: var(--launch) url('/assets/moose.jpg') center 35% / cover no-repeat;
  position: relative; isolation: isolate;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to bottom, rgba(16,31,21,0.82), rgba(16,31,21,0.92));
}
.page-hero__inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 56px 20px; }
.page-hero h1 { color: #fbfaf5; margin: 6px 0 0; font-size: clamp(30px, 5vw, 44px); }
.page-hero .kicker { color: rgba(234,240,234,0.7); }

.article { padding: 48px 0 72px; }
.prose { max-width: 44em; }
.prose h2 { font-size: 22px; color: var(--ink); margin: 36px 0 12px; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 18px; color: var(--ink); }
.prose hr { border: none; border-top: 1px solid var(--line-strong); margin: 36px 0; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 26px; box-shadow: var(--shadow-sm); margin: 22px 0;
}
.card h3 { margin-top: 0; }

.contact-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--forest); color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--forest-600); color: #fff; text-decoration: none; }
.btn svg { width: 18px; height: 18px; fill: #fff; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 4px 18px; margin: 12px 0; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--forest); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq__body { padding: 14px 0 16px; color: var(--ink-soft); font-size: 15.5px; }
.faq .faq__body p { margin: 0 0 10px; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--launch); color: rgba(240,243,238,0.78); margin-top: 8px; }
.footer__inner {
  max-width: 960px; margin: 0 auto; padding: 44px 20px;
  display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer__brand strong { color: #fbfaf5; font-family: var(--font-serif); font-size: 18px; display: block; }
.footer__brand span { font-size: 13px; }
.footer nav { display: flex; flex-direction: column; gap: 9px; }
.footer nav a { color: rgba(240,243,238,0.82); font-size: 14.5px; }
.footer nav a:hover { color: #fff; }
.footer__legal { width: 100%; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 13px; color: rgba(240,243,238,0.6); }

@media (max-width: 560px) {
  section { padding: 48px 0; }
  .hero__inner { padding: 56px 20px 60px; }
}
