/* Natthimlen: ett designat mörkt tema (produkten är en natthimmel). color-scheme: dark gör att
   formulärkontroller, rullningslister och datumväljare följer med. */
@font-face { font-family: Geist; src: url(/fonts/Geist-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --grund: #0b0e17;
  --grund-tonad: #10152a;
  --text: #f2efe8;
  --text-damp: #a9adbb;
  --linje: #262c42;
  --yta: #151b30;
  --accent: #f0c466;
  --accent-text: #15120a;
  --accent-hover: #f7d27f;
  --radie: 20px;
  --radie-liten: 12px;
  --kurva: cubic-bezier(.16, 1, .3, 1);
  --skugga: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 10px 30px -10px rgba(0, 0, 0, .5);
  --hoj: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 400 17px/1.5 Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1, "ss01" 0; -webkit-font-smoothing: antialiased;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-text); }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; font-weight: 700; }
h1 { font-size: 40px; letter-spacing: -.035em; }
h2 { font-size: 32px; }
h3 { font-size: 21px; letter-spacing: -.015em; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: 19px; color: var(--text-damp); max-width: 36ch; text-wrap: pretty; }
.liten { font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--text-damp); }
.prose { max-width: 65ch; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 20px; }
.prose h2 { font-size: 28px; margin: 56px 0 16px; }
.prose h3 { margin: 32px 0 8px; }
.prose li { margin: 6px 0; }
.prose dt { font-weight: 600; margin-top: 12px; }
.prose dd { margin: 0; color: var(--text-damp); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pris-tabell caption { text-align: left; padding-bottom: 12px; }
.skip { position: absolute; left: 20px; top: -60px; background: var(--accent); color: var(--accent-text); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 20; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--kurva), background-color .2s, color .2s, border-color .2s; border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--linje); }
.btn-ghost:hover { border-color: var(--text-damp); color: var(--text); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- sidhuvud ---------- */
.top { height: var(--hoj); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 700; letter-spacing: -.02em; font-size: 20px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo svg { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-damp); text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; border-radius: 999px; }
.nav a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; min-height: 44px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--accent-text); }
.nav .bara-dator { display: none; }

/* ---------- hjälte med konfigurator ---------- */
.hero { padding-block: 16px 64px; display: grid; gap: 24px; grid-template-areas: "text" "stage" "form"; }
.hero-text { grid-area: text; display: grid; gap: 16px; }
.conf { grid-area: form; display: grid; gap: 14px; }
.stage { grid-area: stage; display: grid; gap: 8px; justify-items: center; }
.stage .check { font-size: 14px; color: var(--text-damp); min-height: 40px; }
.poster {
  position: relative; width: min(100%, 420px); aspect-ratio: var(--ratio, 3 / 4); background: #0f1a33;
  border-radius: 4px; box-shadow: var(--skugga); overflow: hidden; border: 0 solid #121214; transition: border-width .4s var(--kurva);
}
.poster[data-framed="1"] { border-width: 10px; box-shadow: var(--skugga), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.poster canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#c-sky { opacity: 0; transition: opacity 1.2s ease-out; }
#c-sky.is-ready { opacity: 1; }
#c-sky.no-fade { transition: none; }
.stage-note { text-align: center; max-width: 42ch; text-wrap: pretty; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; position: relative; }
label, legend { font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--text-damp); }
.field input {
  font: inherit; color: var(--text); background: var(--yta); border: 1.5px solid var(--linje); border-radius: var(--radie-liten);
  min-height: 48px; padding: 0 14px; width: 100%; transition: border-color .2s;
}
.field input::placeholder { color: #8b91a4; }
.field input:hover { border-color: #3a4160; }
.field input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 196, 102, .25); }
.field input::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }
.hint { font-size: 14px; color: var(--text-damp); min-height: 1.4em; }
.hint.is-err { color: #f3a4a4; }
.hint:empty { display: none; }
.combo ul {
  position: absolute; top: calc(100% - 1.4em - 6px); left: 0; right: 0; z-index: 5; margin: 4px 0 0; padding: 6px; list-style: none;
  background: #1a2140; border: 1.5px solid var(--linje); border-radius: var(--radie-liten); box-shadow: var(--skugga); max-height: 260px; overflow: auto;
}
.combo li { padding: 10px 12px; border-radius: 8px; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.combo li[aria-selected="true"], .combo li:hover { background: rgba(240, 196, 102, .14); }
.combo li.is-action { color: var(--accent); font-weight: 500; }

fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--linje); border-radius: var(--radie-liten); cursor: pointer; color: var(--text); font-size: 14px; font-weight: 500; transition: border-color .2s, background-color .2s; }
.opt:hover { border-color: #3a4160; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.opt:has(input:checked) { border-color: var(--accent); background: rgba(240, 196, 102, .08); }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); flex: none; }
.sw-m { background: #14213d; } .sw-s { background: #0c0c0e; } .sw-v { background: #f8f5ef; }
.opt-size { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px; line-height: 1.2; }
.opt-size .pris { font-size: 14px; color: var(--text-damp); font-weight: 500; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--text); font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.egen { display: grid; gap: 12px; }
.egen summary { cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; color: var(--text-damp); min-height: 44px; display: flex; align-items: center; gap: 8px; }
.egen summary::-webkit-details-marker { display: none; }
.egen summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .4s var(--kurva); }
.egen[open] summary::before { transform: rotate(45deg); }
.egen summary:hover { color: var(--text); }
.mer { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.mer::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .4s var(--kurva); }
.mer:hover::after { transform: translateX(3px) rotate(45deg); }
.order { display: grid; gap: 10px; padding-top: 6px; }
.order .btn { min-height: 56px; font-size: 18px; }
.fine { font-size: 14px; color: var(--text-damp); }
.fine a { color: var(--text-damp); }
#kod-fel { color: #f3a4a4; }

/* ---------- mobilens beställningsrad ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 14, 23, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--linje); transform: translateY(110%); transition: transform .6s var(--kurva);
}
.bar.is-show { transform: none; }
.bar-text { display: grid; line-height: 1.25; }
.bar-text strong { font-size: 19px; letter-spacing: -.01em; }
.bar .btn { min-height: 48px; padding-inline: 28px; }

/* ---------- sektioner ---------- */
.sek { padding: 96px 0; }
.sek-tonad { background: var(--grund-tonad); }
.sek-head { display: grid; gap: 16px; max-width: 640px; margin-bottom: 48px; }
.sek-cta { margin-top: 40px; }

.steg { display: grid; gap: 32px; counter-reset: steg; }
.steg li { list-style: none; display: grid; align-content: start; gap: 10px; counter-increment: steg; }
.steg li::before { content: counter(steg, decimal-leading-zero); font-size: 48px; font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: -.04em; font-feature-settings: "tnum" 1; margin-bottom: 8px; }
.steg p { color: var(--text-damp); max-width: 32ch; text-wrap: pretty; }
.steg ol { padding: 0; margin: 0; }

.fakta { display: grid; gap: 48px; }
.fakta dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.fakta .rad { display: grid; gap: 4px; align-content: start; }
.fakta dt { color: var(--text-damp); font-weight: 500; font-size: 14px; letter-spacing: .01em; }
.fakta dd { margin: 0; text-wrap: pretty; }
.pris-tabell { width: 100%; border-collapse: collapse; }
.pris-tabell th, .pris-tabell td { text-align: left; padding: 14px 0; border-top: 1px solid var(--linje); vertical-align: middle; }
.pris-tabell tr:last-child td { border-bottom: 1px solid var(--linje); }
.pris-tabell th { font-weight: 500; color: var(--text-damp); font-size: 14px; letter-spacing: .01em; }
.pris-tabell .pris { font-weight: 600; font-size: 19px; white-space: nowrap; }
.pris-tabell td:last-child { text-align: right; padding-left: 12px; }
.pris-tabell .btn { min-height: 44px; padding-inline: 18px; font-size: 15px; }

.galleri { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 24px; margin: 0 -20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.galleri::-webkit-scrollbar { display: none; }
.galleri figure { flex: 0 0 min(76%, 300px); margin: 0; scroll-snap-align: center; display: grid; gap: 12px; }
.galleri canvas { width: 100%; aspect-ratio: var(--ratio, 3 / 4); border-radius: 4px; box-shadow: var(--skugga); background: #0f1a33; }
.galleri canvas.r57 { --ratio: 5 / 7; }
.galleri figcaption { font-size: 14px; color: var(--text-damp); }
.galleri figcaption strong { color: var(--text); display: block; font-weight: 600; }

.tillfallen { padding: 0; margin: 0; list-style: none; }
.tillfallen { display: grid; gap: 32px 40px; }
.tillfallen li { display: grid; gap: 6px; align-content: start; justify-items: start; }
.prova { margin-top: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); background: none; border: 1.5px solid var(--linje); border-radius: 999px; min-height: 40px; padding: 0 16px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.prova:hover { border-color: var(--accent); background: rgba(240, 196, 102, .08); }
.prova:active { transform: scale(.98); }
.tillfallen .t { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.tillfallen .u { max-width: 34ch; text-wrap: pretty; }
.tillfallen .u { color: var(--text-damp); font-feature-settings: "tnum" 1; }

.nya { display: grid; gap: 24px; max-width: 640px; }
.nya .kontakt { display: grid; gap: 4px; }
.nya .kontakt a { color: var(--text); text-decoration: none; font-weight: 500; }
.nya .kontakt a:hover { color: var(--accent); }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--linje); }
.faq details:last-child { border-bottom: 1px solid var(--linje); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 600; font-size: 19px; letter-spacing: -.01em; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-damp); border-bottom: 2px solid var(--text-damp); transform: translateY(-70%) rotate(45deg); transition: transform .4s var(--kurva); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .svar { padding: 0 0 24px; color: var(--text-damp); max-width: 62ch; text-wrap: pretty; }
.faq .svar p + p { margin-top: 10px; }

.slut { text-align: center; display: grid; gap: 20px; justify-items: center; }
.slut h2 { font-size: 36px; }
.slut .kontaktrad { color: var(--text-damp); }
.slut .kontaktrad a { color: var(--text); text-decoration: none; white-space: nowrap; }

/* ---------- sidfot ---------- */
.fot { padding-block: 48px calc(48px + 80px); border-top: 1px solid var(--linje); display: grid; gap: 24px; font-size: 14px; color: var(--text-damp); }
.fot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.fot a { color: var(--text-damp); min-height: 44px; display: inline-flex; align-items: center; }
.fot a:hover { color: var(--text); }
.fot p { max-width: 70ch; text-wrap: pretty; }

/* ---------- undersidor ---------- */
.sida { padding-block: 48px 96px; }
.sida h1 { margin-bottom: 24px; }
.tryck-grid { display: grid; gap: 32px; }
.tryck-grid dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.tryck-grid dt { color: var(--text-damp); }
.tryck-grid dd { margin: 0; overflow-wrap: anywhere; }
#c-prev { width: min(100%, 360px); aspect-ratio: var(--ratio, 3 / 4); border-radius: 4px; box-shadow: var(--skugga); }
.tryck-knappar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.status { min-height: 1.5em; color: var(--text-damp); }

/* ---------- landningssidor ---------- */
.h1-sok { display: block; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.tf-lank { font-size: 14px; color: var(--text-damp); min-height: 44px; display: inline-flex; align-items: center; }
.smulor { margin-bottom: 24px; }
.smulor a { color: var(--text-damp); }
.landning { display: grid; gap: 56px; }
.landning h1 { margin-bottom: 0; }
.landning-topp { display: grid; gap: 32px; }
.landning-text { display: grid; gap: 16px; align-content: start; }
.landning-bild { margin: 0; display: grid; gap: 10px; }
.landning-bild img { width: min(100%, 420px); height: auto; border-radius: 4px; box-shadow: var(--skugga); }
.landning-brod { max-width: 62ch; }
.landning-brod h2 { font-size: 26px; margin: 40px 0 12px; }
.landning-brod h2:first-child { margin-top: 0; }
.landning-brod p + p { margin-top: 12px; }
.tips h2, .landning-faq h2, .landning-slut h2 { font-size: 26px; margin-bottom: 20px; }
.tips dl { display: grid; gap: 0; margin: 0; max-width: 640px; }
.tips .rad { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--linje); }
.tips dt { color: var(--text-damp); }
.tips dd { margin: 0; }
.landning-slut { display: grid; gap: 16px; padding-top: 48px; border-top: 1px solid var(--linje); }
.relaterat ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.relaterat a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) {
  .landning-topp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: start; }
  .landning-bild img { width: 100%; }
}

/* ---------- rörelse ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s ease-out, transform .9s var(--kurva); }
.motion [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ---------- dator ---------- */
@media (min-width: 900px) {
  h1 { font-size: 48px; }
  h2 { font-size: 48px; }
  h3 { font-size: 24px; }
  .lede { font-size: 21px; }
  .nav .bara-dator { display: inline-flex; }
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 8fr); grid-template-areas: "text stage" "form stage"; column-gap: 56px; row-gap: 24px; padding-block: 24px 80px; align-content: start; }
  .hero-text { padding-top: 4px; gap: 12px; }
  .hero .lede { font-size: 19px; }
  .stage { align-self: start; position: sticky; top: 24px; }
  .poster { width: auto; height: min(74vh, 740px); max-width: 100%; }
  .sek { padding: 160px 0; }
  .sek-head { margin-bottom: 64px; }
  .steg { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .fakta { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .galleri { padding-inline: 20px; margin: 0 -20px; }
  .galleri figure { flex-basis: 340px; }
  .tillfallen { grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
  .tillfallen li:first-child .t, .tillfallen li:nth-child(4) .t { font-size: 56px; }
  .tillfallen li:first-child, .tillfallen li:nth-child(4) { grid-column: span 2; }
  .tillfallen .t { font-size: 36px; }
  .slut h2 { font-size: 56px; }
  .fot { padding-bottom: 64px; grid-template-columns: 1fr 1fr; align-items: start; }
  .bar { display: none; }
  .tryck-grid { grid-template-columns: 1fr 360px; align-items: start; }
  .prose h2 { font-size: 32px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 54px; }
  .hero { column-gap: 80px; }
}
