/* Creative Digital. Palett och typografi: 06_Identitet/brand_guide_mini.md */
/* Mått-anpassade reservtypsnitt: ingen layoutförskjutning när webbtypsnitten laddas */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia Bold"), local("Georgia-Bold"), local("Georgia"); font-weight: 600; size-adjust: 85.5%; ascent-override: 114.4%; descent-override: 29.8%; line-gap-override: 0.0%; }
@font-face { font-family: "DM Sans Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 105.6%; ascent-override: 94.0%; descent-override: 29.4%; line-gap-override: 0.0%; }
:root {
  --natt: #12263f;
  --papper: #f7f2e8;
  --barnsten: #d9912e;
  --barnsten-mork: #8a5710;
  --salvia: #8a9a7b;
  --rod: #c43b2b;
  --rod-ljus: #ec6a52;
  --kol: #25231f;
  --sten: #5e584f;
  --linne: #eae2d3;
  --vit: #fff;
  --serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --section: 4rem;
  --gap: 1.5rem;
}
@media (min-width: 56rem) { :root { --section: 7rem; --gap: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--papper); color: var(--kol);
  font: 400 1rem/1.6 var(--sans); overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--natt); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.2vw, 4.75rem); letter-spacing: -.012em; line-height: 1.04; }
h2 { font-size: clamp(1.9375rem, 4.4vw, 3.0625rem); letter-spacing: -.008em; }
h3 { font-size: 1.5625rem; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--barnsten-mork); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--natt); }
:focus-visible { outline: 3px solid var(--natt); outline-offset: 2px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--barnsten); }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.narrow > * { max-width: 44rem; }
.section { padding-block: var(--section); }
.section--line { border-top: 1px solid var(--linne); }
.section--linne { background: var(--linne); }
.dark { background: var(--natt); color: var(--papper); }
.dark h2, .dark h3 { color: var(--papper); }
.dark a { color: var(--barnsten); }
.dark a:hover { color: var(--papper); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--natt); color: var(--papper); padding: .75rem 1rem; border-radius: 4px; z-index: 30; }
.skip:focus { top: .5rem; color: var(--papper); }

.eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .875rem; font-weight: 600; color: var(--natt); margin-bottom: 1rem; }
.eyebrow::before { content: ""; flex: 0 0 2rem; height: 2px; background: var(--rod); }
.dark .eyebrow { color: var(--papper); }
.dark .eyebrow::before { background: var(--rod-ljus); }
.lede { font-size: 1.1875rem; line-height: 1.5; color: var(--kol); max-width: 36rem; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p:not(.eyebrow) { margin-top: 1rem; }
.muted { color: var(--sten); }
.small { font-size: .875rem; }

/* Knappar */
.btn {
  display: inline-block; padding: .875rem 1.375rem; border-radius: 8px; font-weight: 600; font-size: 1rem; line-height: 1.25;
  text-decoration: none; text-align: center; border: 1.5px solid transparent; font-family: var(--sans); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--main { background: var(--barnsten); color: var(--natt); }
.btn--main:hover { background: #c98225; color: var(--natt); }
.btn--ghost { border-color: var(--natt); color: var(--natt); background: transparent; }
.btn--ghost:hover { background: var(--natt); color: var(--papper); }
.dark .btn--main, .dark .btn--main:hover { color: var(--natt); }
.dark .btn--ghost { border-color: var(--papper); color: var(--papper); }
.dark .btn--ghost:hover { background: var(--papper); color: var(--natt); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Sidhuvud */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--papper); border-bottom: 1px solid var(--linne); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.logo { display: block; flex: none; padding-block: .5rem; }
.logo img { width: 172px; height: auto; }
.menu-btn { font: 600 .9375rem var(--sans); background: none; border: 1.5px solid var(--natt); color: var(--natt); border-radius: 8px; padding: .5rem .875rem; cursor: pointer; }
.site-nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--papper); border-bottom: 1px solid var(--linne); padding: .5rem 1rem 1.25rem; }
.site-nav.open { display: block; }
.site-nav ul { display: grid; }
.site-nav li a { display: block; padding: .75rem 0; color: var(--natt); text-decoration: none; font-weight: 600; font-size: 1.0625rem; border-bottom: 1px solid var(--linne); }
.site-nav li a[aria-current="page"] { color: var(--rod); }
.site-nav .btn { display: block; margin-top: 1rem; }
@media (min-width: 66rem) {
  .menu-btn { display: none; }
  .site-nav { display: flex; position: static; align-items: center; gap: 1.5rem; padding: 0; border: 0; }
  .site-nav ul { display: flex; gap: 1.375rem; }
  .site-nav li a { padding: .375rem 0; font-size: .9375rem; border: 0; font-weight: 400; }
  .site-nav li a:hover { color: var(--rod); }
  .site-nav .btn { margin: 0; padding: .625rem 1rem; font-size: .9375rem; }
}

/* Brödsmulor */
.crumbs { padding-top: 1.25rem; font-size: .875rem; color: var(--sten); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .375rem; }
.crumbs li + li::before { content: "/"; margin-right: .375rem; }
.crumbs a { color: var(--sten); }

/* Hero, startsidan */
.hero { padding-block: 2.5rem 0; }
.hero-grid { display: grid; gap: 1.75rem; }
.hero h1 span { display: block; color: var(--rod); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.cta-note { font-size: .9375rem; color: var(--sten); width: 100%; }
.film { margin-top: 2.5rem; }
.film img, .fig img { border-radius: 12px; width: 100%; }
figcaption { font-size: .75rem; color: var(--sten); margin-top: .5rem; }
.dark figcaption { color: #c5ccd5; }
@media (min-width: 56rem) {
  .hero { padding-top: 4.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem; align-items: end; }
  .film { margin-top: 3.5rem; }
}

.promises { display: grid; gap: 1.25rem; padding-block: 2.5rem 0; }
.promises li { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: var(--natt); padding-top: 1rem; border-top: 2px solid var(--natt); }
@media (min-width: 56rem) { .promises { grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding-top: 3.5rem; } }

/* Kort */
.grid-3 { display: grid; gap: var(--gap); }
@media (min-width: 56rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--vit); border: 1px solid var(--linne); border-radius: 8px; padding: 1.75rem; display: flex; flex-direction: column; gap: .875rem; }
.card .link-arrow { margin-top: auto; padding-top: .5rem; }
.pain { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; line-height: 1.3; color: var(--rod); }
.proof { font-size: .9375rem; color: var(--natt); font-weight: 600; padding-top: .875rem; border-top: 1px solid var(--linne); }

/* Så funkar det: röda tråden */
.steps { position: relative; display: grid; gap: 2.5rem; counter-reset: s; }
.thread { display: none; }
.steps::before { content: ""; position: absolute; left: 1.1875rem; top: 1rem; bottom: 4rem; width: 2px; background: var(--rod); }
.step { position: relative; padding-left: 3.5rem; }
.mark { position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--papper); border: 2px solid var(--rod); color: var(--rod); display: grid; place-items: center; font-weight: 600; }
.step--end .mark { background: var(--rod); color: var(--papper); }
.mark svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.step h3 { margin-bottom: .5rem; padding-top: .3125rem; }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
  .steps::before { display: none; }
  .thread { display: block; position: absolute; left: 0; top: -.0625rem; width: 100%; height: 2.625rem; overflow: visible; }
  .thread path { fill: none; stroke: var(--rod); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .step { padding: 4rem 1rem 0 0; }
}

/* Kundberättelser, sammanfattning */
.case-card { display: flex; flex-direction: column; gap: .75rem; padding-top: 1.25rem; border-top: 2px solid var(--natt); }
.figure { font-family: var(--serif); font-weight: 600; font-size: clamp(2.75rem, 6vw, 3.8125rem); line-height: 1; color: var(--natt); }
.who { font-size: .875rem; color: var(--sten); font-weight: 600; }
blockquote { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; font-weight: 600; color: var(--natt); }
.case-card .link-arrow { margin-top: auto; }
.logos { margin-top: 3rem; font-size: .9375rem; color: var(--sten); }
.logos strong { color: var(--natt); }

/* Priser */
.tiers { display: grid; gap: var(--gap); align-items: stretch; }
@media (min-width: 56rem) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--vit); border: 1px solid var(--linne); border-radius: 8px; padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.tier h3 { font-size: 1.375rem; }
.tier-tag { color: var(--sten); }
.tier-price { font-family: var(--serif); font-weight: 600; color: var(--natt); font-size: 2.4375rem; line-height: 1.1; margin-top: .25rem; }
.tier-price span { font: 400 1rem var(--sans); color: var(--sten); }
.tier-bind { font-size: .9375rem; font-weight: 600; color: var(--natt); padding-bottom: .875rem; border-bottom: 1px solid var(--linne); }
.tier ul { display: grid; gap: .5rem; font-size: .9375rem; margin-bottom: .75rem; }
.tier li { padding-left: 1.25rem; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: .6875rem; width: .75rem; height: 2px; background: var(--rod); }
.tier .btn { margin-top: auto; }
.tier--plus { background: var(--natt); border-color: var(--natt); }
.tier--plus h3, .tier--plus .tier-price, .tier--plus .tier-bind, .tier--plus li { color: var(--papper); }
.tier--plus .tier-tag, .tier--plus .tier-price span { color: #c5ccd5; }
.tier--plus .tier-bind { border-color: #2c4567; }
.tier--plus li::before { background: var(--barnsten); }
.tier-note { margin-top: 1.5rem; font-size: .9375rem; color: var(--sten); max-width: 44rem; }

.table-wrap { background: var(--vit); border: 1px solid var(--linne); border-radius: 8px; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .8125rem; line-height: 1.35; }
caption { text-align: left; }
th, td { padding: .625rem .25rem; border-bottom: 1px solid var(--linne); text-align: left; vertical-align: top; overflow-wrap: break-word; }
thead th:first-child { width: 36%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--serif); color: var(--natt); font-size: .8125rem; }
tbody th { font-weight: 400; }
tr > :first-child { padding-left: .75rem; }
tr > :last-child { padding-right: .5rem; }
td svg { width: 1rem; height: 1rem; color: var(--rod); fill: none; stroke: currentColor; stroke-width: 2.5; display: block; }
.no { color: var(--sten); }
.tr-group th { font-weight: 600; color: var(--natt); background: var(--papper); }
@media (min-width: 40rem) { table { font-size: 1rem; } thead th { font-size: 1.0625rem; } th, td { padding: .875rem 1rem; } tr > :first-child { padding-left: 1.25rem; } }

.costs { display: grid; gap: 0; border-top: 1px solid #d6ccb9; }
.costs div { display: grid; gap: .25rem; padding-block: 1rem; border-bottom: 1px solid #d6ccb9; }
.costs dt { font-weight: 600; color: var(--natt); }
@media (min-width: 40rem) { .costs div { grid-template-columns: 2fr 3fr; gap: 1.5rem; } }

/* Dela upp text och bild */
.split { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } .split--top { align-items: start; } }
.page-hero { padding-block: 1.5rem var(--section); }
.page-hero h1 { font-size: clamp(2.375rem, 5.6vw, 3.8125rem); }
.page-hero .lede { margin-top: 1.25rem; }
@media (min-width: 56rem) { .page-hero { padding-top: 3rem; } }

.pain-list { display: grid; gap: 0; }
.pain-list li { font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.5625rem); line-height: 1.25; color: var(--natt); padding-block: 1.125rem; border-bottom: 1px solid #d6ccb9; }
.pain-list li:first-child { border-top: 1px solid #d6ccb9; }

.modules { display: grid; gap: var(--gap) 3rem; }
@media (min-width: 40rem) { .modules { grid-template-columns: 1fr 1fr; } }
.modules h3 { font-size: 1.25rem; margin-bottom: .375rem; }
.modules li { padding-top: 1rem; border-top: 1px solid var(--linne); }
.pack-note { margin-top: 2rem; font-size: .9375rem; color: var(--sten); max-width: 44rem; }
.always { display: grid; gap: .5rem 2rem; margin-top: 2.5rem; padding: 1.5rem; border-radius: 8px; background: var(--linne); }
.always p { font-weight: 600; color: var(--natt); }
@media (min-width: 40rem) { .always { grid-template-columns: repeat(3, 1fr); } .always .eyebrow { grid-column: 1 / -1; } }

/* Fallet */
.case { display: grid; gap: 2rem; }
.case h2, .case h3.case-title { font-size: clamp(1.75rem, 3.6vw, 2.4375rem); }
.fea { display: grid; gap: 1.25rem; }
.fea dt { font-weight: 600; color: var(--rod); font-size: .875rem; }
.fea dd { margin: .125rem 0 0; }
.dark .fea dt { color: var(--rod-ljus); }
.case blockquote { font-size: clamp(1.5rem, 3.2vw, 2.1875rem); line-height: 1.2; }
.dark blockquote { color: var(--papper); }
.case cite { display: block; margin-top: .75rem; font: 600 .875rem var(--sans); color: var(--sten); }
.dark cite, .dark .case cite { color: #c5ccd5; }
@media (min-width: 56rem) { .case { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.story + .story { border-top: 1px solid var(--linne); }
.story h2 { margin-bottom: 2rem; }
.words { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--linne); }
.words h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.words dl { display: grid; gap: 1rem; max-width: 44rem; }
.words dt { font-weight: 600; color: var(--natt); font-size: .875rem; }
.words dd { margin: 0; }

/* Referenser */
.refs { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .refs { grid-template-columns: repeat(3, 1fr); gap: var(--gap); } }
.refs h3 { font: 600 1rem var(--sans); margin-bottom: .5rem; }
.refs li { padding-block: .25rem; }
.ref-inline { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* FAQ */
.faq { border-top: 1px solid #d6ccb9; }
.section:not(.section--linne) .faq { border-color: var(--linne); }
.faq details { border-bottom: 1px solid #d6ccb9; }
.section:not(.section--linne) .faq details { border-color: var(--linne); }
.faq summary { cursor: pointer; padding: 1.125rem 2rem 1.125rem 0; position: relative; font-weight: 600; color: var(--natt); font-size: 1.0625rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .875rem; font: 400 1.5rem var(--sans); color: var(--rod); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.25rem; max-width: 44rem; }

/* Ja/nej-block */
.nope { display: grid; gap: 2rem; }
.nope h2 { font-size: clamp(2.375rem, 6vw, 3.8125rem); }
.nope .lede { color: var(--papper); margin-top: 1.25rem; }
.nope ul { display: grid; }
.nope li { padding-block: 1rem; border-bottom: 1px solid #2c4567; }
.nope li:first-child { border-top: 1px solid #2c4567; }
@media (min-width: 56rem) { .nope { grid-template-columns: 7fr 5fr; gap: 5rem; align-items: end; } }

/* Avslut */
.closing { display: grid; gap: 2rem; }
.closing h2 { margin-bottom: 1rem; }
.closing--text { grid-template-columns: 1fr !important; }
@media (min-width: 56rem) { .closing { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; } }

/* Text */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.5625rem, 3vw, 1.9375rem); margin: 2.5rem 0 .75rem; }
.prose p + p, .prose ul { margin-top: .875rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: .375rem; }
.draft { background: var(--linne); border-left: 3px solid var(--rod); padding: 1rem 1.25rem; margin-bottom: 2rem; font-weight: 600; color: var(--natt); }
.legal-box { background: var(--linne); border-radius: 8px; padding: 1.5rem; }

/* Formulär */
.form { background: var(--vit); border: 1px solid var(--linne); border-radius: 8px; padding: 1.5rem; display: grid; gap: 1.125rem; }
@media (min-width: 40rem) { .form { padding: 2.25rem; } }
.field { display: grid; gap: .375rem; }
.field label { font-weight: 600; color: var(--natt); }
.field input, .field select {
  font: 400 1rem var(--sans); padding: .75rem; border: 1px solid #8b8375; border-radius: 4px; background: var(--vit); color: var(--kol); width: 100%; min-height: 3rem;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--natt); outline-offset: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; color: var(--natt); }
.form-status.err { color: var(--rod); }
.contact-list { display: grid; gap: 1rem; }
.contact-list dt { font-size: .875rem; color: var(--sten); }
.contact-list dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--natt); }
.contact-list a { color: var(--natt); }
.next-steps { counter-reset: n; display: grid; gap: 1rem; margin-top: 1.5rem; }
.next-steps li { counter-increment: n; padding-left: 2.25rem; position: relative; }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: 0; color: var(--rod); font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }

/* Sidfot */
.site-foot { background: var(--linne); padding-block: 3.5rem 2.5rem; font-size: .9375rem; }
.site-foot a { color: var(--natt); }
.foot-grid { display: grid; gap: 2rem; }
.foot-brand img { width: 172px; height: auto; margin-bottom: 1rem; }
.foot-h { font-weight: 600; color: var(--natt); margin-bottom: .5rem; }
.site-foot li { padding-block: .3125rem; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #d6ccb9; font-size: .875rem; color: var(--sten); display: grid; gap: .5rem; }
@media (min-width: 56rem) { .foot-grid { grid-template-columns: 4fr 2fr 2fr 3fr 2fr; gap: 2.5rem; } }

/* Små intåg */
@media (prefers-reduced-motion: no-preference) {
  .pending { opacity: 0; transform: translateY(14px); }
  .shown { transition: opacity .55s ease-out, transform .55s ease-out; }
  .steps.pending-line .thread { clip-path: inset(-12px 100% -12px 0); }
  .steps.draw .thread { clip-path: inset(-12px 0 -12px 0); transition: clip-path 1.3s ease-out; }
}
@media print { .site-head, .skip, .closing { display: none; } .pending { opacity: 1; transform: none; } }
