/* Delad grund för de tre riktningarna. Värden ur Isaks designsystem
   (jarvis/design/tokens.css), uppskalade för en marknadssida.
   Varje sida sätter sin egen accent i --accent. */

:root {
  color-scheme: light;
  --canvas: #fcfcfa;
  --surface: #ffffff;
  --raised: #f4f3ef;
  --line: rgba(22, 21, 19, .11);
  --line-2: rgba(22, 21, 19, .17);
  --line-3: rgba(22, 21, 19, .28);
  --ink: #161513;
  --ink-2: #5e5a53;
  --ink-3: #716c63;
  --on-ink: #fcfcfa;
  --accent: #c8553d;
  --accent-lj: #f6e7e1;
  --on-accent: #ffffff;

  --sans: Archivo, ui-sans-serif, system-ui, sans-serif;
  --display: "Familjen Grotesk", Archivo, ui-sans-serif, system-ui, sans-serif;

  --gutter: 20px;
  --max: 1200px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 99px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 18px; } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.dold { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ram { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }

.ikon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* knappen: en per vy */
.knapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; font-size: 17px; white-space: nowrap;
  transition: background .12s ease, transform .12s ease;
}
.knapp:hover { background: #000; }
.knapp:active { transform: translateY(1px); }
.knapp .ikon { width: 18px; height: 18px; }

/* ── Instagram-kortet ─────────────────────────────────────── */
.ig {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.45;
}
.ig-topp { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ig-av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink);
  font-family: var(--display); font-weight: 600; font-size: 15px;
}
.ig-namn { flex: 1; min-width: 0; line-height: 1.2; }
.ig-namn b { display: block; font-weight: 600; font-size: 14px; }
.ig-namn span { display: block; color: var(--ink-3); font-size: 12.5px; }
.ig-topp .ikon { color: var(--ink-2); }
.ig-bild { position: relative; aspect-ratio: 1; background: var(--raised); overflow: hidden; }
.ig-bild img { width: 100%; height: 100%; object-fit: cover; }
.ig-exempel {
  position: absolute; top: 12px; left: 12px;
  height: 26px; padding: 0 11px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.ig-knappar { display: flex; gap: 14px; padding: 12px 14px 6px; color: var(--ink); }
.ig-knappar .sist { margin-left: auto; }
.ig-text { padding: 2px 14px 16px; }
.ig-text b { font-weight: 600; margin-right: 4px; }
.ig-skylt {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 28px;
  background: var(--accent-lj); color: var(--ink);
}
.ig-skylt strong { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 9vw, 40px); line-height: 1.02; letter-spacing: -.03em; }
.ig-skylt span { font-size: 15px; color: var(--ink-2); margin-top: 10px; }

/* raden med kort: rullar i sidled på mobil, i egen ruta */
.ig-rad {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px var(--gutter) 6px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.ig-rad::-webkit-scrollbar { display: none; }
.ig-rad > * { scroll-snap-align: center; }
@media (min-width: 900px) {
  .ig-rad { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; padding: 0; margin: 0; gap: 24px; }
}

/* ── formuläret ───────────────────────────────────────────── */
.form { display: grid; gap: 18px; max-width: 460px; }
.falt-rad { display: grid; gap: 8px; }
.falt-rad > span { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.falt {
  width: 100%; height: 54px; padding: 0 16px;
  border: 0; border-radius: var(--r);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  outline: none; font-size: 17px;
}
.falt:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.form .knapp { justify-self: start; margin-top: 6px; }
.tack { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -.02em; line-height: 1.2; }
.tack[hidden], .form[hidden] { display: none; }

/* frågorna */
.fragor { border-top: 1px solid var(--line); }
.fragor > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.fragor dt { font-weight: 600; }
.fragor dd { color: var(--ink-2); margin-top: 6px; max-width: 56ch; }

.kalla { font-size: 13px; color: var(--ink-3); }
.kalla a { text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
