/* Norrjakt – grafisk profil som CSS. Färgerna kommer från app-ikonen (Design/AppIcon/render.swift). */

:root {
  /* Kärnfärger */
  --skog: #2F5D3A;        /* ikonens gradient, topp */
  --skog-djup: #16301E;   /* ikonens gradient, botten */
  --kurva: #E8E1C8;       /* höjdkurvor */
  --signal: #FF8A1F;      /* jaktområdesgräns */
  --signal-mork: #B35A00; /* signalorange för text på ljus bakgrund (WCAG AA) */
  --sno: #FFFFFF;         /* positionspilen */

  /* Ytor och text (ljust läge) */
  --bg: #F7F3E8;
  --surface: #FFFFFF;
  --surface-2: #EFE9D8;
  --text: #16301E;
  --text-2: #4A5A4E;
  --line: #D9D0B6;
  --link: #2F5D3A;
  --accent-text: var(--signal-mork);
  --dev-red: #C62828;
  --contours: url("contours-light.svg");

  --radius: 18px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgb(22 48 30 / .06), 0 8px 24px rgb(22 48 30 / .08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101F15;
    --surface: #17291C;
    --surface-2: #1E3424;
    --text: #EFEADB;
    --text-2: #B8BFA9;
    --line: #2C4733;
    --link: #F2C48D;
    --accent-text: var(--signal);
    --dev-red: #FF5A4E;
    --contours: url("contours-dark.svg");
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: .8em;
}
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 40em; }
.muted { color: var(--text-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; }

/* Sidhuvud */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.dev-badge {
  color: var(--dev-red); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.1;
  text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 760px) { .dev-badge { font-size: 1rem; } }
@media (max-width: 480px) { .site-header .brand-name { display: none; } }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 12px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #F4EFDF;
  background: var(--skog-djup) url("contours-dark.svg") center / cover no-repeat;
  background-image: url("contours-dark.svg"), linear-gradient(180deg, var(--skog), var(--skog-djup));
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero .lead { color: #D6DCCB; }
.hero .eyebrow { color: var(--signal); }
.hero-phone { justify-self: center; width: min(300px, 80%); border-radius: 38px; box-shadow: 0 30px 60px rgb(0 0 0 / .45), 0 0 0 8px #0B160E; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; } }

.page-hero { background: var(--contours) right top / 900px auto no-repeat; border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* Knappar */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; font-size: 1rem;
}
.btn-primary { background: var(--signal); color: #1A1206; }
.btn-primary:hover { background: #FF9A3C; }
.btn-ghost { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--line); color: var(--text); }
.badge-soon { display: inline-block; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgb(255 138 31 / .16); color: var(--signal); }

/* Sektioner och kort */
section { padding: 64px 0; }
.alt { background: var(--surface-2); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.icon-dot {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--skog); color: #fff;
}
.icon-dot svg { width: 24px; height: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.shot { border-radius: 30px; box-shadow: var(--shadow); border: 6px solid var(--skog-djup); max-width: 300px; justify-self: center; }

.regions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.regions li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; margin: 0; }
.regions small { color: var(--text-2); font-weight: 500; }

/* Manual */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 20px 80px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: .95rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; color: var(--text-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); border-left-color: var(--signal); }
.doc-body { min-width: 0; max-width: 760px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h2 { padding-top: 8px; border-top: 1px solid var(--line); padding-top: 28px; }
.doc-body h2:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--skog); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center;
}
.btnref { display: grid; grid-template-columns: 52px 1fr; gap: 14px 16px; align-items: start; }
.btnref .k {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text);
}
.btnref .k svg { width: 22px; height: 22px; }
.btnref p { margin: 0; }
.note { border-left: 4px solid var(--signal); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 0 0 1.2em; }
.note strong:first-child { color: var(--accent-text); }
figure { margin: 0 0 1.5em; }
figure img { display: block; }
figcaption { font-size: .9rem; color: var(--text-2); margin-top: 8px; }
.shots { display: flex; gap: 18px; flex-wrap: wrap; }
.shots figure { flex: 1 1 200px; max-width: 260px; }
.shots img { border-radius: 24px; border: 5px solid var(--skog-djup); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details[open] { padding-bottom: 6px; }

.legal h2 { font-size: 1.4rem; }
.legal table, .table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .95rem; }
.legal th, .legal td, .table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th, .table th { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }

/* Grafisk profil */
.swatches { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.swatch { border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.swatch div { height: 96px; }
.swatch p { margin: 0; padding: 10px 12px; font-size: .88rem; }
.swatch code { font-size: .82rem; color: var(--text-2); }

/* Sidfot */
.site-footer { background: var(--skog-djup); color: #C9D0BC; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #F4EFDF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 .7em; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid rgb(232 225 200 / .15); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #9FA894; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
