/* bhub.se – Business Hub. Hubbens egna färger (src/client/theme.css) och formen i doc 117:
   ingen versaltext ovanför rubriker, stora feta rubriker, piller på en rad, mint = klart, persika = att göra. */

@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-normal-400-800.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --teal: #087f73;
  --teal-dark: #06665c;
  --teal-soft: #dff1ee;
  --forest: #163c40;
  --forest-deep: #0e2a2d;
  --coral: #ff865f;
  --coral-soft: #ffece5;
  --coral-ink: #994122;
  --mint: #d9f2e4;
  --mint-ink: #1b6b47;
  --peach: #ffe4d4;
  --peach-ink: #9a4a1f;
  --grey-soft: #eceeea;
  --paper: #f4f5f1;
  --white: #fff;
  --ink: #102426;
  --ink-2: #344a4c;
  --muted: #5d6f70;
  --line: rgba(16, 36, 38, 0.12);
  --logo-ink: #fff;

  --font: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 42, 45, 0.06), 0 14px 36px -14px rgba(14, 42, 45, 0.25);
  --shadow-lg: 0 2px 6px rgba(14, 42, 45, 0.06), 0 40px 80px -30px rgba(14, 42, 45, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 40em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--sm { width: 16px; height: 16px; }
.i--xl { width: 44px; height: 44px; }

/* ---------- knappar, piller ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s; cursor: pointer; font-family: inherit; }
.btn .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -10px var(--teal); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.6); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { background: var(--mint); }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; transition: background .3s, color .3s; }
.pill--mint { background: var(--mint); color: var(--mint-ink); }
.pill--peach { background: var(--peach); color: var(--peach-ink); }
.pill--teal { background: var(--teal-soft); color: var(--teal-dark); }
.pill--grey { background: var(--grey-soft); color: var(--muted); }

.pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin: 28px 0 0; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills__item { flex: none; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.pills__item:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.tag--teal { background: var(--teal-soft); color: var(--teal-dark); }
.tag--coral { background: var(--coral-soft); color: var(--coral-ink); }
.tag--mint { background: var(--mint); color: var(--mint-ink); }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); font-weight: 700; font-size: .95rem; }

/* ---------- logga ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }
.logo__mark { width: 34px; height: 34px; }
.logo__word { display: inline-flex; align-items: baseline; }
.logo__dot { width: .34em; height: .34em; border-radius: 50%; background: var(--coral); margin: 0 .22em; align-self: center; }
.logo--light { color: #fff; --logo-ink: var(--forest); }

/* ---------- sidhuvud ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,245,241,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px; border-radius: 999px; font: 600 .98rem var(--font); color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav__link:hover, .nav__link.is-active, .nav__mega[aria-expanded="true"] { background: #fff; color: var(--ink); }
.nav__mega .i { transition: transform .2s; }
.nav__mega[aria-expanded="true"] .i { transform: rotate(180deg); }
.burger { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

.mega { position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; box-shadow: var(--shadow-lg); border-top: 1px solid var(--line); animation: drop .25s var(--ease); }
.mega__inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 32px; }
.mega__title { display: block; font-weight: 800; text-decoration: none; margin-bottom: 10px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.mega li a:hover { background: var(--paper); color: var(--teal); }
.mega li .i { width: 18px; height: 18px; color: var(--teal); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.drawer { position: fixed; inset: var(--header-h) 0 0; background: var(--paper); overflow-y: auto; padding: 16px 0 40px; }
.drawer__group { border-bottom: 1px solid var(--line); padding: 12px 0; }
.drawer__title { font-weight: 800; margin: 0 0 4px; }
.drawer a:not(.btn) { display: flex; align-items: center; gap: 10px; padding: 9px 0; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.drawer .i { color: var(--teal); }
.drawer .btn { margin-top: 20px; }

/* ---------- startsidans hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -360px; background: radial-gradient(circle, rgba(8,127,115,.14), transparent 62%); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); letter-spacing: -0.04em; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.hero__chips .i { width: 18px; height: 18px; color: var(--teal); }

.hub { position: relative; width: min(100%, 480px); aspect-ratio: 1; margin: 0 auto; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__lines line { stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 7; opacity: .35; animation: flow 1.6s linear infinite; animation-delay: calc(var(--i) * -0.2s); }
@keyframes flow { to { stroke-dashoffset: -22; } }
.hub__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 28px; padding: 22px 26px; box-shadow: var(--shadow-lg); z-index: 2; animation: breathe 4s ease-in-out infinite; }
.hub__core .logo { pointer-events: none; font-size: 1.25rem; }
@keyframes breathe { 50% { box-shadow: 0 0 0 14px rgba(8,127,115,.08), var(--shadow-lg); } }
.hub__node { position: absolute; left: 50%; top: 50%; --a: calc(var(--i) * 45deg - 90deg); transform: translate(-50%, -50%) rotate(var(--a)) translate(min(40vw, 192px)) rotate(calc(-1 * var(--a))); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; animation: pop .6s var(--ease) backwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
.hub__node .i { width: 52px; height: 52px; padding: 13px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); color: var(--teal); transition: transform .3s; }
.hub__node:nth-of-type(3n+2) .i { color: var(--coral-ink); background: var(--coral-soft); }
.hub__node:nth-of-type(3n) .i { color: var(--mint-ink); background: var(--mint); }
.hub__node b { font-size: .8rem; font-weight: 700; white-space: nowrap; background: rgba(244,245,241,.9); padding: 2px 8px; border-radius: 999px; }
@keyframes pop { from { opacity: 0; scale: .6; } }

.proof { padding: 8px 0 40px; }
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof p { margin: 0; background: #fff; border-radius: var(--radius-sm); padding: 18px 20px; color: var(--ink-2); border: 1px solid var(--line); }
.proof strong { display: block; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- funktionsband på startsidan ---------- */
.feature-band { padding: clamp(56px, 8vw, 110px) 0; }
.feature-band__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-band--flip .feature-band__text { order: 2; }
.feature-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.feature-band p { color: var(--ink-2); }
.feature-band--dark { background: var(--forest); color: #fff; }
.feature-band--dark p, .feature-band--dark .ticks li { color: rgba(255,255,255,.82); }
.feature-band--dark .tag { background: rgba(255,255,255,.12); color: #fff; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.ticks li { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink-2); }
.ticks .i { color: var(--teal); stroke-width: 2.6; }
.feature-band--dark .ticks .i { color: var(--coral); }
.feature-band__text { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.feature-band__text.is-in { opacity: 1; transform: none; }

/* ---------- sektioner och kort ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tint { background: #fff; }
.section__head { max-width: 760px; margin-bottom: 8px; }
.section__head p { color: var(--ink-2); font-size: 1.1rem; }

.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.mcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: #fff; text-decoration: none; border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, opacity .6s var(--ease); opacity: 0; transform: translateY(14px); }
.mcard.is-in { opacity: 1; transform: none; }
.section--tint .mcard { background: var(--paper); }
.mcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--teal); }
.mcard--coral::before { background: var(--coral); }
.mcard--mint::before { background: #6fcf9f; }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.mcard__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 6px; }
.mcard--coral .mcard__icon { background: var(--coral-soft); color: var(--coral-ink); }
.mcard--mint .mcard__icon { background: var(--mint); color: var(--mint-ink); }
.mcard__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.mcard__text { color: var(--muted); font-size: .96rem; line-height: 1.5; flex: 1; }
.mcard__more { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 700; font-size: .92rem; margin-top: 6px; }
.mcard:hover .mcard__more .i { transform: translateX(3px); }
.mcard__more .i { transition: transform .2s; }

.page-hero { padding: clamp(44px, 7vw, 90px) 0 clamp(20px, 3vw, 32px); }
.page-hero--center { text-align: center; padding-bottom: 120px; }
.page-hero--center .lead { margin: 0 auto; }
.page-hero--center .hero__buttons { justify-content: center; }
.dept { padding-top: 40px; padding-bottom: 40px; }
.dept__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; }
.dept__head h2 { margin: 0; }
.dept__head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- modulsida ---------- */
.mhero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.mhero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -240px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(8,127,115,.13), transparent 62%); }
.mhero--coral::before { background: radial-gradient(circle, rgba(255,134,95,.2), transparent 62%); }
.mhero--mint::before { background: radial-gradient(circle, rgba(111,207,159,.24), transparent 62%); }
.mhero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.mhero h1 { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mhero__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--forest); color: #fff; flex: none; }
.mhero__icon .i { width: 32px; height: 32px; }
.crumbs { display: flex; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--teal); }

.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.intro { font-size: 1.2rem; color: var(--ink-2); line-height: 1.65; }
.split__side { display: grid; gap: 16px; }

.status { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: opacity .6s, transform .6s var(--ease); opacity: 0; transform: translateY(10px); }
.status.is-in { opacity: 1; transform: none; }
.status__title { margin: 0; padding: 16px 20px; font-weight: 800; background: var(--mint); color: var(--mint-ink); }
.status--peach .status__title { background: var(--peach); color: var(--peach-ink); }
.status dl { margin: 0; padding: 6px 20px 12px; }
.status dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.status dl div:last-child { border-bottom: 0; }
.status dt { color: var(--muted); }
.status dd { margin: 0; font-weight: 700; text-align: right; }

.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.feature { display: flex; gap: 14px; padding: 22px; background: var(--paper); border-radius: var(--radius-sm); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); }
.feature.is-in { opacity: 1; transform: none; }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.feature__check { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; flex: none; }
.feature__check .i { width: 16px; height: 16px; stroke-width: 2.8; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); }
.step.is-in { opacity: 1; transform: none; }
.step:nth-child(2) { transition-delay: .1s; } .step:nth-child(3) { transition-delay: .2s; }
.step__no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--forest); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- paket ---------- */
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pkg { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); }
.pkg.is-in { opacity: 1; transform: none; }
.pkg h2 { font-size: 1.7rem; }
.pkg > p { color: var(--muted); }
.pkg ul { list-style: none; padding: 0; margin: 4px 0 24px; flex: 1; }
.pkg li { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.pkg li .i { color: var(--teal); stroke-width: 2.6; }
.pkg li a { text-decoration: none; font-weight: 600; }
.pkg li a:hover { color: var(--teal); }
.pkg .btn { align-self: flex-start; }
.pkg--featured { background: var(--forest); color: #fff; border-color: var(--forest); }
.pkg--featured > p { color: rgba(255,255,255,.75); }
.pkg--featured li .i { color: var(--coral); }
.pkg--featured li a:hover { color: var(--coral); }
.addons { margin-top: 64px; }

/* ---------- kontakt ---------- */
.form { display: grid; gap: 16px; background: #fff; padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(16,36,38,.22); background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); background: #fff; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.form__checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; display: inline-flex !important; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; cursor: pointer; background: var(--paper); }
.check input:checked + span { background: var(--forest); color: #fff; border-color: var(--forest); }
.check input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form__note { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- CTA och sidfot ---------- */
.cta { padding: 0 0 clamp(56px, 7vw, 96px); }
.section--tint + .cta, .feature-band + .cta { padding-top: clamp(56px, 7vw, 96px); }
.cta__inner { background: var(--forest); color: #fff; border-radius: 32px; padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden; max-width: calc(var(--wrap) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); margin: 0 auto; }
.cta__inner::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%; background: var(--coral); opacity: .9; }
.cta h2, .cta p, .cta__buttons { position: relative; z-index: 1; max-width: 620px; }
.cta p { color: rgba(255,255,255,.8); font-size: 1.15rem; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.site-footer { background: var(--forest-deep); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(6, 1fr); gap: 28px; }
.site-footer__brand p { margin-top: 16px; max-width: 280px; }
.site-footer__contact { display: grid; gap: 6px; }
.site-footer__contact a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: #fff; }
.site-footer__contact .i { width: 18px; height: 18px; }
.site-footer__title { color: #fff; font-weight: 800; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--coral); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; font-size: .88rem; }
.site-footer__bottom p { margin: 0; }

/* =========================================================
   Demos – fönster, telefon och animationerna
   ========================================================= */
.demo { position: relative; width: 100%; }
.app { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; min-height: 380px; position: relative; color: var(--ink); text-align: left; font-size: 15px; }
.app__side { width: 128px; background: var(--forest); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; flex: none; }
.app__brand { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.14); margin: 0 6px 14px; position: relative; }
.app__brand::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); right: 5px; top: 5px; }
.app__nav { color: rgba(255,255,255,.72); padding: 7px 10px; border-radius: 9px; font-size: .84rem; font-weight: 600; display: flex; justify-content: space-between; }
.app__nav.is-active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 var(--coral); }
.app__nav b { background: var(--coral); color: var(--forest-deep); border-radius: 999px; padding: 0 7px; font-size: .74rem; }
.app__main { flex: 1; min-width: 0; padding: 18px; display: flex; flex-direction: column; }
.app__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.app__head strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.app__head .i { color: var(--teal); }

/* Kundtjänst */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticket { display: grid; grid-template-columns: auto 1fr auto auto 26px; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--paper); border: 1px solid transparent; opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .4s var(--ease), border-color .3s, background .3s; }
.ticket.is-in { opacity: 1; transform: none; }
.ticket.is-active { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px var(--teal-soft); }
.ticket.is-done { opacity: .62; }
.ticket__no { font-size: .76rem; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.ticket__body { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ticket__body b { font-size: .9rem; }
.ticket__body span { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket__tag { font-size: .72rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.ticket__who { width: 26px; height: 26px; border-radius: 50%; background: transparent; font-size: .68rem; font-weight: 800; display: grid; place-items: center; color: #fff; transform: scale(0); transition: transform .3s var(--ease); }
.ticket__who.is-on { background: var(--coral); transform: scale(1); }
.app__reply { position: absolute; right: 14px; bottom: 14px; width: min(330px, calc(100% - 28px)); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; border: 1px solid var(--line); transform: translateY(30px); opacity: 0; transition: transform .45s var(--ease), opacity .35s; pointer-events: none; }
.app__reply.is-open { transform: none; opacity: 1; }
.reply__head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; margin-bottom: 8px; }
.avatar { width: 26px; height: 26px; border-radius: 8px; background: var(--forest); color: #fff; font-size: .66rem; display: grid; place-items: center; font-weight: 800; }
.reply__text { font-size: .86rem; color: var(--ink-2); min-height: 4.2em; margin: 0 0 10px; line-height: 1.45; }
.reply__text::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--teal); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.reply__send { display: inline-block; background: var(--teal); color: #fff; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: .84rem; transition: transform .15s, background .2s; }
.reply__send.is-pressed { transform: scale(.92); background: var(--teal-dark); }

/* Telefon */
.phone { width: 250px; aspect-ratio: 9 / 18.5; background: #0c1718; border-radius: 40px; padding: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3a3b; position: relative; flex: none; }
.phone::before { content: ""; position: absolute; left: 50%; top: 18px; width: 76px; height: 20px; border-radius: 999px; background: #0c1718; transform: translateX(-50%); z-index: 3; }
.phone__screen { width: 100%; height: 100%; border-radius: 31px; background: #fff; overflow: hidden; position: relative; display: flex; flex-direction: column; padding: 48px 14px 14px; }

/* SnapCount */
.demo--snap { display: flex; align-items: center; justify-content: center; gap: 0; min-height: 520px; }
.snap__belt { position: relative; flex: 1; max-width: 300px; height: 150px; align-self: center; margin-right: -20px; }
.snap__belt::before { content: ""; position: absolute; left: 0; right: 30px; bottom: 26px; height: 12px; border-radius: 999px; background: repeating-linear-gradient(90deg, #c9d1ce 0 14px, #b6c0bc 14px 28px); animation: belt .6s linear infinite; }
@keyframes belt { to { background-position: 28px 0; } }
.snap__track { position: absolute; inset: 0 30px 38px 0; overflow: hidden; }
.snap__box { position: absolute; bottom: 0; left: -80px; width: 64px; height: 56px; border-radius: 8px; background: var(--c); box-shadow: inset 0 -8px 0 rgba(0,0,0,.12); transition: left 1.5s linear; }
.snap__box.is-moving { left: calc(100% + 10px); }
.snap__label { position: absolute; left: 10px; right: 10px; top: 10px; height: 8px; border-radius: 3px; background: rgba(255,255,255,.65); }
.snap__code { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 14px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px); border-radius: 2px; opacity: .9; }
.snap__scanner { position: absolute; right: 22px; top: 0; width: 58px; height: 74px; border-radius: 14px 14px 10px 30px; background: var(--forest); color: #fff; display: grid; place-items: center; transform: rotate(-12deg); box-shadow: var(--shadow); z-index: 2; }
.snap__scanner .i { width: 28px; height: 28px; }
.snap__beam { position: absolute; left: 6px; top: 64px; width: 4px; height: 0; background: linear-gradient(#ff3b3b, rgba(255,59,59,0)); transform-origin: top; border-radius: 2px; transform: rotate(12deg); opacity: 0; }
.snap__beam.is-on { animation: beam .5s ease-out; }
@keyframes beam { 0% { height: 0; opacity: 1; } 40% { height: 60px; opacity: 1; } 100% { height: 60px; opacity: 0; } }

.snap__screen { background: #fff; }
.snap__screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 transparent; pointer-events: none; }
.snap__screen.is-hit::after { animation: flash-hit .7s ease-out; }
.snap__screen.is-miss::after { animation: flash-miss .7s ease-out; }
@keyframes flash-hit { 0% { box-shadow: inset 0 0 0 10px #22c37a; background: rgba(34,195,122,.18); } 100% { box-shadow: inset 0 0 0 0 transparent; background: transparent; } }
@keyframes flash-miss { 0% { box-shadow: inset 0 0 0 10px #ff8a1f; background: rgba(255,138,31,.2); } 100% { box-shadow: inset 0 0 0 0 transparent; background: transparent; } }
.snap__top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .95rem; }
.snap__mute { font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.snap__count { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 10px; }
.snap__count strong { font-size: 2.6rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.snap__count span { color: var(--muted); font-size: .85rem; }
.snap__count.is-bump strong { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); color: #1a9c60; } }
.snap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; align-content: start; overflow: hidden; }
.snap__list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 8px 9px; border-radius: 10px; background: var(--paper); animation: slidein .35s var(--ease); }
.snap__list li b { display: block; font-size: .78rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snap__list li small { font-size: .68rem; color: var(--muted); }
.snap__list li > span:nth-child(2) { min-width: 0; }
.snap__dot { width: 10px; height: 10px; border-radius: 50%; background: #22c37a; }
.snap__list .is-miss { background: #fff1e4; }
.snap__list .is-miss .snap__dot { background: #ff8a1f; }
.snap__qty { font-weight: 800; font-size: .8rem; color: #1a9c60; text-align: right; line-height: 1.15; }
.snap__qty em { display: block; font-style: normal; font-weight: 600; font-size: .66rem; color: var(--muted); }
.is-miss .snap__qty { color: #c4600a; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }
.snap__done { margin-top: 10px; text-align: center; background: var(--teal); color: #fff; font-weight: 700; border-radius: 999px; padding: 9px; font-size: .88rem; }

/* Kassa */
.demo--register .pos { position: relative; display: flex; align-items: flex-start; gap: 18px; min-height: 420px; }
.pos__cart { flex: 1; min-width: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; display: flex; flex-direction: column; min-height: 360px; }
.pos__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pos__rows { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; align-content: start; gap: 6px; }
.pos__rows li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: .9rem; animation: slidein .35s var(--ease); }
.pos__rows li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.pos__total strong { font-size: 1.6rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pos__pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pos__pay span { text-align: center; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: .9rem; transition: background .25s, color .25s, transform .2s; }
.pos__pay span.is-active { background: var(--teal); color: #fff; border-color: var(--teal); transform: scale(.96); }
.receipt { width: 250px; flex: none; background: #fffdf8; border-radius: 4px; padding: 16px 16px 22px; font: 500 .74rem/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace; color: #2b2b2b; box-shadow: var(--shadow); position: relative; clip-path: inset(0 0 100% 0); transition: clip-path 1s steps(14); --zig: 8px; -webkit-mask: linear-gradient(#000 calc(100% - var(--zig)), transparent 0), conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) bottom / calc(2 * var(--zig)) var(--zig) repeat-x; mask: linear-gradient(#000 calc(100% - var(--zig)), transparent 0), conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) bottom / calc(2 * var(--zig)) var(--zig) repeat-x; }
.receipt.is-out { clip-path: inset(0 0 0 0); }
.receipt__shop { text-align: center; font-weight: 800; font-size: .86rem; margin-bottom: 8px; }
.receipt__rows { list-style: none; margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px dashed #bbb; }
.receipt__rows li { display: flex; justify-content: space-between; gap: 8px; }
.receipt__rows li span:last-child { white-space: nowrap; }
.receipt__rows li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt__sum { display: flex; justify-content: space-between; font-weight: 800; margin: 0; }
.receipt__vat { margin: 0 0 8px; color: #666; }
.receipt__code { margin: 0; display: grid; }
.receipt__code span { color: #666; }
.receipt__code code { font: inherit; font-weight: 700; word-break: break-all; min-height: 1.5em; }
.receipt__meta { margin: 8px 0 0; color: #666; }
.receipt__stamp { position: absolute; right: 10px; bottom: 34px; border: 2px solid var(--mint-ink); color: var(--mint-ink); font: 800 .78rem var(--font); padding: 3px 8px; border-radius: 6px; transform: rotate(-10deg); opacity: 0; background: rgba(217,242,228,.85); }
.receipt__stamp.is-on { animation: stamp .45s var(--ease) forwards; }
.receipt.is-done .receipt__stamp:not(.is-on) { opacity: 1; transform: rotate(-10deg); }
@keyframes stamp { from { opacity: 0; transform: rotate(-10deg) scale(1.8); } to { opacity: 1; transform: rotate(-10deg) scale(1); } }

/* Kivra */
.demo--kivra { display: flex; align-items: center; justify-content: center; min-height: 520px; gap: 0; }
.kivra__till { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; border-radius: 20px; padding: 22px 18px; box-shadow: var(--shadow); color: var(--forest); font-weight: 700; font-size: .9rem; z-index: 1; }
.kivra__till .i { color: var(--teal); }
.kivra__path { position: relative; flex: 1; max-width: 180px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px); opacity: .7; }
.kivra__doc { position: absolute; left: 0; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 12px; background: var(--coral); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; }
.kivra__doc.is-flying { animation: fly 1.5s var(--ease) forwards; }
@keyframes fly { 0% { left: -20px; opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1); } 85% { left: calc(100% - 20px); opacity: 1; transform: scale(1) rotate(8deg); } 100% { left: calc(100% + 20px); opacity: 0; transform: scale(.5); } }
.kivra__screen { background: #fbf6ef; }
.kivra__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.kivra__logo { font-weight: 800; font-size: 1.15rem; color: #1d6b47; letter-spacing: -0.02em; }
.kivra__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kivra__list li { display: flex; align-items: center; gap: 10px; padding: 11px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: .8rem; }
.kivra__list li b { display: block; }
.kivra__list li small { color: var(--muted); }
.kivra__list .is-new { transform: translateY(-12px) scale(.96); opacity: 0; transition: transform .45s var(--ease), opacity .35s; box-shadow: 0 0 0 2px #6fcf9f; }
.kivra__list .is-new.is-in { transform: none; opacity: 1; }
.kivra__ico { width: 34px; height: 34px; border-radius: 10px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; flex: none; }
.kivra__ico .i { width: 18px; height: 18px; }
.kivra__badge { margin-left: auto; background: var(--coral); color: #fff; border-radius: 999px; font-size: .64rem; font-weight: 800; padding: 2px 7px; }

/* Bank */
.app--bank { min-height: 400px; }
.bank__cols, .bank__rows li { display: grid; grid-template-columns: 54px 1fr 110px 150px; gap: 10px; align-items: center; }
.bank__cols { font-size: .74rem; color: var(--muted); font-weight: 700; padding: 0 10px 6px; border-bottom: 1px solid var(--line); }
.bank__rows { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; flex: 1; align-content: start; }
.bank__rows li { padding: 9px 10px; border-radius: 10px; font-size: .84rem; opacity: 0; transform: translateX(-12px); transition: opacity .35s, transform .35s var(--ease); }
.bank__rows li.is-in { opacity: 1; transform: none; }
.bank__rows li:nth-child(odd) { background: var(--paper); }
.bank__rows li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bank__rows .pos, .bank__rows .neg { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bank__rows .neg { color: var(--coral-ink); }
.bank__match .pill { animation: slidein .3s var(--ease); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bank__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; font-weight: 700; font-size: .88rem; }
.bank__btn { background: var(--teal); color: #fff; border-radius: 999px; padding: 7px 16px; }

/* Skiss för moduler utan egen animation */
.sketch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.sketch__card { background: var(--paper); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; animation: float 6s ease-in-out infinite; }
.sketch__card:nth-child(2) { animation-delay: -1.5s; } .sketch__card:nth-child(3) { animation-delay: -3s; } .sketch__card:nth-child(4) { animation-delay: -4.5s; }
.sketch__card b { font-size: .92rem; line-height: 1.25; }
.sketch__ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); }
.sketch__card--1 .sketch__ico { background: var(--mint); color: var(--mint-ink); }
.sketch__card--2 .sketch__ico { background: var(--coral-soft); color: var(--coral-ink); }
.sketch__bar { height: 8px; border-radius: 4px; background: rgba(16,36,38,.08); }
.sketch__bar--short { width: 60%; }
@keyframes float { 50% { transform: translateY(-5px); } }

.feature-band--dark .app, .feature-band--dark .phone { box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.feature-band--dark .snap__belt::before { background: repeating-linear-gradient(90deg, #2b5256 0 14px, #25484c 14px 28px); }
.feature-band--dark .snap__scanner { background: var(--coral); color: var(--forest-deep); }

/* ---------- responsivt ---------- */
@media (max-width: 1100px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
  .pkgs { grid-template-columns: repeat(2, 1fr); }
  .mega__inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .nav, .site-header__cta { display: none; }
  .burger { display: inline-flex; }
  .hero__inner, .mhero__inner, .feature-band__inner, .split { grid-template-columns: 1fr; }
  .feature-band--flip .feature-band__text { order: 0; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .proof__grid { grid-template-columns: 1fr; }
  .pkgs { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hub__node { transform: translate(-50%, -50%) rotate(var(--a)) translate(36vw) rotate(calc(-1 * var(--a))); }
  .hub__node .i { width: 42px; height: 42px; padding: 10px; }
  .hub__node b { font-size: .7rem; }
  .hub__core { padding: 14px 16px; }
  .hub__core .logo { font-size: 1rem; }
  .app__side { display: none; }
  .ticket { grid-template-columns: 1fr auto 24px; }
  .ticket__no, .ticket__tag { display: none; }
  .demo--register .pos { flex-direction: column; align-items: stretch; }
  .receipt { width: auto; }
  .bank__cols, .bank__rows li { grid-template-columns: 1fr 92px; }
  .bank__cols span:nth-child(1), .bank__cols span:nth-child(4), .bank__rows li > span:nth-child(1) { display: none; }
  .bank__rows li > .bank__match { grid-column: 1 / -1; }
  .demo--snap, .demo--kivra { min-height: 0; flex-direction: column; gap: 18px; }
  .snap__belt { width: 100%; max-width: 320px; margin: 0; height: 130px; }
  .kivra__path { width: 2px; height: 70px; max-width: none; flex: none; background: repeating-linear-gradient(180deg, var(--teal) 0 6px, transparent 6px 12px); }
  .kivra__doc { left: 50% !important; margin-left: -21px; top: 0; margin-top: 0; }
  .kivra__doc.is-flying { animation: flydown 1.5s var(--ease) forwards; }
  @keyframes flydown { 0% { top: -20px; opacity: 0; } 15% { opacity: 1; } 85% { top: calc(100% - 20px); opacity: 1; } 100% { top: calc(100% + 10px); opacity: 0; } }
  .sketch { grid-template-columns: 1fr; }
  .sketch__card:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mcard, .feature, .step, .pkg, .status, .feature-band__text { opacity: 1; transform: none; }
}

/* Utan JavaScript syns allt direkt. */
html:not(.js) :is(.mcard, .feature, .step, .pkg, .status, .feature-band__text) { opacity: 1; transform: none; }
