/* Företagarresan */
:root {
  --ink: #1c2b36;
  --ink-soft: #3d4c57;
  --muted: #66737c;
  --paper: #f6f3ed;
  --card: #fffdf9;
  --line: #ddd6ca;
  /* Blue leads (trust, the colour business reads as steady); orange is the
     second voice: the logo's middle dot and anything that needs attention. */
  --accent: #1f5f99;
  --accent-dark: #174a78;
  --orange: #c4552b;
  --orange-dark: #a2421d;
  --green: #2f6b4f;
  --blue: #1f5f99;
  --warn-bg: #fbeee6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gut: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 21px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--muted); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 10px; }
.kicker a { color: inherit; text-decoration: none; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 46em; }
.meta { font-size: 14px; color: var(--muted); }
.link { font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 22px; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--small { padding: 8px 16px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--card); color: var(--ink); }
.btn--green { background: var(--green); }

/* header / footer */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 22px/1 var(--serif); }
.brand .mark { width: 30px; height: 30px; color: var(--ink); }
.brand--light, .brand--light .mark { color: var(--paper); }
.brand--light .mark { --blue: #5b9bd5; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.foot { background: var(--ink); color: #d8dde0; margin-top: 80px; padding: 48px 0; font-size: 15px; }
.foot__in { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: #f1ede6; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* home */
.hero { padding: 72px 0 48px; }
.hero h1 { max-width: 15em; }
.hero__cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.steps ol { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; font-family: var(--serif); font-size: 19px; }
.steps span { color: var(--ink-soft); font-size: 15px; }
.block { margin-top: 64px; }
.block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card__img img { aspect-ratio: 1200 / 630; width: 100%; border-radius: 8px; margin-bottom: 14px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 32px; text-align: center; }
.band { background: #ebe5da; margin-top: 64px; padding: 48px 0; }
.band__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.list { padding-left: 18px; }

/* forms */
.nl, .stack { display: grid; gap: 14px; max-width: 520px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=tel], select, textarea {
  width: 100%; font: 16px/1.5 var(--sans); color: var(--ink); background: #fff; border: 1px solid #cfc7b9; border-radius: 8px; padding: 10px 12px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.msg { min-height: 1.4em; margin: 0; font-size: 15px; }
.msg--ok { color: var(--green); }
.msg--err { color: var(--orange-dark); }

/* pages */
.page { padding-top: 48px; }
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; }
.prose blockquote { margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--ink); font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.prose blockquote p { margin: 0; }

/* article */
.article { padding-top: 48px; }
.article header { max-width: 46em; }
.hero-img { margin: 28px 0; }
/* The picture is already cropped to 1200×630 by the person in it: show all of it. */
.hero-img img { width: 100%; aspect-ratio: 1200 / 630; border-radius: 12px; }
.hero-img figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; margin-top: 28px; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; position: sticky; top: 20px; }
.facts h2 { font-size: 21px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts .links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; font-weight: 600; font-size: 15px; }
.article__foot { max-width: 42em; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.share a { margin-right: 12px; font-weight: 600; }

/* the questionnaire and approval apps */
.app-page { max-width: 880px; }
.notice { background: var(--warn-bg); border-radius: 10px; padding: 14px 18px; margin: 16px 0; }
.notice--ok { background: #e6f0ea; }
.section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 22px 0; }
.section > h2 { margin-bottom: 4px; }
.section > p.muted { margin-top: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.choice { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; font-weight: 500; cursor: pointer; }
.choice input { margin: 0; }
details.mod { border-top: 1px solid var(--line); padding: 12px 0; }
details.mod summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style-position: outside; }
details.mod summary .count { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 8px; }
.q { margin: 14px 0 0; padding: 14px; border-radius: 10px; background: var(--paper); }
.q__head { display: flex; gap: 10px; align-items: flex-start; }
.q__head label { font-weight: 600; font-size: 16px; display: block; flex: 1; }
.tag { flex: none; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: #e2ddd3; color: var(--ink-soft); }
.tag--K { background: var(--ink); color: var(--paper); }
.tag--S { background: var(--warn-bg); color: var(--orange-dark); }
.q textarea { margin-top: 10px; }
.q .hint { font-size: 14px; color: var(--green); margin: 6px 0 0; }
.custom { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border-radius: 10px; background: var(--paper); }
.progress { position: sticky; bottom: 0; background: var(--ink); color: var(--paper); border-radius: 12px 12px 0 0; padding: 12px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 15px; z-index: 5; }
.progress a { color: #fff; }
.keep { word-break: break-all; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.preview { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.consents { display: grid; gap: 10px; }

/* cropping (crop.js) */
.stack--wide { max-width: none; }
.crop-stage { position: relative; width: 100%; max-width: 520px; overflow: hidden; border-radius: 8px; touch-action: none; user-select: none; background: #ddd; }
.crop-stage img { width: 100%; display: block; pointer-events: none; }
.crop-frame { position: absolute; outline: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(20, 28, 34, .55); cursor: move; touch-action: none; }
.crop-zoom { max-width: 520px; margin-top: 10px; }
.crop-zoom input { width: 100%; }
.crop-previews { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 12px; }
.crop-preview { margin: 0; }
.crop-preview canvas { display: block; max-width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.crop-preview figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.crop-saved img { max-width: 360px; width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 900px) {
  .steps ol { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .article__grid { grid-template-columns: 1fr; }
  .facts { position: static; }
  .foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .steps ol, .grid, .band__in, .row, .foot__in { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .nav { gap: 12px; }
  .section { padding: 18px; }
}
.prose .deeper { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.voice-row { margin-top: 8px; }
.voice { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.voice-row .voice { margin-top: 0; }
.voice__note { font-size: 14px; color: var(--muted); }
.voice__btn--on { background: var(--orange); border-color: var(--orange); color: #fff; }
.voice__btn--on:hover { background: var(--orange-dark); color: #fff; }
.invite { max-width: 42em; margin-top: 44px; padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; }
.invite h2 { margin: 0 0 8px; font-size: 24px; }
.invite p { margin: 0 0 14px; }
.invite p:last-child { margin: 0; }
