/* logistika.se. Samma färger och typsnitt som appen (src/index.css). Typsnitten ligger på egen server, så att inga besökares adresser går till Google. */

@font-face { font-family: 'Archivo'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/archivo-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --text: #111827;
  --text-2: #374151;
  --text-3: #4B5563;
  --line: #E5E7EB;
  --field: #D1D5DB;
  --brand: #1E4FD8;
  --brand-dark: #1740B0;
  --brand-soft: #EEF2FF;
  --amber: #F59E0B;
  --warn-bg: #FEF3C7;
  --warn: #92400E;
  --display: 'Archivo', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, p, ul { margin: 0; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid #93A9F5; outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.lead { color: var(--text-2); font-size: 17px; }
.intro { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.muted { color: var(--text-3); }

/* Toppen */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo span { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .logo span { font-size: 21px; }
  .logo svg { width: 30px; height: 30px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-lg { min-height: 50px; padding: 14px 24px; border-radius: 12px; font-size: 17px; }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: #FAFAFA; color: var(--text); }

/* Hjälte */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 150px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.025em; }
.hero-text > p:not(.eyebrow) { font-size: 19px; color: var(--text-2); max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--text-3); display: flex; gap: 10px; align-items: flex-start; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; margin-top: 7px; }
@media (max-width: 560px) { .hero-text > p:not(.eyebrow) { font-size: 17px; } .ctas .btn { flex: 1 1 100%; } }

.shot { flex: 1 1 440px; min-width: 0; position: relative; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 12px 32px rgba(17,24,39,.06); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.count.zero { background: #DCFCE7; color: #166534; }
.count { background: var(--warn-bg); color: var(--warn); font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.issue { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.issue-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--warn-bg); color: var(--warn); padding: 3px 8px; border-radius: 6px; }
.suggest { background: #F5F7FF; border-radius: 10px; padding: 12px; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.fake-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fake-btn { border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; background: var(--brand); color: #fff; }
.fake-btn.alt { background: var(--card); color: var(--text); border: 1px solid var(--line); font-weight: 400; }
.fake-btn.dashed { text-align: center; background: var(--card); color: var(--brand); border: 1px dashed #A5B4FC; padding: 12px; }
.phone { position: absolute; z-index: 2; right: -20px; bottom: -128px; width: 230px; background: var(--text); color: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 16px 40px rgba(17,24,39,.25); font-size: 14px; }
.phone .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #9CA3AF; }
.phone .row { display: flex; gap: 6px; }
.phone .row span { flex: 1; text-align: center; background: var(--brand); border-radius: 8px; padding: 6px; font-size: 13px; font-weight: 600; }
.phone .row span + span { background: #374151; font-weight: 400; }
@media (max-width: 900px) { .phone { display: none; } }
.clock { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.staffed { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid #BBF7D0; background: #F0FDF4; border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #14532D; }
.ok { display: inline-flex; background: #DCFCE7; color: #166534; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
/* Kortet i hjälten spelas upp steg för steg (site.js). Det som inte syns än tar ändå sin plats, så att inget hoppar. */
.steg { transition: opacity .45s ease, transform .45s ease; }
.steg.off { opacity: 0; transform: translateY(8px); }
.fake-btn { transition: box-shadow .25s ease; }
.fake-btn.press { box-shadow: 0 0 0 3px #C7D2FE; }
.phone .row[hidden] { display: none; }
.phone .ja.on { box-shadow: 0 0 0 2px #fff; }

/* Lastbilarna kör ovanför sidfoten, och sidfotens kant är vägen. Vägen täcker frågornas nederkant, så att de flyter ihop. Ritningarna är appens egna, med hytten åt vänster. */
.road { position: relative; height: 92px; margin-top: -1px; background: var(--card); overflow: hidden; pointer-events: none; }
/* Ritningarna i bil-*-vag.svg saknar marklinjen och slutar vid hjulen, så att hjulen står på sidfotens kant. */
.road img { position: absolute; bottom: 0; left: 0; height: auto; animation: drive 34s linear infinite; }
.road .t1 { width: 140px; }
.road .t2 { width: 112px; animation-delay: -12s; }
.road .t3 { width: 176px; animation-delay: -23s; }
@keyframes drive { from { transform: translateX(100vw); } to { transform: translateX(-200px); } }


/* Kort och rutnät */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card.soft { background: var(--bg); border-color: transparent; }
.card h3 { font-size: 18px; font-weight: 600; }
.card p { color: var(--text-2); font-size: 15px; }
.card .time { font-family: var(--mono); font-size: 13px; color: var(--warn); }
.card .num { font-family: var(--mono); font-size: 14px; color: var(--brand); }

/* Skärmbilder */
.dark { background: #111827; color: #fff; }
.dark .eyebrow { color: #93A9F5; }
.dark .lead { color: #D1D5DB; }
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.08); border-radius: 12px; align-self: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: transparent; color: #D1D5DB; font-weight: 500; font-size: 15px; padding: 9px 16px; min-height: 40px; border-radius: 9px; cursor: pointer; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--text); }
.screen { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.screen figcaption { color: #D1D5DB; font-size: 15px; max-width: 760px; }
.screen figcaption strong { color: #fff; font-weight: 600; }
.browser { background: #1F2937; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.browser .bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.browser .bar i:nth-child(2) { background: #FEBC2E; }
.browser .bar i:nth-child(3) { background: #28C840; }
.browser img, .handset img { display: block; width: 100%; height: auto; }
.handset { padding: 6px; background: #000; border-radius: 30px; box-shadow: inset 0 0 0 2px #374151; }
.handset img { border-radius: 24px; }
.app-intro { margin-top: 32px; }
.h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #4B5563 transparent; }
.phones figure { margin: 0; display: flex; flex-direction: column; gap: 12px; scroll-snap-align: start; }
.phones figcaption { color: #D1D5DB; font-size: 14px; }
.phones figcaption strong { color: #fff; font-weight: 600; }
@media (max-width: 700px) { .phones { grid-auto-columns: 58vw; gap: 16px; } }

/* Jämförelse */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 14px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.compare { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare th, .compare td { position: relative; padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1.3; width: 15%; hyphens: manual; }
.compare thead th:first-child { width: auto; }
.compare tbody th { text-align: left; font-weight: 600; color: var(--text); }
.compare tbody th span { display: block; font-weight: 400; font-size: 14px; color: var(--text-3); margin-top: 2px; }
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; min-width: 220px; }
.compare .us { background: var(--brand-soft); }
.compare thead .us { color: var(--brand); border-top-right-radius: 15px; }
.us-head { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.us-head .dot { margin-top: 0; }
.yes { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: #DCFCE7; color: #15803D; }
.us .yes { background: var(--brand); color: #fff; }
.part { display: inline-block; font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 3px 10px; }
.no { color: #9CA3AF; font-size: 18px; }
@media (max-width: 700px) {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody tr { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { grid-column: 1 / -1; position: static; min-width: 0; border-bottom: 0; padding: 16px 16px 6px; }
  .compare tbody td { border-bottom: 0; padding: 8px 4px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .compare tbody td::before { content: attr(data-k); font-size: 11px; color: var(--text-3); }
  .compare tbody td.us::before { color: var(--brand); font-weight: 600; }
  .compare .us { background: transparent; }
  .compare tbody td.us { background: var(--brand-soft); border-radius: 10px; margin: 0 8px 10px 0; }
}

/* Flödet under Så fungerar det: fyra steg som byts av sig själva medan avsnittet syns (site.js) */
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.flow-steps { display: flex; flex-direction: column; gap: 8px; }
.flow-step { position: relative; display: flex; gap: 14px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; cursor: pointer; color: var(--text); overflow: hidden; }
.flow-step:hover { background: var(--card); }
.flow-step[aria-pressed="true"] { background: var(--card); border-color: var(--line); box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 8px 24px rgba(17,24,39,.05); }
.flow-step .num { font-family: var(--mono); font-size: 14px; color: var(--brand); padding-top: 2px; }
.flow-step strong { display: block; font-size: 17px; font-weight: 600; }
.flow-step span span { display: block; color: var(--text-3); font-size: 15px; margin-top: 2px; }
.flow-step:not([aria-pressed="true"]) span span { display: none; }
.flow-step::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand); }
.flow.playing .flow-step[aria-pressed="true"]::after { animation: fill var(--flow-ms, 5200ms) linear forwards; }
@keyframes fill { to { width: 100%; } }
.flow-play { align-self: flex-start; margin-left: 16px; background: none; border: 0; color: var(--brand); font-weight: 500; font-size: 14px; cursor: pointer; padding: 6px 0; min-height: 32px; }
.flow-stage { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); min-height: 420px; box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 12px 32px rgba(17,24,39,.06); }
.flow-pane { display: flex; flex-direction: column; gap: 16px; animation: upin .45s ease both; }
.flow-pane > * { animation: upin .5s ease both; }
.flow-pane > *:nth-child(2) { animation-delay: .15s; }
.flow-pane > *:nth-child(3) { animation-delay: .3s; }
@keyframes upin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pane-note { font-size: 14px; color: var(--text-3); }
.files { display: grid; gap: 8px; }
.file { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.file div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; column-gap: 10px; align-items: baseline; font-size: 14px; }
.file div span { color: var(--text-3); font-size: 13px; }
.ext { font-family: var(--mono); font-size: 11px; background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 8px 6px; }
.file .tick { color: #15803D; font-weight: 600; }
.mini-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.mini-table > div { display: grid; grid-template-columns: 1.4fr 1fr .7fr .6fr 1.5fr; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); align-items: center; }
.mini-table > div:first-child { border-top: 0; }
.mini-table .head { background: #F9FAFB; color: var(--text-3); font-size: 13px; }
.mini-table > div:nth-child(n+2) { animation: upin .4s ease both; }
.mini-table > div:nth-child(3) { animation-delay: .1s; } .mini-table > div:nth-child(4) { animation-delay: .2s; } .mini-table > div:nth-child(5) { animation-delay: .3s; }
.mini-table .warn, .mini-table .new { justify-self: start; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 500; }
.mini-table .warn { background: var(--warn-bg); color: var(--warn); }
.mini-table .new { background: var(--brand-soft); color: var(--brand); }
.mini-table .ok { justify-self: start; font-weight: 500; }
.engine { background: var(--text); color: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.engine-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.engine-head > span:last-child { color: #9CA3AF; font-size: 14px; margin-left: auto; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--amber); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rules li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: #E5E7EB; animation: upin .4s ease both; }
.rules li::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; background: #1E3A8A; color: #C7D2FE; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rules li:nth-child(2) { animation-delay: .35s; } .rules li:nth-child(3) { animation-delay: .7s; } .rules li:nth-child(4) { animation-delay: 1.05s; } .rules li:nth-child(5) { animation-delay: 1.4s; }
.engine-foot { color: #9CA3AF; font-size: 14px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
/* Märket Logistika Optimeringsmotor, som i appen (OptimeringsmotorMark i src/planner/planering/Optimeringsmotor.tsx). */
.motor-mark { display: inline-flex; align-items: center; gap: 10px; }
.motor-mark > span { display: flex; flex-direction: column; line-height: 1; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: #fff; }
.motor-mark small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #9CA3AF; margin-bottom: 3px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; }
.m-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); animation: upin .45s ease both; }
.m-card:nth-of-type(2) { animation-delay: .25s; } .m-card:nth-of-type(3) { animation-delay: .5s; }
.m-card strong { color: var(--text); font-size: 16px; font-weight: 600; }
.m-card img { width: 100%; max-width: 128px; height: auto; }
.m-label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.m-who { display: flex; gap: 10px; align-items: center; }
.m-plus { align-self: center; color: var(--text-3); font-size: 20px; }
.pill-req { align-self: flex-start; background: #F3F4F6; color: var(--text-2); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.answer { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.notif { display: flex; gap: 12px; align-items: flex-start; background: #F3F4F6; border-radius: 18px; padding: 14px; font-size: 14px; }
.notif div { display: flex; flex-direction: column; }
.app-icon { width: 36px; height: 36px; border-radius: 9px; flex: none; background: var(--brand) url('/favicon.svg') center / cover; }
.reply-row { display: flex; gap: 8px; }
.reply-row span { flex: 1; text-align: center; border-radius: 10px; padding: 10px; font-weight: 600; background: #F3F4F6; }
.reply-row .ja { background: var(--brand); color: #fff; animation: tap 1.2s ease .6s both; }
@keyframes tap { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 0 4px #C7D2FE; } }
.plan-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid #BBF7D0; background: #F0FDF4; border-radius: 12px; padding: 12px 14px; font-size: 14px; animation: upin .45s ease 1.4s both; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow-stage { min-height: 0; }
  .match { grid-template-columns: 1fr; }
  .m-plus { display: none; }
}
@media (max-width: 560px) {
  .mini-table > div { grid-template-columns: 1.3fr .8fr .8fr; }
  .mini-table > div > :nth-child(2), .mini-table > div > :nth-child(4) { display: none; }
}

/* Två kolumner: text och bild */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.points { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 14px; }
.points li { display: flex; gap: 14px; color: var(--text-2); font-size: 15px; }
.points li > span { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-family: var(--mono); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.points strong { color: var(--text); font-weight: 600; }

/* Meddelanden: utskicket, samma meddelande i förarappen och räknaren för läst */
.msg-visual { position: relative; padding: 0 clamp(60px, 9vw, 120px) 56px 0; }
.msg-visual .browser { box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 20px 48px rgba(17,24,39,.12); }
.msg-phone { position: absolute; right: 0; top: 18%; width: clamp(140px, 17vw, 220px); box-shadow: 0 20px 48px rgba(17,24,39,.28), inset 0 0 0 2px #374151; }
.read-pill { position: absolute; left: clamp(12px, 3vw, 32px); bottom: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 15px; box-shadow: 0 12px 32px rgba(17,24,39,.14); }
.bar-track { width: 110px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 95.4%; background: #0F766E; }
.read-pill strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.read-pill .sms { color: var(--brand); font-size: 14px; }
@media (max-width: 560px) { .msg-visual { padding-right: 0; padding-bottom: 0; } .msg-phone { display: none; } .read-pill { position: static; margin-top: 12px; } }

/* Bilarna: en tur och fyra bilar som prövas mot den (site.js spelar upp det när avsnittet syns) */
.fit { display: flex; flex-direction: column; gap: 16px; }
.fit-tour { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fit-tour strong { font-weight: 600; font-size: 17px; margin-right: 4px; }
.fit-cars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.car { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; transition: border-color .35s, box-shadow .35s, opacity .35s; }
.car img { width: 100%; height: 64px; object-fit: contain; object-position: left bottom; }
.car strong { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.car .why { font-size: 13px; transition: color .35s; }
.car[data-ok="true"] .why { color: #15803D; }
.car[data-ok="false"] .why { color: #B91C1C; }
.car[data-ok="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px #DBE4FF; }
.car[data-ok="false"] { opacity: .7; }
.fit.checking .car { opacity: 1; border-color: var(--line); box-shadow: none; }
.fit.checking .car .why { color: transparent; }
.fit.checking .car.done[data-ok="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px #DBE4FF; }
.fit.checking .car.done[data-ok="false"] { opacity: .7; }
.fit.checking .car.done[data-ok="true"] .why { color: #15803D; }
.fit.checking .car.done[data-ok="false"] .why { color: #B91C1C; }
.fit-result { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 15px; color: var(--text-3); transition: opacity .35s; }
.fit.checking .fit-result { opacity: 0; }
@media (max-width: 700px) { .fit-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .road img { animation: none; }
  .road .t1 { transform: translateX(8vw); } .road .t2 { transform: translateX(46vw); } .road .t3 { transform: translateX(76vw); }
  .steg, .car, .fake-btn, .fit-result { transition: none; }
  .flow-pane, .flow-pane > *, .mini-table > div, .rules li, .m-card, .plan-row, .reply-row .ja, .spinner { animation: none; }
}

/* Pilot och formulär */
.cta { display: flex; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 16px 40px rgba(17,24,39,.06); }
.cta-side { flex: 1 1 380px; min-width: 0; background: var(--brand); color: #fff; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.cta-side .eyebrow { color: #C7D2FE; }
.cta-side > p:not(.eyebrow) { color: #E0E7FF; font-size: 17px; }
.steps { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 0; }
.steps li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: rgba(255,255,255,.25); }
.steps li > span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--brand); font-family: var(--mono); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; font-weight: 600; color: #fff; }
.steps div { color: #E0E7FF; font-size: 15px; padding-top: 4px; }
.cta-note { font-size: 14px !important; color: #C7D2FE !important; border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; margin-top: auto; }

.form { flex: 1.25 1 460px; min-width: 0; background: var(--card); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.form h3 { font-size: 22px; font-weight: 600; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { background: #fff; border: 1px solid var(--field); border-radius: 10px; padding: 11px 12px; font-size: 16px; min-height: 44px; color: var(--text); width: 100%; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid #C7D2FE; outline-offset: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--field); border-radius: 999px; padding: 8px 14px; font-size: 15px; min-height: 44px; cursor: pointer; }
.pill:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.pill input, .consent input { accent-color: var(--brand); margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #FEE2E2; color: #991B1B; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.form-error[hidden] { display: none; }
.done { display: flex; flex-direction: column; gap: 14px; }
.done[hidden] { display: none; }
.tick { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.bring { background: var(--bg); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bring .eyebrow { color: var(--text-3); font-size: 12px; }
.bring div:not(.eyebrow) { display: flex; gap: 10px; font-size: 15px; }
.bring span { font-family: var(--mono); color: var(--brand); }

/* Sidfot */
.foot { background: var(--card); border-top: 1px solid var(--line); }
.foot .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-3); }
.foot .brand { display: flex; align-items: center; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--text-2); }

/* Textsida */
.doc { max-width: 760px; margin: 0 auto; padding: 24px var(--pad) 80px; }
.doc article { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 48px); display: flex; flex-direction: column; gap: 22px; line-height: 1.6; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; line-height: 1.1; }
.doc section { display: flex; flex-direction: column; gap: 6px; }
.doc h2 { font-size: 19px; font-weight: 600; }
.doc p { color: var(--text-2); }

/* Var Logistika står: kedjan och kopplingarna */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 28px; align-items: center; }
.chain .link { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.chain .link strong { color: var(--text); font-size: 16px; font-weight: 600; }
.chain .link + .link::before { content: '→'; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 18px; }
.chain .link.us { background: var(--brand-soft); border: 2px solid var(--brand); }
.chain .link.us .m-label { color: var(--brand); display: flex; align-items: center; gap: 6px; }
.chain .link.us .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.chain .split3 { gap: 12px; justify-content: center; }
.chain .link.opt { background: transparent; border-style: dashed; border-color: var(--field); }
.chain .link.opt::before { content: '⇄'; }
.chain .split3 > div { display: flex; flex-direction: column; }
.chain .split3 > div + div { border-top: 1px solid var(--line); padding-top: 10px; }
.chain .m-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 860px) {
  .chain { grid-template-columns: 1fr; gap: 26px; }
  .chain .link + .link::before { content: '↓'; left: 50%; top: -24px; transform: translateX(-50%); }
  .chain .link.opt::before { content: '⇅'; }
}
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 15px; }
.checks li { position: relative; padding-left: 24px; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 600; }
.checks.no li::before { content: '–'; color: var(--text-3); }
.integr { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.integ { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.integ strong { font-size: 16px; font-weight: 600; }
.integ p { color: var(--text-2); font-size: 14px; }
.st { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.st.now { background: var(--brand-soft); color: var(--brand); }
.st.plan { background: var(--warn-bg); color: var(--warn); }
.st.look { background: var(--bg); color: var(--text-3); border: 1px solid var(--line); }
.tech { display: flex; flex-direction: column; gap: 16px; }
.tech-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-top: 1px solid var(--line); padding-top: 20px; }
.tech-list > div { display: flex; flex-direction: column; gap: 4px; }
.tech-list strong { font-weight: 600; }
.tech-list span { color: var(--text-2); font-size: 15px; }

/* ==========================================================================
   Nytt utseende 13 november 2026: mörk topp med rutnät och ljussken, meny med undersidor,
   kort som lyfter, delar som tonar in och en mörk sidfot. Det som står här
   gäller över reglerna ovanför.
   ========================================================================== */

:root {
  --bg: #F6F7F9;
  --text: #0F172A;
  --text-2: #334155;
  --text-3: #5B6677;
  --line: #E4E7EC;
  --ink: #0A1022;
  --ink-2: #111A33;
  --ink-line: rgba(255,255,255,.1);
  --brand-lit: #7C9BFF;
  --shadow-1: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
  --shadow-2: 0 2px 4px rgba(15,23,42,.06), 0 24px 56px rgba(15,23,42,.14);
  --ease: cubic-bezier(.2,.7,.2,1);
}
html { scroll-padding-top: 88px; }
body { overflow-x: hidden; }
.section { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); gap: 44px; }
.section.narrow { max-width: 880px; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; text-wrap: balance; }
.lead { font-size: 18px; text-wrap: pretty; }
.intro { max-width: 720px; gap: 12px; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.1em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--text); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.more svg { transition: transform .2s var(--ease); }
.more:hover svg { transform: translateX(4px); }

/* Knappar */
.btn { border-radius: 12px; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px rgba(30,79,216,.28); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px rgba(30,79,216,.36); }
.btn:active { transform: none; }
.btn-ghost, .btn-glass, .btn-white { box-shadow: none; }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #EEF2FF; color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.25); }

/* Huvudet */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(10,16,34,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
/* Helt täckande när sidan rullats. Halvgenomskinlig med oskärpa blinkade vitt när ljusa delar rullade förbi under. */
.hdr.scrolled { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--ink-line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.hdr .logo, .ft .logo { color: #fff; }
.hdr .logo span { font-size: 22px; }
.hdr-nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.hdr-nav > a:not(.btn), .drop-btn { color: #C9D2E6; text-decoration: none; padding: 9px 12px; border-radius: 9px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; transition: color .15s, background .15s; }
.hdr-nav > a:not(.btn):hover, .drop-btn:hover, .hdr-nav > a[aria-current] { color: #fff; background: rgba(255,255,255,.08); }
.hdr-cta { margin-left: 10px; min-height: 40px; padding: 8px 16px; }
.drop { position: relative; }
.drop-btn svg { transition: transform .2s; }
.drop:hover .drop-btn svg, .drop.open .drop-btn svg { transform: rotate(180deg); }
.drop-menu { position: absolute; left: -12px; top: calc(100% + 10px); width: min(620px, 92vw); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.drop-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.drop:hover .drop-menu, .drop:focus-within .drop-menu, .drop.open .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text); }
.drop-menu a:hover, .drop-menu a[aria-current] { background: var(--brand-soft); }
.drop-menu strong { display: block; font-weight: 600; font-size: 15px; }
.drop-menu small { display: block; color: var(--text-3); font-size: 13px; line-height: 1.35; }
.ico { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.hdr-toggle { display: none; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.08); border-radius: 11px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hdr-toggle i { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.hdr-toggle[aria-expanded="true"] i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.hdr-toggle[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
.hdr-toggle[aria-expanded="true"] i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1040px) {
  .hdr-toggle { display: flex; }
  .hdr-nav { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 68px); background: var(--ink); flex-direction: column; align-items: stretch; gap: 2px; padding: 16px var(--pad) 32px; overflow-y: auto; display: none; }
  .hdr-nav.open { display: flex; }
  .hdr-nav > a:not(.btn), .drop-btn { font-size: 18px; padding: 14px 12px; justify-content: space-between; width: 100%; }
  .drop-menu { position: static; width: auto; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; display: none; background: rgba(255,255,255,.04); border-color: var(--ink-line); box-shadow: none; }
  .drop.open .drop-menu { display: grid; }
  .drop:hover .drop-btn svg { transform: none; }
  .drop.open .drop-btn svg { transform: rotate(180deg); }
  .drop-menu a { color: #fff; }
  .drop-menu a:hover, .drop-menu a[aria-current] { background: rgba(255,255,255,.08); }
  .drop-menu small { color: #9AA7C2; }
  .drop-menu .ico { background: rgba(124,155,255,.16); color: var(--brand-lit); }
  .hdr-cta { margin: 14px 0 0; min-height: 50px; font-size: 17px; }
}

/* Den mörka toppen på startsidan */
.hero-dark { position: relative; background: var(--ink); color: #fff; overflow: hidden; margin-top: -69px; padding-top: 69px; }
.hero-dark::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%); -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%); }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 90%; background: radial-gradient(40% 55% at 22% 35%, rgba(30,79,216,.55), transparent 70%), radial-gradient(34% 46% at 82% 18%, rgba(124,155,255,.28), transparent 70%), radial-gradient(30% 40% at 70% 90%, rgba(245,158,11,.12), transparent 70%); filter: blur(10px); animation: glow 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { to { transform: translate3d(3%, 4%, 0) scale(1.06); } }
.hero-dark .hero { position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: 150px; }
.hero-dark .eyebrow { color: #B9C7F5; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--ink-line); letter-spacing: 0.06em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245,158,11,.6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }
.hero-dark h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.grad { background: linear-gradient(100deg, #fff 0%, #9DB4FF 55%, #F7B955 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-dark .hero-text > p:not(.eyebrow) { color: #C9D2E6; font-size: 19px; }
.hero-dark .note { color: #9AA7C2; }
.hero-dark .panel { box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); color: var(--text); }
.hero-dark .shot { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-dark .phone { background: #1B2540; border: 1px solid rgba(255,255,255,.12); }
.facts { position: relative; list-style: none; margin: 0; padding: 22px 0 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; border-top: 1px solid var(--ink-line); }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: #9AA7C2; font-size: 14px; line-height: 1.4; }
.facts svg { color: var(--brand-lit); flex: none; margin-top: 2px; }
.facts strong { display: block; color: #fff; font-weight: 600; font-size: 15px; }

/* Toppen på undersidorna */
.phero { position: relative; background: var(--ink); color: #fff; overflow: hidden; margin-top: -69px; padding-top: 69px; }
.phero-bg { position: absolute; inset: 0; background: radial-gradient(45% 70% at 15% 10%, rgba(30,79,216,.5), transparent 70%), radial-gradient(35% 60% at 90% 0%, rgba(124,155,255,.22), transparent 70%); }
.phero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent); }
.phero-in { position: relative; display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }
.phero.has-img .phero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.phero-text { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.phero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.phero .eyebrow { color: #B9C7F5; }
.phero .lead { color: #C9D2E6; font-size: 19px; }
.phero .ctas { margin-top: 6px; }
.phero-img .browser { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; transition: transform .6s var(--ease); }
.phero-img:hover .browser { transform: none; }
.phero-phones { display: flex; justify-content: center; gap: 18px; }
.phero-phones .handset { width: min(30%, 210px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.phero-phones .handset:nth-child(2) { margin-top: 36px; }
.phero-phones .handset:nth-child(3) { margin-top: 12px; }
.phero-msg .msg-visual { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #9AA7C2; }
.crumbs a { color: #9AA7C2; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs a::after { content: '/'; margin-left: 8px; opacity: .5; }
.crumbs span { color: #C9D2E6; }
@media (max-width: 900px) { .phero.has-img .phero-in { grid-template-columns: 1fr; } .phero-img .browser { transform: none; } }

/* Kort */
.card { border-radius: 18px; padding: 26px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card .ico { margin-bottom: 6px; }
.card.lift, .linkcard, .bento-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card.lift:hover, .linkcard:hover, .bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #C7D2FE; }
.card svg.ico-raw { color: var(--brand); }
.pains { --min: 280px; }
.card.pain { position: relative; overflow: hidden; padding-top: 30px; }
.card.pain::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--amber), #FCD34D); }
.card.pain .time { font-size: 28px; font-family: var(--display); font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 20px; }

/* Rutnätet med produktens delar */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bento-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--text-2); font-size: 15px; overflow: hidden; }
.bento-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(30,79,216,.12), transparent 70%); opacity: 0; transition: opacity .3s; }
.bento-card:hover::after { opacity: 1; }
.bento-card strong { color: var(--text); font-size: 19px; font-weight: 600; margin-top: 8px; }
.bento-card em, .linkcard em { font-style: normal; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.bento-card em svg, .linkcard em svg { transition: transform .2s var(--ease); }
.bento-card:hover em svg, .linkcard:hover em svg { transform: translateX(4px); }
.bento-card.wide { grid-column: span 2; background: linear-gradient(135deg, var(--ink) 0%, #16224A 100%); color: #C9D2E6; border-color: transparent; }
.bento-card.wide strong { color: #fff; font-size: 24px; }
.bento-card.wide em { color: var(--brand-lit); }
.bento-card.wide .ico { background: rgba(124,155,255,.16); color: var(--brand-lit); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento-card.wide { grid-column: auto; } }

/* Länkkort */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.links.two-col { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.linkcard { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--text-2); font-size: 15px; }
.linkcard strong { color: var(--text); font-size: 18px; font-weight: 600; }

/* Rader med text och bild */
.frow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.frow + .frow { margin-top: clamp(48px, 7vw, 96px); }
.frow.flip .frow-text { order: 2; }
.frow-text { display: flex; flex-direction: column; gap: 16px; }
.frow-img .browser { box-shadow: var(--shadow-2); }
@media (max-width: 900px) { .frow { grid-template-columns: 1fr; } .frow.flip .frow-text { order: 0; } }

/* Tidslinjen */
.tidslinje { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 820px; }
.tidslinje li { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 22px; padding-bottom: 30px; }
.tidslinje li::before { content: ''; position: absolute; left: 91px; top: 10px; bottom: -10px; width: 2px; background: var(--line); }
.tidslinje li:last-child::before { display: none; }
.tidslinje li::after { content: ''; position: absolute; left: 85px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--brand); }
.tidslinje .tid { font-family: var(--mono); font-size: 14px; color: var(--brand); padding-top: 3px; }
.tidslinje div { padding-left: 14px; }
.tidslinje strong { font-size: 19px; font-weight: 600; }
.tidslinje p { color: var(--text-2); margin-top: 4px; }
@media (max-width: 560px) { .tidslinje li { grid-template-columns: 62px 1fr; gap: 16px; } .tidslinje li::before { left: 61px; } .tidslinje li::after { left: 55px; } }

/* Frågor */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #C7D2FE; box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding: 0 20px 20px; color: var(--text-2); max-width: 720px; }

/* Bandet med demon */
.cta-band { margin: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); padding: clamp(28px, 5vw, 56px); border-radius: 28px; color: #fff; background: radial-gradient(60% 120% at 0% 0%, rgba(124,155,255,.45), transparent 60%), linear-gradient(135deg, var(--brand) 0%, #122A7A 100%); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; box-shadow: 0 30px 70px rgba(30,79,216,.3); }
.cta-band > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.cta-band p { color: #DCE4FF; font-size: 17px; max-width: 620px; }

/* Den mörka delen med bilder */
.dark { background: var(--ink); }
.showcase { position: relative; }
.showcase::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 40% at 80% 0%, rgba(30,79,216,.35), transparent 70%); pointer-events: none; }
.showcase > .wrap { position: relative; }
.dark a { color: var(--brand-lit); }
.browser { border-radius: 16px; }

/* Terminalens tavla */
.board { background: #fff; color: var(--text); border-radius: 20px; padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 6px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px 8px; }
.board-head strong { font-family: var(--display); font-weight: 800; font-size: 22px; }
.board-head span { color: var(--text-3); font-size: 14px; }
.board-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--bg); border-radius: 14px; }
.board-row .port { font-family: var(--display); font-weight: 800; font-size: 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 0; }
.board-row strong { display: block; font-weight: 600; }
.board-row div span { color: var(--text-3); font-size: 14px; }
.board .st { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.board .st.ok { background: #DCFCE7; color: #166534; }
.board .st.warn { background: var(--warn-bg); color: var(--warn); }
.board .st.bad { background: #FEE2E2; color: #991B1B; }
@media (max-width: 480px) { .board-row { grid-template-columns: 44px 1fr; } .board .st { grid-column: 2; justify-self: start; } }

/* Artiklar */
.prose { max-width: 760px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(24px, 4vw, 48px); font-size: 18px; line-height: 1.7; color: var(--text-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.15; color: var(--text); margin-top: 48px; }
.prose ul, .prose ol { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .notis { background: var(--warn-bg); color: var(--warn); border-radius: 14px; padding: 16px 18px; font-size: 16px; }
.doc { padding-top: clamp(32px, 5vw, 56px); }

/* Sidfoten */
.road { background: var(--bg); }
.band + .road, .band ~ .road { background: var(--bg); }
.ft { background: var(--ink); color: #9AA7C2; font-size: 15px; }
.ft-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; padding-top: 64px; padding-bottom: 48px; }
.ft-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 320px; }
.ft nav { display: flex; flex-direction: column; gap: 10px; }
.ft nav strong { color: #fff; font-weight: 600; margin-bottom: 4px; }
.ft a:not(.btn):not(.logo) { color: #9AA7C2; text-decoration: none; }
.ft a:not(.btn):not(.logo):hover { color: #fff; }
.ft-low { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--ink-line); font-size: 14px; }
@media (max-width: 980px) { .ft-in { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ft-in { grid-template-columns: 1fr; } }

/* Delar som tonar in när de syns. Utan JavaScript och med Reducera rörelse syns allt direkt. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .hero-dark .shot, .pulse { animation: none; }
  html { scroll-behavior: auto; }
}
.frow.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .frow.flip { grid-template-columns: 1fr; } .hero-dark .shot { animation: none; } }
@media (max-width: 900px) { .hero-dark .hero { padding-bottom: 48px; } }

/* Miljöbilderna (genererade illustrationer) */
.foto { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 3 / 2; }
.foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.foto:hover img { transform: scale(1.04); }
.phero-img .foto { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.bildband { position: relative; margin-top: clamp(40px, 6vw, 80px); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-2); }
.bildband .foto { border-radius: 0; box-shadow: none; aspect-ratio: 21 / 9; }
.bildband::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,34,.88) 0%, rgba(10,16,34,.55) 45%, transparent 75%); pointer-events: none; }
.bildband-text { position: absolute; z-index: 1; left: clamp(20px, 5vw, 56px); bottom: clamp(20px, 5vw, 56px); max-width: 520px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.bildband-text .eyebrow { color: #F7B955; }
.bildband-text p:last-child { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
@media (max-width: 700px) { .bildband .foto { aspect-ratio: 4 / 5; } .bildband::after { background: linear-gradient(0deg, rgba(10,16,34,.92) 0%, rgba(10,16,34,.4) 60%, transparent 100%); } }
.linkcard.has-foto { padding: 0; overflow: hidden; }
.linkcard.has-foto img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.linkcard.has-foto:hover img { transform: scale(1.05); }
.linkcard.has-foto strong { padding: 18px 24px 0; }
.linkcard.has-foto span { padding: 0 24px; }
.linkcard.has-foto em { padding: 10px 24px 22px; }
/* Rutan under Så fungerar det har fast höjd på datorn, så att sidan inte hoppar när stegen byts av sig själva. */
@media (min-width: 861px) { .flow-stage { min-height: 500px; } }
