/* Fejsa – fejsa.app. Samma formspråk som appen och Studio: papper, ink, EN accent (kampanjgult).
   Inter Tight för rubriker (600–700), Inter för text. Lyft 2026-11-19: större och lugnare typografi,
   inga versaletiketter, hårlinjer i stället för tunga skuggor, inga pilar i knappar. Inga ramverk. */
:root {
  --paper: #F5F4EF;
  --paper-2: #ECEAE2;
  --card: #FFFFFF;
  --ink: #0E0E0C;
  --ink-2: #2A2925;
  --dim: #6E6D66;
  --mute: #9A9890;
  --line: #E3E1D8;
  --line-2: #D9D8D0;
  --accent: #FFD200;
  --accent-soft: #FFF4B8;
  --green: #1D9A5B;
  --green-soft: #DDF3E6;
  --red: #C4271F;
  --red-soft: #F9E0DE;
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 0 0 1px rgba(14,14,12,0.05), 0 1px 2px rgba(14,14,12,0.03), 0 12px 32px -20px rgba(14,14,12,0.18);
  --shadow-hover: 0 0 0 1px rgba(14,14,12,0.06), 0 2px 4px rgba(14,14,12,0.04), 0 24px 56px -28px rgba(14,14,12,0.3);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: 'cv11', 'ss01'; }
body { font-size: 17px; line-height: 1.55; letter-spacing: -0.011em; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 80%, var(--ink)); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.022em; line-height: 1.08; margin: 0 0 0.45em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 76px); letter-spacing: -0.042em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -0.034em; line-height: 1.06; }
h3 { font-size: 21px; letter-spacing: -0.018em; line-height: 1.2; font-weight: 650; }
h4 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(19px, 2.1vw, 23px); color: var(--dim); line-height: 1.45; max-width: 34em; letter-spacing: -0.016em; text-wrap: pretty; }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.02em; }
/* Sammanhang ovanför en rubrik: en lugn rad i sentence case, ingen dekor. */
.kicker { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: -0.011em; color: var(--dim); margin-bottom: 10px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: clamp(64px, 9vw, 112px) 0; }
section.tight { padding: 40px 0; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--ink); color: #F4F2EA; }
.band-dark .dim, .band-dark .kicker { color: #B9B7AE; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-accent { background: var(--accent); color: var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245,244,239,0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(14,14,12,0.07); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img { height: 26px !important; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { text-decoration: none; padding: 6px 11px; border-radius: 8px; font-weight: 500; font-size: 14px; color: var(--ink-2); transition: color .15s var(--ease), background .15s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); font-weight: 600; }
.nav .spacer { flex: 1; }
.nav .lang { font-size: 13px; font-weight: 600; color: var(--dim); text-decoration: none; padding: 6px 8px; }
.nav .lang:hover { color: var(--ink); }
.nav .btn { padding: 7px 15px; font-size: 14px; min-height: 0; }
.nav-toggle { display: none; background: none; border: 0; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 18px; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 56px; height: calc(100vh - 56px); background: var(--paper); flex-direction: column; padding: 18px 20px 24px; gap: 2px; }
  .nav-links a { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; padding: 10px 4px; }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: inline-block; }
  .nav .btn { display: none; }
}

/* Knappar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 16px; letter-spacing: -0.012em; text-decoration: none; border: 0; cursor: pointer; transition: background .15s var(--ease), transform .1s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2A2925; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #F2C800; }
.btn-ghost { background: rgba(14,14,12,0.06); color: var(--ink); }
.btn-ghost:hover { background: rgba(14,14,12,0.1); }
.band-dark .btn-ghost { color: #fff; background: rgba(255,255,255,0.12); }
.band-dark .btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--dim); font-size: 14px; font-weight: 500; }
.trust span::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 700; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Telefonmock */
.phone { width: 300px; margin: 0 auto; background: var(--ink); border-radius: 46px; padding: 11px; box-shadow: 0 0 0 1px rgba(14,14,12,0.4), 0 50px 100px -40px rgba(14,14,12,0.45), 0 30px 60px -30px rgba(14,14,12,0.3); }
.phone .screen { background: var(--paper); border-radius: 34px; padding: 22px 16px 18px; min-height: 560px; }
.phone .screen .kicker { margin-bottom: 2px; font-size: 12.5px; font-weight: 500; }
.phone .screen h3 { font-size: 24px; margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.kpi { background: var(--card); border-radius: 14px; padding: 10px 10px 8px; box-shadow: var(--shadow); }
.kpi b { display: block; font-family: var(--font-head); font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.kpi span { font-size: 11px; color: var(--dim); }
.kpi.good { background: var(--green-soft); }
.kpi.good b { color: var(--green); }
.row-card { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; }
.row-card .r { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.row-card .r:first-child { border-top: 0; }
.row-card .r b { font-weight: 600; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.green { background: var(--green-soft); color: var(--green); }

/* Siffror */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.numbers div { background: var(--card); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.numbers b { display: block; font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }
.numbers span { color: var(--dim); font-size: 14.5px; }
@media (max-width: 800px) { .numbers { grid-template-columns: repeat(2, 1fr); } }

/* Kort/grid */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: box-shadow .25s var(--ease); }
a.card { text-decoration: none; display: block; }
a.card:hover { box-shadow: var(--shadow-hover); }
.card h3 { margin-top: 6px; }
.card p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--ink); }
a.card:hover .more { text-decoration: underline; text-underline-offset: 3px; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; font-size: 19px; margin-bottom: 14px; }
.card.dark { background: var(--ink); color: #F4F2EA; }
.card.dark p { color: #D4D2C8; }
.card.dark h3 { color: #fff; }

/* Steg */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps > div { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow); position: relative; }
.steps > div::before { content: counter(s); font-family: var(--font-head); font-weight: 700; font-size: 15px; width: 32px; height: 32px; border-radius: 999px; background: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Jämförelse / tabell */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
th { background: var(--card); font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--dim); letter-spacing: 0; border-top: 0; box-shadow: inset 0 -1px 0 var(--line); }
td.yes { color: var(--green); font-weight: 600; }
td.no { color: var(--mute); }
.tablebox { overflow-x: auto; border-radius: var(--radius); }

/* Före/efter */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .card ul { margin: 10px 0 0; padding-left: 0; list-style: none; }
.compare .card li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.compare .card li:first-child { border-top: 0; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 0 2px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-family: var(--font-head); font-weight: 650; font-size: 19px; letter-spacing: -0.018em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.8px solid var(--dim); border-bottom: 1.8px solid var(--dim); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; max-width: 62ch; }

/* Artikel */
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(32px, 5vw, 48px); }
.article .meta { color: var(--dim); font-size: 14px; margin-bottom: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.article h2 { font-size: 28px; margin-top: 44px; }
.article h3 { font-size: 20px; margin-top: 30px; }
.article p, .article li { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 18px; }
.article table { font-size: 15px; margin: 20px 0; }
.article .box { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin: 28px 0; }
.article .box h3 { margin-top: 0; }
.article strong { color: var(--ink); }
.toc { background: var(--card); border-radius: var(--radius-sm); padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 30px; font-size: 15px; }
.toc b { display: block; font-family: var(--font-head); margin-bottom: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; display: block; padding: 3px 0; }
.toc a:hover { text-decoration: underline; }
.crumbs { font-size: 13.5px; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.related { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }

/* Formulär */
form .f { margin-bottom: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
input:focus, select:focus, textarea:focus { outline: none; border-color: #C9A600; box-shadow: 0 0 0 4px rgba(255,210,0,0.35); }
textarea { min-height: 120px; resize: vertical; }
.f-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .f-2 { grid-template-columns: 1fr; } }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; margin: 0; }
.pills input { width: auto; padding: 0; margin: 0; }
.pills label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }

/* CTA */
.cta { border-radius: 28px; padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.cta h2 { margin-bottom: 8px; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; padding: 34px 24px; } }

/* Prislista */
.price { position: relative; }
.price .amount { font-family: var(--font-head); font-size: 34px; letter-spacing: -0.03em; margin: 8px 0 2px; }
.price .amount small { font-size: 14px; letter-spacing: 0; color: var(--dim); font-family: var(--font-body); }
.price ul { list-style: none; padding: 0; margin: 16px 0 0; }
.price li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.price li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.price .badge { position: absolute; top: 18px; right: 18px; background: var(--accent); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }

/* Sidfot */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--dim); font-size: 13px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 30px; }
footer h4 { color: var(--ink); margin-bottom: 10px; font-size: 13px; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; }
footer a { color: var(--dim); text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .legal { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer .legal a { display: inline; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* Diverse */
.list-check { list-style: none; padding: 0; margin: 16px 0 0; }
.list-check li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-2); }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.note { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badges .soon { font-size: 13px; color: var(--dim); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Produktscen på startsidan (2026-11-19) ------------------------------------------------
   Studio i ett fönster + appen i en telefon. Telefonen fotar, skannar, hittar luckorna och visar
   resultatet i en loop; Studio räknar upp en gång och tickar när varje analys är klar. */
.hero-center { text-align: center; }
.hero-center h1 { max-width: 13ch; margin-left: auto; margin-right: auto; }
.hero-center .lede { margin-left: auto; margin-right: auto; max-width: 31em; }
.hero-center .btn-row, .hero-center .trust { justify-content: center; }
.scene { position: relative; max-width: 1080px; margin: clamp(48px, 7vw, 88px) auto 0; padding: 0 0 40px; text-align: left; font-family: var(--font-body); letter-spacing: -0.006em; }
.sc-win { width: 79%; background: #FBFAF7; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(14,14,12,0.08), 0 2px 6px rgba(14,14,12,0.04), 0 50px 100px -40px rgba(14,14,12,0.35); }
.sc-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #EFEDE6; border-bottom: 1px solid rgba(14,14,12,0.07); }
.sc-bar span { width: 11px; height: 11px; border-radius: 50%; background: #D9D6CC; }
.sc-bar em { font-style: normal; font-size: 12px; color: var(--dim); background: #FBFAF7; border-radius: 7px; padding: 3px 40px; margin: 0 auto; transform: translateX(-24px); }
.sc-body { display: grid; grid-template-columns: 150px 1fr; min-height: 470px; }
.sc-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-right: 1px solid rgba(14,14,12,0.07); background: #F3F1EB; font-size: 12px; color: var(--ink-2); }
.sc-nav b { font-family: var(--font-head); font-size: 16px; letter-spacing: -0.03em; margin: 0 8px 14px; }
.sc-nav b::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); margin-right: 6px; vertical-align: -2px; }
.sc-nav i { font-style: normal; padding: 5px 8px; border-radius: 6px; position: relative; }
.sc-nav i.on { background: rgba(14,14,12,0.07); font-weight: 600; color: var(--ink); }
.sc-nav i.on::before { content: ''; position: absolute; left: -10px; top: 5px; bottom: 5px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sc-main { padding: 20px 22px 22px; min-width: 0; }
.sc-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.sc-head h4 { font-size: 21px; margin: 0 0 2px; letter-spacing: -0.03em; }
.sc-head p { margin: 0; font-size: 12px; color: var(--dim); }
.sc-seg { display: flex; gap: 2px; padding: 2px; background: #ECEAE2; border-radius: 8px; font-size: 11px; }
.sc-seg i { font-style: normal; padding: 3px 9px; border-radius: 6px; color: var(--ink-2); }
.sc-seg i.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(14,14,12,0.12); }
.sc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 10px; }
.sc-kpi { position: relative; background: #fff; border-radius: 11px; padding: 11px 12px 10px; box-shadow: 0 0 0 1px rgba(14,14,12,0.05), 0 6px 18px -14px rgba(14,14,12,0.25); min-width: 0; }
.sc-kpi span { display: block; font-size: 11px; color: var(--ink-2); margin-bottom: 6px; }
.sc-kpi b { font-family: var(--font-head); font-size: 25px; font-weight: 650; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; transform-origin: left bottom; }
.sc-kpi small { font-size: 11px; color: var(--dim); margin-left: 2px; font-weight: 600; }
.sc-kpi em { display: block; font-style: normal; font-size: 10.5px; color: var(--dim); margin-top: 6px; }
.sc-kpi em.up { color: var(--green); font-weight: 600; }
.sc-spark { position: absolute; right: 10px; top: 26px; width: 64px; height: 22px; overflow: visible; }
.sc-spark path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sc-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 9px; }
.sc-card { background: #fff; border-radius: 11px; padding: 12px 14px; box-shadow: 0 0 0 1px rgba(14,14,12,0.05), 0 6px 18px -14px rgba(14,14,12,0.25); min-width: 0; }
.sc-card h5 { font-family: var(--font-head); font-size: 13.5px; font-weight: 650; margin: 0 0 8px; letter-spacing: -0.015em; }
.sc-todo { list-style: none; margin: 0; padding: 0; }
.sc-todo li { display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; padding: 6px 4px; border-top: 1px solid rgba(14,14,12,0.06); border-radius: 6px; font-size: 11.5px; }
.sc-todo li:first-child { border-top: 0; }
.sc-todo span { grid-row: span 2; align-self: center; height: 26px; border-radius: 7px; background: #EFEDE6; display: grid; place-items: center; font-family: var(--font-head); font-weight: 650; font-size: 11.5px; }
.sc-todo span.hot { background: var(--red-soft); color: #8E1912; }
.sc-todo span.warm { background: var(--accent-soft); color: #7A5600; }
.sc-todo b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-todo em { font-style: normal; color: var(--dim); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-bars { display: grid; gap: 11px; padding-top: 4px; }
.sc-bars div { display: grid; grid-template-columns: 62px 1fr 44px; align-items: center; gap: 8px; font-size: 11.5px; }
.sc-bars i { height: 7px; border-radius: 999px; background: linear-gradient(90deg, var(--ink) calc(var(--v) * 100%), #ECEAE2 0); transform-origin: left; }
.sc-bars b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Telefonen */
.sc-phone { position: absolute; right: 0; bottom: 0; width: 248px; background: var(--ink); border-radius: 44px; padding: 10px; box-shadow: 0 0 0 1px rgba(14,14,12,0.5), 0 60px 110px -40px rgba(14,14,12,0.55), 0 30px 60px -30px rgba(14,14,12,0.35); }
.sc-screen { position: relative; height: 500px; border-radius: 35px; overflow: hidden; background: #1A1916; }
.sc-photo { position: absolute; inset: 0; padding: 76px 12px 0; background: linear-gradient(#2A2925, #3A3832 60%, #2A2925); }
.sc-shelf { position: relative; display: flex; gap: 2px; align-items: flex-end; height: 100px; padding: 0 2px; margin-bottom: 28px; }
.sc-shelf::after { content: ''; position: absolute; left: -14px; right: -14px; bottom: -12px; height: 12px; background: linear-gradient(#D9D6CC, #A9A598); box-shadow: 0 6px 10px rgba(0,0,0,0.35); }
.sc-shelf i { position: relative; flex: 0 1 calc(var(--w) * 1%); height: calc(var(--h) * 1%); background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent 35%, rgba(0,0,0,0.16)), var(--c); border-radius: 3px 3px 1px 1px; }
.sc-shelf i::before { content: ''; position: absolute; left: 18%; right: 18%; top: 22%; height: 18%; border-radius: 2px; background: rgba(255,255,255,0.55); }
.sc-shelf i.gap { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.sc-shelf i.gap::before { display: none; }
/* Avläsningen: varje förpackning ringas in i sitt varumärkes färg, namnet står på den första i gruppen; luckor i rött. */
.sc-shelf i::after { content: ''; position: absolute; inset: -2px; border: 1.5px solid color-mix(in srgb, var(--c) 55%, #fff); border-radius: 4px; opacity: 0; }
.sc-shelf i.gap::after { inset: -4px -3px; border: 2px solid #FF6B61; border-radius: 6px; box-shadow: 0 0 0 4px rgba(255,107,97,0.2); }
.sc-shelf i b { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font-size: 8.5px; font-weight: 700; color: #fff; background: #E5483E; padding: 2px 6px; border-radius: 999px; opacity: 0; z-index: 2; pointer-events: none; }
/* Legenden överst: varumärkena tänds när de hittas, med antal facings. */
.sc-legend { position: absolute; left: 10px; right: 10px; top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; z-index: 3; }
.sc-legend span { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 600; color: #fff; background: rgba(20,20,18,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 999px; padding: 3px 7px 3px 5px; opacity: 0; }
.sc-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.sc-legend em { font-style: normal; opacity: 0.7; font-variant-numeric: tabular-nums; }
.sc-scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(rgba(255,210,0,0), rgba(255,210,0,0.28) 85%, rgba(255,210,0,0.9) 100%); opacity: 0; transform: translateY(-100%); }

.sc-shutter { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sc-sheet { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 72%; background: var(--paper); border-radius: 22px 22px 0 0; padding: 8px 14px 14px; transform: translateY(102%); box-shadow: 0 -10px 30px rgba(0,0,0,0.25); }
.sc-grab { width: 34px; height: 4px; border-radius: 999px; background: #CFCBBF; margin: 0 auto 10px; }
.sc-sheet small { font-size: 10.5px; color: var(--dim); }
.sc-sheet h6 { font-family: var(--font-head); font-size: 19px; font-weight: 700; letter-spacing: -0.03em; margin: 1px 0 9px; }
.sc-pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 9px; }
.sc-pk div { background: #fff; border-radius: 10px; padding: 7px 8px 6px; box-shadow: 0 0 0 1px rgba(14,14,12,0.05); }
.sc-pk div.good { background: var(--green-soft); }
.sc-pk b { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.sc-pk div.good b { color: var(--green); }
.sc-pk span { font-size: 9px; color: var(--dim); white-space: nowrap; }
.sc-share { display: grid; gap: 5px; background: #fff; border-radius: 10px; padding: 8px 9px; margin-bottom: 7px; box-shadow: 0 0 0 1px rgba(14,14,12,0.05); }
.sc-share div { display: grid; grid-template-columns: 58px 1fr 30px; gap: 6px; align-items: center; font-size: 10px; }
.sc-share i { height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--c) calc(var(--v) * 100% / .35), #ECEAE2 0); }
.sc-share b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-rows { background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgba(14,14,12,0.05); }
.sc-rows div { display: flex; justify-content: space-between; gap: 6px; padding: 8px 9px; font-size: 11px; border-top: 1px solid rgba(14,14,12,0.06); }
.sc-rows div:first-child { border-top: 0; }
.sc-rows i { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: 0.02em; padding: 1px 5px; border-radius: 999px; background: var(--accent-soft); margin-right: 3px; }
.sc-rows i.red { background: var(--red-soft); color: var(--red); }

/* Studio: en gång när scenen syns */
.scene .sc-spark path { stroke-dashoffset: 1; }
.scene .sc-bars i { transform: scaleX(0); }
.scene .sc-todo li { opacity: 0; transform: translateY(6px); }
.scene.play .sc-spark path { animation: sc-draw 1.4s cubic-bezier(.2,.8,.2,1) .3s forwards; }
.scene.play .sc-bars i { animation: sc-grow 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.scene.play .sc-bars div:nth-child(2) i { animation-delay: .08s; }
.scene.play .sc-bars div:nth-child(3) i { animation-delay: .16s; }
.scene.play .sc-bars div:nth-child(4) i { animation-delay: .24s; }
.scene.play .sc-todo li { animation: sc-in .6s cubic-bezier(.2,.8,.2,1) forwards; }
.scene.play .sc-todo li:nth-child(2) { animation-delay: .1s; }
.scene.play .sc-todo li:nth-child(3) { animation-delay: .2s; }
.scene.play .sc-todo li:nth-child(4) { animation-delay: .3s; }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
@keyframes sc-grow { to { transform: scaleX(1); } }
@keyframes sc-in { to { opacity: 1; transform: none; } }
.sc-visits.tick { animation: sc-tick .9s cubic-bezier(.2,.8,.2,1); }
@keyframes sc-tick { 0% { transform: none; color: inherit; } 25% { transform: scale(1.12); color: var(--green); } 100% { transform: none; color: inherit; } }
.sc-todo li.flash { animation: sc-in .6s forwards, sc-flash 2.2s ease-out; }
@keyframes sc-flash { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }

/* Telefonen: en sekvens på 9 s som går i loop */
.scene.shot .sc-shutter { animation: sc-shutter 9s linear; }
.scene.shot .sc-scan { animation: sc-scan 9s linear; }
.scene.shot .sc-shelf i::after, .scene.shot .sc-shelf i b, .scene.shot .sc-legend span { animation: sc-det 9s linear var(--d) backwards; }
.scene.shot .sc-sheet { animation: sc-sheet 9s cubic-bezier(.2,.8,.2,1); }
@keyframes sc-shutter { 0% { opacity: 0; } 2% { opacity: .85; } 7% { opacity: 0; } 100% { opacity: 0; } }
@keyframes sc-scan { 0%, 6% { opacity: 0; transform: translateY(-100%); } 8% { opacity: 1; } 30% { opacity: 1; transform: translateY(420px); } 33%, 100% { opacity: 0; transform: translateY(420px); } }
@keyframes sc-det { 0% { opacity: 0; } 3% { opacity: 1; } 76% { opacity: 1; } 81%, 100% { opacity: 0; } }
@keyframes sc-sheet { 0%, 48% { transform: translateY(102%); } 54% { transform: none; } 90% { transform: none; } 97%, 100% { transform: translateY(102%); } }
.scene.still .sc-sheet { animation: none; transform: none; }
.scene.still .sc-shelf i::after, .scene.still .sc-shelf i b, .scene.still .sc-legend span { animation: none; opacity: 1; }

@media (max-width: 860px) {
  .scene { padding-bottom: 0; }
  .sc-win { width: 100%; }
  .sc-body { grid-template-columns: 1fr; min-height: 0; }
  .sc-nav { display: none; }
  .sc-kpis { grid-template-columns: repeat(2, 1fr); }
  .sc-cols { grid-template-columns: 1fr; }
  .sc-cols .sc-card:last-child { display: none; }
  .sc-phone { position: relative; width: 236px; margin: -56px auto 0; }
  .sc-spark { width: 44px; top: 30px; }
  .sc-screen { height: 470px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene .sc-spark path { stroke-dashoffset: 0; }
  .scene .sc-bars i { transform: none; }
  .scene .sc-todo li { opacity: 1; transform: none; }
}

/* ---- Vinjetter per funktion (2026-11-19) -----------------------------------------------------
   Små ritade delar av appen/Studio som spelar upp funktionen när de syns (.play från skriptet).
   Utan skript, eller med reducerad rörelse, visas slutläget. */
.vg { position: relative; width: 100%; max-width: 460px; margin: 0 auto; border-radius: 24px; padding: 22px; font-size: 13.5px; line-height: 1.4; letter-spacing: -0.008em; text-align: left; }
.vg-card { background: var(--card); box-shadow: 0 0 0 1px rgba(14,14,12,0.05), 0 30px 70px -36px rgba(14,14,12,0.35), 0 8px 20px -14px rgba(14,14,12,0.15); }
.vg-dark { background: #1C1B18; color: #F4F2EA; box-shadow: 0 30px 70px -30px rgba(14,14,12,0.5); }
.vg-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--font-head); font-weight: 650; font-size: 15px; letter-spacing: -0.02em; margin-bottom: 14px; }
.vg-title small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.vg-foot { font-size: 12px; color: var(--dim); margin-top: 12px; }
.vg .bar { position: relative; height: 8px; border-radius: 999px; background: var(--paper-2); overflow: visible; }
.vg .bar > i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--ink); transform-origin: left; }
.vg .pill { display: inline-block; font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); }
.vg .pill.ok { background: var(--green-soft); color: #145C34; }
.vg .pill.bad { background: var(--red-soft); color: #8E1912; }
.vg i.tag { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 6px; border-radius: 999px; background: var(--accent-soft); margin-right: 6px; vertical-align: 1px; }
.vg i.tag.red { background: var(--red-soft); color: var(--red); }
.vg i.tag.green { background: var(--green-soft); color: var(--green); }
.up { color: var(--green); }
@keyframes vg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vg-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vg-pop { 0% { opacity: 0; transform: scale(0.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: none; } }

/* Hyllanalys */
.vg-shelfcard { padding: 56px 18px 22px; overflow: hidden; }
.vg-shelf { position: relative; display: flex; gap: 3px; align-items: flex-end; height: 104px; margin-bottom: 26px; }
.vg-shelf::after { content: ''; position: absolute; left: -18px; right: -18px; bottom: -11px; height: 11px; background: linear-gradient(#D9D6CC, #A9A598); box-shadow: 0 6px 10px rgba(0,0,0,0.35); }
.vg-shelf i { position: relative; flex: 1; height: calc(var(--h) * 1%); background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent 35%, rgba(0,0,0,0.16)), var(--c); border-radius: 3px 3px 1px 1px; }
.vg-shelf i.gap { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 6px, transparent 6px 12px); }
.vg-shelf i::after { content: ''; position: absolute; inset: -2px; border: 1.5px solid color-mix(in srgb, var(--c) 55%, #fff); border-radius: 4px; }
.vg-shelf i.gap::after { inset: -4px -3px; border: 2px solid #FF6B61; border-radius: 6px; box-shadow: 0 0 0 4px rgba(255,107,97,0.2); }
.vg-legend { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.vg-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.1); border-radius: 999px; padding: 3px 9px 3px 6px; }
.vg-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.vg-scanline { position: absolute; left: 0; right: 0; top: 0; height: 70px; background: linear-gradient(rgba(255,210,0,0), rgba(255,210,0,0.25) 85%, rgba(255,210,0,0.9)); opacity: 0; pointer-events: none; }
.vg-toast { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; background: #F4F2EA; color: var(--ink); font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.vg-shelfcard { padding-bottom: 64px; }
.vg.armed:not(.play) .vg-shelf i::after, .vg.armed:not(.play) .vg-legend span, .vg.armed:not(.play) .vg-toast { opacity: 0; }
.vg.play .vg-scanline { animation: vg-scan 1.8s linear .2s both; }
@keyframes vg-scan { 0% { opacity: 1; transform: translateY(-70px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(300px); } }
.vg.play .vg-shelf i::after { animation: vg-fade .25s ease calc(.4s + var(--i) * .07s) both; }
.vg.play .vg-legend span { animation: vg-pop .4s ease calc(.6s + var(--i) * .25s) both; }
.vg.play .vg-toast { animation: vg-in .5s cubic-bezier(.2,.8,.2,1) 2.3s both; }

/* Perfect Store */
.vg-ps { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.vg-ring { position: relative; width: 150px; height: 150px; }
.vg-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vg-ring circle { fill: none; stroke: var(--paper-2); stroke-width: 10; }
.vg-ring circle.arc { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v) * 100); }
.vg-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.vg-ring b { font-family: var(--font-head); font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.vg-ring span { font-size: 11.5px; color: var(--dim); }
.vg-parts { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.vg-parts li { display: grid; grid-template-columns: 1fr 44px; grid-template-rows: auto 6px; column-gap: 8px; row-gap: 4px; font-size: 12px; }
.vg-parts li i { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--ink) calc(var(--v) * 100%), var(--paper-2) 0); transform-origin: left; }
.vg-parts li b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.vg-delta { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; color: var(--dim); }
.vg-delta b { font-weight: 700; }
.vg.armed:not(.play) .vg-ring circle.arc { stroke-dashoffset: 100; }
.vg.play .vg-ring circle.arc { animation: vg-arc 1.6s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes vg-arc { from { stroke-dashoffset: 100; } }
.vg.play .vg-parts li i { animation: vg-grow .9s cubic-bezier(.2,.8,.2,1) calc(.3s + var(--i) * .12s) both; }
.vg.play .vg-delta { animation: vg-in .5s ease 1.6s both; }

/* Mest att hämta: listan sorteras */
.vg-rank ol { position: relative; list-style: none; margin: 0; padding: 0; height: calc(4 * 58px); }
.vg-rank li { position: absolute; left: 0; right: 0; top: calc(var(--to) * 58px); height: 52px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 0 10px; box-shadow: 0 0 0 1px var(--line); }
.vg-rank .sc { height: 32px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--font-head); font-weight: 650; font-size: 13px; }
.vg-rank .sc.hot { background: var(--red-soft); color: #8E1912; }
.vg-rank .sc.warm { background: var(--accent-soft); color: #7A5600; }
.vg-rank li b { display: block; font-weight: 600; font-size: 13px; }
.vg-rank li em { display: block; font-style: normal; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg.armed:not(.play) .vg-rank li { top: calc(var(--from) * 58px); }
.vg.play .vg-rank li { animation: vg-sort .9s cubic-bezier(.5,0,.2,1) .9s both; }
@keyframes vg-sort { from { top: calc(var(--from) * 58px); } to { top: calc(var(--to) * 58px); } }

/* Order i besöket */
.vg-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.vg-line b { font-weight: 600; }
.vg-line em { display: block; font-style: normal; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.vg-qty { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 999px; padding: 4px 6px; flex: none; }
.vg-qty s { text-decoration: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.vg-qty b { min-width: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.vg-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; color: var(--dim); }
.vg-total b { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; margin-left: auto; margin-right: 4px; }
.vg-send { position: relative; margin-top: 14px; height: 44px; border-radius: 999px; overflow: hidden; font-weight: 600; font-size: 14px; }
.vg-send span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; }
.vg-send .a { background: var(--ink); color: #fff; }
.vg-send .b { background: var(--green); color: #fff; }
.vg.armed:not(.play) .vg-line { opacity: 0; }
.vg.armed:not(.play) .vg-send .b { opacity: 0; }
.vg.play .vg-line { animation: vg-in .5s cubic-bezier(.2,.8,.2,1) calc(.2s + var(--i) * .18s) both; }
.vg.play .vg-send .b { animation: vg-send .5s ease 2.4s both; }
@keyframes vg-send { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* Säljcykler och I fas */
.vg-pr { display: grid; grid-template-columns: 62px 1fr 64px; gap: 12px; align-items: center; padding: 9px 0; font-size: 13px; }
.vg-pr span { font-weight: 600; }
.vg-pr .bar u { position: absolute; left: 57%; top: -5px; bottom: -5px; width: 2px; border-radius: 2px; background: var(--ink); opacity: 0.35; }
.vg-pr .bar > i { background: var(--ink); }
.vg-pr:nth-child(4) .bar > i { background: var(--red); }
.vg-pr em { justify-self: end; }
.vg.armed:not(.play) .vg-pr em { opacity: 0; }
.vg.play .vg-pr .bar > i { animation: vg-grow 1.2s cubic-bezier(.2,.8,.2,1) calc(.2s + var(--i) * .12s) both; }
.vg.play .vg-pr em { animation: vg-pop .4s ease calc(1.3s + var(--i) * .12s) both; }

/* Kampanjmål */
.vg-camp-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.vg-camp-top small { display: block; font-size: 12px; color: var(--dim); }
.vg-camp-top b { font-family: var(--font-head); font-size: 34px; font-weight: 700; letter-spacing: -0.04em; margin-right: 6px; }
.vg-camp-top span { color: var(--dim); }
.vg-split { background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.vg-camp ul { list-style: none; margin: 0; padding: 0; }
.vg-camp li { display: grid; grid-template-columns: 1fr 22px 90px 28px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.vg-camp li em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--dim); text-align: center; background: var(--paper); border-radius: 6px; }
.vg-camp li i { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) calc(var(--v) * 100%), var(--paper-2) 0); transform-origin: left; }
.vg-camp li b { text-align: right; font-variant-numeric: tabular-nums; }
.vg-act { display: flex; align-items: baseline; gap: 4px; justify-content: flex-end; margin-top: 12px; color: var(--dim); font-size: 12.5px; }
.vg-act span { margin-right: auto; }
.vg-act b { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.vg.armed:not(.play) .vg-camp li { opacity: 0; }
.vg.play .vg-split { animation: vg-press .5s ease .3s; }
@keyframes vg-press { 50% { transform: scale(0.94); } }
.vg.play .vg-camp li { animation: vg-in .45s cubic-bezier(.2,.8,.2,1) calc(.6s + var(--i) * .12s) both; }
.vg.play .vg-camp li i { animation: vg-grow .9s cubic-bezier(.2,.8,.2,1) calc(.8s + var(--i) * .12s) both; }

/* Leverantörsportal: cykelrapporten byggs */
.vg-report { padding: 26px 26px 30px; background: var(--paper-2); }
.vg-doc { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 2px rgba(14,14,12,0.06), 0 18px 40px -20px rgba(14,14,12,0.3); }
.vg-doc-h { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.vg-doc-h b { font-family: var(--font-head); font-size: 15px; }
.vg-doc-h span { font-size: 11.5px; color: var(--dim); }
.vg-doc-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.vg-doc-k div { background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.vg-doc-k b { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.vg-doc-k span { font-size: 10.5px; color: var(--dim); }
.vg-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 14px; }
.vg-grid i { aspect-ratio: 1.6; border-radius: 4px; background: #D9EFD8; }
.vg-grid i.warn { background: #F6E3B4; }
.vg-grid i.bad { background: #F5CCCC; }
.vg-doc-l span { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); margin-top: 7px; width: 92%; }
.vg-doc-l span:nth-child(2) { width: 78%; }
.vg-doc-l span:nth-child(3) { width: 55%; }
.vg-pdf { position: absolute; right: 16px; bottom: 14px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 8px; box-shadow: 0 8px 20px -6px rgba(196,39,31,0.5); }
.vg.armed:not(.play) .vg-grid i, .vg.armed:not(.play) .vg-doc-k div, .vg.armed:not(.play) .vg-pdf { opacity: 0; }
.vg.play .vg-doc-k div { animation: vg-in .45s ease .2s both; }
.vg.play .vg-doc-k div:nth-child(2) { animation-delay: .35s; }
.vg.play .vg-doc-k div:nth-child(3) { animation-delay: .5s; }
.vg.play .vg-grid i { animation: vg-pop .35s ease calc(.7s + var(--i) * .04s) both; }
.vg.play .vg-pdf { animation: vg-pop .45s ease 2s both; }

/* Fråga datan: frågan skrivs, svaret ritas */
.vg-input { display: flex; align-items: center; min-height: 46px; border-radius: 12px; border: 1px solid var(--line-2); padding: 10px 14px; margin-bottom: 16px; font-size: 14px; background: var(--paper); }
.vg-input .type { display: inline-block; white-space: nowrap; overflow: hidden; max-width: min(100%, max-content); }
.vg-input .caret { width: 2px; height: 18px; background: var(--ink); margin-left: 2px; animation: vg-blink 1s steps(1) infinite; }
@keyframes vg-blink { 50% { opacity: 0; } }
.vg-hb { display: grid; grid-template-columns: minmax(0, 1fr) 1fr 50px; gap: 10px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.vg-hb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-hb i { height: 10px; border-radius: 3px; background: var(--ink); width: calc(var(--v) * 100%); transform-origin: left; }
.vg-hb:first-of-type i { background: var(--red); }
.vg-hb b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.vg.armed:not(.play) .vg-input .type { width: 0; }
.vg.armed:not(.play) .vg-answer { opacity: 0; }
.vg.play .vg-input .type { animation: vg-type 1.7s steps(var(--n)) .2s both; }
@keyframes vg-type { from { width: 0; } to { width: calc(var(--n) * 0.56em); } }
.vg.play .vg-answer { animation: vg-in .5s ease 2.1s both; }
.vg.play .vg-hb i { animation: vg-grow .8s cubic-bezier(.2,.8,.2,1) calc(2.3s + var(--i) * .1s) both; }

/* Distributionsbock */
.vg-chk { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.vg-chk em { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.vg-chk em.ok { background: var(--green-soft); color: #145C34; }
.vg-chk em.bad { background: var(--red-soft); color: #8E1912; }
.vg.armed:not(.play) .vg-chk em { opacity: 0; }
.vg.play .vg-chk em { animation: vg-pop .35s ease calc(.4s + var(--i) * .28s) both; }

/* Offline och utkorg */
.vg-net { position: relative; height: 34px; margin-bottom: 10px; }
.vg-net span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.vg-net .off { background: var(--paper-2); color: var(--ink-2); }
.vg-net .on { background: var(--green-soft); color: #145C34; }
.vg-q { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.vg-q em { position: relative; font-style: normal; width: 76px; height: 22px; font-size: 11.5px; font-weight: 600; }
.vg-q em s, .vg-q em u { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; border-radius: 999px; }
.vg-q em s { background: var(--accent-soft); color: #7A5600; }
.vg-q em u { background: var(--green-soft); color: #145C34; }
.vg.armed:not(.play) .vg-net .on, .vg.armed:not(.play) .vg-q em u { opacity: 0; }
.vg.play .vg-net .on { animation: vg-fade .4s ease 1.4s both; }
.vg.play .vg-q em u { animation: vg-pop .35s ease calc(1.8s + var(--i) * .3s) both; }

/* Uppgifter */
.vg-task { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.vg-task i { position: relative; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); flex: none; }
.vg-task i::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.vg-prog { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.vg-prog .bar > i { --v: .86; background: var(--green); }
.vg-prog b { color: var(--ink); }
.vg.armed:not(.play) .vg-task i::after { opacity: 0; }
.vg.play .vg-task i::after { animation: vg-pop .35s ease calc(.5s + var(--i) * .4s) both; }
.vg.play .vg-prog .bar > i { animation: vg-grow 1s cubic-bezier(.2,.8,.2,1) 1.6s both; }

/* Funktionsrader: text + vinjett sida vid sida, varannan spegelvänd */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(64px, 9vw, 120px); }
.feature-row.flip > :first-child { order: 2; }
.feature-row h2 { margin-bottom: 14px; }
.feature-row .lede { font-size: clamp(17px, 1.7vw, 20px); }
.feature-row .more-link { display: inline-block; margin-top: 18px; font-weight: 600; text-decoration: none; }
.feature-row .more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } .feature-row.flip > :first-child { order: 0; } }
@media (prefers-reduced-motion: reduce) {
  .vg.armed:not(.play) * { opacity: 1 !important; }
  .vg * { animation: none !important; }
  .vg.armed .vg-rank li { top: calc(var(--to) * 58px) !important; }
  .vg.armed .vg-input .type { width: auto !important; }
  .vg.armed .vg-ring circle.arc { stroke-dashoffset: calc(100 - var(--v) * 100) !important; }
}
.hero-row { margin-top: 8px; }
.hero-row h1 { font-size: clamp(38px, 5vw, 60px); }
.studio-card { display: block; padding: clamp(28px, 4vw, 44px); text-decoration: none; }
.studio-card p { max-width: 62ch; }
.band-dark .vg-card { background: #FBFAF6; color: var(--ink); }
/* Smala skärmar: tabeller (t.ex. underleverantörer) får plats utan sidledsscroll */
.split > * { min-width: 0; }
@media (max-width: 600px) { th, td { padding: 10px 10px; font-size: 14px; } td { overflow-wrap: anywhere; hyphens: auto; } }
