/* qrgen.se – ett system: papper, bläck och en lime-accent. Inga externa resurser. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0C0D0B;
  --ink-2: #161815;
  --ink-3: #20231E;
  --paper: #F3F1EA;
  --paper-2: #E9E6DA;
  --white: #FFFFFF;
  --muted: #5B5E57;
  --muted-on-dark: #A9ADA2;
  --line: #D9D5C8;
  --line-dark: #2B2E27;
  --volt: #D4FF3A;
  --volt-press: #BEE62E;
  --volt-deep: #556B00;
  --danger: #B3261E;
  --ok: #0A7A3E;
  --warn: #8A5A00;
  --warn-bg: #FFF1CF;
  --bad-bg: #FDE4E1;
  --ok-bg: #DDF3E5;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --gutter: 24px;
  --maxw: 1240px;
  --shadow: 0 1px 0 rgba(12,13,11,.04), 0 12px 32px -12px rgba(12,13,11,.28);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: currentColor; }
code { font: 500 .88em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--paper-2); padding: .12em .4em; border-radius: 6px; word-break: break-all; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 6px; }
.band-ink :focus-visible, .hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { box-shadow: 0 0 0 5px var(--ink); }
.band-paper :focus-visible, .band-white :focus-visible, main :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 5px var(--volt); }
.hero :focus-visible, .band-ink :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--volt); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--volt); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .15s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 640px; }
.wrap.narrow { max-width: calc(640px + var(--gutter) * 2); }
.center { text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row.center { justify-content: center; }

/* ---- Knappar --------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; min-height: 44px; border: 1.5px solid transparent; border-radius: var(--r-sm); font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; transition: transform .16s var(--ease), background-color .16s, border-color .16s, box-shadow .16s, color .16s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-volt { background: var(--volt); color: var(--ink); }
.btn-volt:hover { background: var(--volt-press); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(160,200,0,.7); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #26291F; transform: translateY(-1px); }
.btn-quiet { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 28%, transparent); }
.btn-quiet:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 6%, transparent); }
.btn-ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 32%, transparent); }
.btn-ghost:hover { border-color: currentColor; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--danger); }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: 14px; }
.btn-xs { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.btn-lg { padding: 16px 24px; min-height: 56px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---- Huvud ------------------------------------------------------------------------------ */
.promo { display: block; background: var(--volt); color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.promo .wrap { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.promo b { font-weight: 750; }
.promo-sub { color: #38430a; }
.promo svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.promo:hover svg { transform: translateX(3px); }
.promo:hover b { text-decoration: underline; text-underline-offset: 3px; }
.promo:focus-visible { outline-offset: -3px; }
@media (max-width: 640px) { .promo-sub { display: none; } }
.plan-tag { align-self: flex-start; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--volt); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.plan-was { margin: 0 0 4px; font-size: 14.5px; color: #38430a; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12,13,11,.92); backdrop-filter: blur(10px); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; text-decoration: none; color: var(--white); }
.brand b { color: var(--volt); font-weight: 800; }
.brand-mark { width: 26px; height: 26px; color: var(--white); transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; }
.nav a { color: var(--muted-on-dark); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 550; font-size: 15px; transition: color .15s, background-color .15s; background-image: linear-gradient(var(--volt), var(--volt)); background-repeat: no-repeat; background-size: 0 2px; background-position: 12px calc(100% - 4px); }
.nav a:hover { color: var(--white); background-size: calc(100% - 24px) 2px; }
.nav .lang { margin-left: auto; font-size: 14px; border: 1px solid var(--line-dark); }
.nav-only-small { display: none; }
.bar-end { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line-dark); border-radius: 10px; background: transparent; position: relative; }
.menu-btn i, .menu-btn i::before { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s var(--ease), top .2s var(--ease); }
.menu-btn i { top: 20px; }
.menu-btn i::before { top: -6px; left: 0; right: 0; }
.menu-btn[aria-expanded="true"] i { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::before { top: 0; transform: rotate(-90deg); }

/* ---- Hero -------------------------------------------------------------------------------- */
.hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; padding: 26px 0 36px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 420px at 8% 108%, rgba(212,255,58,.14), transparent 70%),
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 36px 36px,
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 36px 36px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.hero-head { max-width: 980px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 1rem + 2.5vw, 3.2rem); }
.lede { font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: var(--muted-on-dark); max-width: 84ch; margin: 10px 0 0; }
.lede-sm { color: var(--muted); font-size: 1.05rem; margin: 8px 0 0; }
[data-enter] .hero-head h1 { animation: enter .7s var(--ease) both; }
[data-enter] .hero-head .lede { animation: enter .7s .08s var(--ease) both; }
[data-enter] .gen { animation: enter .8s .16s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- Generator ---------------------------------------------------------------------------- */
.gen { color: var(--ink); }
.gen-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.gen-panel { background: var(--paper); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.gen-out { position: sticky; top: 80px; background: var(--white); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.types { display: flex; flex-wrap: wrap; gap: 6px; }
.type { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s var(--ease); }
.type svg { width: 18px; height: 18px; flex: none; }
.type:hover { border-color: var(--ink); transform: translateY(-1px); }
.type[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.type[aria-selected="true"] svg { color: var(--volt); }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.mode button { text-align: left; padding: 11px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--white); display: grid; gap: 2px; transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.mode button b { font-family: var(--display); font-size: 16px; letter-spacing: -.01em; }
.mode button span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.mode button:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-1px); }
.mode button[aria-checked="true"] { border-color: var(--ink); background: var(--volt); }
.mode button[aria-checked="true"] span { color: #2c3300; }
.mode button:disabled { opacity: .5; cursor: not-allowed; }
.tabs { display: flex; gap: 2px; border-bottom: 1.5px solid var(--line); margin: 6px 0 14px; }
.tabs button { padding: 10px 14px; min-height: 44px; background: none; border: 0; font-weight: 650; font-size: 14.5px; color: var(--muted); position: relative; }
.tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1.5px; height: 3px; border-radius: 3px; background: var(--ink); transform: scaleX(0); transition: transform .2s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.panes { min-height: 190px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: 13.5px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9b49f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(212,255,58,.55); }
.field input[type="range"] { padding: 0; min-height: 28px; accent-color: var(--ink); }
.field output { font-weight: 500; color: var(--muted); margin-left: 6px; }
.hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.hint-box { margin: 4px 0 20px; font-size: 14px; color: var(--muted); }
.hint-box summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.hint-box p { margin: 8px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 4px 0 14px; cursor: pointer; min-height: 32px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.check.inline { margin: 0; }
.form-error { background: var(--bad-bg); color: #7a150f; padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 550; margin: 0 0 12px; }
.name-field { margin-top: 8px; }
.stack { display: grid; gap: 4px; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.preset { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1.5px var(--line); background: linear-gradient(135deg, var(--a), var(--b)); transition: transform .15s var(--ease), box-shadow .15s; }
.preset:hover { transform: scale(1.1); }
.preset[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.colorrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.colorrow > label { font-weight: 600; font-size: 13.5px; }
.colorpick { display: flex; align-items: center; gap: 8px; }
.colorpick input[type="color"] { width: 44px; height: 44px; padding: 3px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); cursor: pointer; }
.colorpick input[type="text"] { width: 104px; padding: 10px 12px; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); font: 500 14px ui-monospace, Consolas, monospace; text-transform: uppercase; }
.group-title { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.group-title:first-child { margin-top: 0; }
.shapes { display: flex; flex-wrap: wrap; gap: 8px; }
.shape { width: 52px; height: 52px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--white); display: grid; place-items: center; transition: border-color .15s, transform .15s var(--ease), background-color .15s; }
.shape svg { width: 28px; height: 28px; fill: currentColor; }
.shape:hover { border-color: var(--ink); transform: translateY(-1px); }
.shape[aria-checked="true"] { background: var(--ink); color: var(--volt); border-color: var(--ink); }
.adv { margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.logo-drop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.logo-has { display: flex; align-items: center; gap: 10px; }
.logo-has img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--white); border: 1.5px solid var(--line); }

.qr-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 268px; margin: 0 auto; background: var(--white); border-radius: var(--r); border: 1.5px solid var(--line); padding: 14px; display: grid; place-items: center; transition: border-color .2s; }
.qr-stage img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s, filter .2s; image-rendering: -webkit-optimize-contrast; }
.qr-stage[data-state="loading"] img { opacity: .15; }
.qr-stage[data-state="sample"] img { opacity: .38; filter: grayscale(.6); }
.qr-stage[data-state="stale"] img { opacity: .5; }
.qr-stage[data-state="ready"] { border-color: var(--ink); }
.qr-sample { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 650; text-align: center; line-height: 1.3; }
.checks { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; gap: 6px; min-height: 40px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.checks svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.checks .ok { color: var(--ok); }
.checks .warn { color: var(--warn); }
.formats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.formats button { padding: 9px 0; min-height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--white); font-weight: 700; font-size: 13.5px; transition: background-color .15s, border-color .15s, transform .15s var(--ease); }
.formats button:hover { border-color: var(--ink); transform: translateY(-1px); }
.formats button[aria-checked="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dl-row2 { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: end; }
.dl-row2 .size-field { margin: 0; }
.dl-row2 .size-field[hidden] + .btn { grid-column: 1 / -1; }
[data-download].is-idle { background: var(--paper-2); color: var(--muted); }
[data-download].is-idle:hover { background: var(--paper-2); box-shadow: none; transform: none; }
.out-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.status { min-height: 1.4em; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ok); }
.status.bad { color: var(--danger); }
.out-preview, .out-actions { display: block; }

dialog.gate { border: 0; border-radius: var(--r-lg); padding: 28px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.45); background: var(--paper); color: var(--ink); }
dialog.gate::backdrop { background: rgba(12,13,11,.66); backdrop-filter: blur(3px); }
dialog.gate h2 { font-size: 1.7rem; margin-bottom: 10px; padding-right: 36px; }
.gate-close { position: absolute; top: 14px; right: 14px; margin: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
.gate-actions { display: grid; gap: 8px; margin-top: 18px; }

/* ---- Sektioner ----------------------------------------------------------------------------- */
.band { padding: clamp(56px, 7vw, 104px) 0; }
.band-paper { background: var(--paper); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--white); }
.band-flush { padding-top: clamp(28px, 4vw, 48px); }
.band h2 { max-width: 20ch; margin-bottom: clamp(28px, 4vw, 48px); }
.page-head { background: var(--paper); padding: clamp(32px, 5vw, 56px) 0 0; }
.page-head h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
.page-head-ink { background: var(--ink); color: var(--white); padding-bottom: 8px; }
.page-head-ink .lede { color: var(--muted-on-dark); }
.crumb { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.mini-h { font-size: 1.3rem; margin: 32px 0 14px; }
.mini { font-size: 1.1rem; margin: 28px 0 12px; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); border: 1.5px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card h2 { font-size: 1.35rem; margin-bottom: 12px; max-width: none; }
.kind h3 { font-size: 1.7rem; margin-bottom: 10px; }
.kind { display: flex; flex-direction: column; }
.kind:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kind-dynamic { background: var(--ink); color: var(--white); border-color: var(--ink); }
.kind-dynamic p { color: var(--muted-on-dark); }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { padding-left: 28px; position: relative; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%230C0D0B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.kind .ticks { margin-top: auto; padding-top: 18px; }
.static-demo { margin: 18px 0 4px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.sd-qr { width: 84px; flex: none; background: var(--white); border-radius: 10px; padding: 6px; }
.sd-qr svg { width: 100%; height: auto; }
.sd-lines { display: grid; gap: 8px; flex: 1; }
.sd-lines i { display: block; height: 8px; border-radius: 6px; background: var(--line); }
.sd-lines i:nth-child(2) { width: 72%; }
.sd-lines i:nth-child(3) { width: 46%; }

.redirect { margin: 18px 0 4px; padding: 14px 16px; border-radius: var(--r); background: var(--ink-3); border: 1px solid var(--line-dark); display: grid; grid-template-columns: auto auto 1fr; gap: 8px 12px; align-items: center; font: 500 13.5px ui-monospace, Consolas, monospace; }
.r-from { color: var(--muted-on-dark); }
.r-arrow { width: 18px; height: 18px; color: var(--volt); }
.r-to { position: relative; height: 1.5em; color: var(--volt); }
.r-to .t { position: absolute; inset: 0; opacity: 0; font-weight: 500; white-space: nowrap; }
.r-to .t3 { opacity: 1; }
.r-scans { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-family: var(--body); font-size: 13px; }
.r-scans i { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); }
.redirect.is-live .t1 { animation: swap1 4.8s linear 1 both; }
.redirect.is-live .t2 { animation: swap2 4.8s linear 1 both; }
.redirect.is-live .t3 { animation: swap3 4.8s linear 1 both; }
.redirect.is-live .r-scans i { animation: pulse 1.2s ease-out 4; }
@keyframes swap1 { 0%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes swap2 { 0%, 30% { opacity: 0; transform: translateY(6px); } 36%, 63% { opacity: 1; transform: none; } 69%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes swap3 { 0%, 63% { opacity: 0; transform: translateY(6px); } 69%, 100% { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,255,58,.7); } 100% { box-shadow: 0 0 0 10px rgba(212,255,58,0); } }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { display: block; aspect-ratio: 1; background: var(--paper); border-radius: var(--r); padding: 12px; border: 1.5px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tile svg { width: 100%; height: 100%; transition: transform .35s var(--ease); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile:hover svg { transform: scale(1.025); }
.formats-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.formats-list li { border-top: 2px solid var(--ink); padding-top: 12px; display: grid; gap: 2px; }
.formats-list b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.02em; }
.formats-list span { color: var(--muted); font-size: 14px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); border: 1.5px solid var(--line-dark); background: var(--ink-2); color: var(--white); display: flex; flex-direction: column; transition: transform .2s var(--ease); }
.plan:hover { transform: translateY(-2px); }
.plan h3 { font-size: 1.2rem; color: var(--muted-on-dark); font-weight: 600; letter-spacing: 0; }
.plan .price { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 8px; }
.plan .price b { font-family: var(--display); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); letter-spacing: -.04em; line-height: 1; }
.plan .price span { color: var(--muted-on-dark); }
.plan .ticks { margin: 16px 0 24px; }
.plan .btn, .plan form { margin-top: auto; }
.plan-keep { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.plan-keep h3, .plan-keep .price span { color: #38430a; }
.plan-keep .ticks li::before { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23D4FF3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-keep .btn-volt { background: var(--ink); color: var(--white); }
.plan-keep .btn-volt:hover { background: #26291F; box-shadow: none; }
.plan-keep .btn-ghost { border-color: rgba(12,13,11,.4); }
.buy { display: grid; gap: 8px; margin-top: auto; }
.plan .buy { margin-top: auto; }
.plan .btn-quiet { border-color: rgba(255,255,255,.3); }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-wrap h2 { margin-bottom: 0; position: sticky; top: 96px; }
.faq details { border-top: 1.5px solid var(--ink); padding: 18px 0; }
.faq details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 650; font-size: 1.2rem; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 64ch; }

.prose-wrap { max-width: 760px; }
.prose-wrap h2 { margin-bottom: 18px; }
.prose { color: #33362F; font-size: 1.08rem; max-width: 62ch; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .15s, transform .15s var(--ease); }
.chips a svg { width: 18px; height: 18px; }
.chips a:hover { border-color: var(--ink); transform: translateY(-1px); }

.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--paper-2); }
.compare th[scope="row"] { font-weight: 550; }
.compare td, .compare thead th:not(:first-child) { text-align: center; }
.compare td:last-child, .compare thead th:last-child { background: color-mix(in srgb, var(--volt) 30%, white); }
.compare .yes { width: 20px; height: 20px; margin: 0 auto; color: var(--ok); }
table.data { font-size: 14px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.actions { white-space: nowrap; }
.actions form { display: inline-block; vertical-align: middle; margin: 2px 4px 2px 0; }
.wrap-cell { max-width: 360px; word-break: break-word; }
.mini-form { display: inline-flex; gap: 4px; align-items: center; }
.mini-form input { width: 90px; padding: 5px 8px; min-height: 30px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; }
.is-off { opacity: .62; }

.notice { background: var(--paper-2); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14.5px; margin: 0 0 18px; font-weight: 500; }
.notice-ok { background: var(--ok-bg); color: #08532b; }
.notice-bad { background: var(--bad-bg); color: #7a150f; }
.notice-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.band-ink .notice { background: var(--ink-3); color: var(--white); }

/* ---- Konto ---------------------------------------------------------------------------------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 64px - 340px); }
.auth-art { background: var(--ink); color: var(--white); padding: clamp(32px, 6vw, 80px); display: grid; align-content: center; justify-items: start; gap: 28px; position: relative; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 320px at 20% 110%, rgba(212,255,58,.18), transparent 70%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 36px 36px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 36px 36px; }
.auth-qr { position: relative; width: min(280px, 60%); background: var(--white); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.5); transform: rotate(-3deg); }
.auth-qr svg { width: 100%; height: auto; }
.ticks-on-dark { position: relative; }
.ticks-on-dark li { color: var(--white); }
.auth-card { padding: clamp(32px, 6vw, 80px); display: grid; align-content: center; max-width: 560px; width: 100%; }
.auth-card h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: 18px; }
.auth-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 14.5px; }
.auth-links.small { font-size: 13px; color: var(--muted); display: block; margin-top: 14px; }

.status-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); margin: 0 0 20px; flex-wrap: wrap; }
.status-banner svg { width: 22px; height: 22px; flex: none; }
.status-banner p { margin: 0; flex: 1; min-width: 220px; font-weight: 550; }
.status-ok { background: var(--ok-bg); color: #08532b; }
.status-warn { background: var(--warn-bg); color: #5c3b00; }
.status-bad { background: var(--bad-bg); color: #7a150f; }
.status-bad-text { color: var(--danger); font-weight: 600; }
.empty { text-align: center; padding: 64px 16px; background: var(--white); border-radius: var(--r-lg); border: 1.5px dashed var(--line); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--muted); }
.empty h2 { font-size: 1.5rem; margin-bottom: 8px; max-width: none; }
.empty p { color: var(--muted); }
.code-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.code-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 14px 18px 14px 14px; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.code-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ink); }
.code-thumb { width: 96px; height: 96px; border-radius: var(--r-sm); background: var(--paper); padding: 6px; overflow: hidden; }
.code-thumb img { width: 100%; height: 100%; transition: transform .3s var(--ease); }
.code-card:hover .code-thumb img { transform: scale(1.03); }
.code-card.is-off .code-thumb img { filter: grayscale(1); opacity: .55; }
.code-main h2 { font-size: 1.15rem; margin: 0 0 2px; max-width: none; letter-spacing: -.01em; }
.code-main h2 a { text-decoration: none; }
.code-main h2 a:hover { text-decoration: underline; }
.code-sum { margin: 0 0 8px; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-meta { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.code-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); font-size: 12.5px; font-weight: 650; }
.chip-volt { background: var(--volt); }
.chip-ok { background: var(--ok-bg); color: #08532b; }
.chip-bad { background: var(--bad-bg); color: #7a150f; }

.detail { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.detail-qr { display: grid; gap: 16px; position: sticky; top: 84px; }
.big-qr { width: 100%; height: auto; aspect-ratio: 1; background: var(--white); border-radius: var(--r); border: 1.5px solid var(--line); padding: 14px; }
.big-qr.is-off { filter: grayscale(1); opacity: .5; }
.dl-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dl-row .btn { padding-inline: 6px; }
.facts { display: grid; gap: 0; margin: 0 0 24px; background: var(--white); border-radius: var(--r); border: 1.5px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; word-break: break-word; }
.clip { display: block; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.inline-form .field { margin: 0; }
.inline-form .grow { flex: 1; min-width: 220px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpis-6 { grid-template-columns: repeat(6, 1fr); }
.kpi { background: var(--white); border-radius: var(--r); border: 1.5px solid var(--line); padding: 16px; display: grid; gap: 2px; }
.kpi b { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--muted); }
.chart { margin: 0 0 24px; background: var(--white); border-radius: var(--r); border: 1.5px solid var(--line); padding: 16px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis { stroke: var(--line); stroke-width: 1.5; }
.chart .bar { fill: var(--ink); transition: fill .15s; }
.chart .bar:hover { fill: var(--volt-deep); }
.chart .tick { font: 500 11px var(--body); fill: var(--muted); }
.breakdowns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.breakdown { background: var(--white); border-radius: var(--r); border: 1.5px solid var(--line); padding: 16px; }
.breakdown h3 { font-size: 1rem; margin-bottom: 10px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(70px, 1fr) 2fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bars i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--w), var(--paper-2) var(--w)); }
.bars b { font-variant-numeric: tabular-nums; }
.danger-zone { margin-top: 36px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-all { grid-column: 1 / -1; }
.card-danger { border-color: #e7b8b3; }
.notfound { padding: clamp(64px, 12vw, 160px) 0; }
.big-icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--muted); }
.err-code { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 3rem + 6vw, 8rem); letter-spacing: -.05em; line-height: 1; margin: 0 0 12px; }
.legal h2 { font-size: 1.4rem; margin: 32px 0 10px; max-width: none; }
.legal p { max-width: 68ch; color: #33362F; }

/* ---- Fot --------------------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--white); padding: 64px 0 40px; border-top: 1px solid var(--line-dark); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-word { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 2rem + 5vw, 6.5rem); letter-spacing: -.05em; line-height: .9; margin: 0 0 16px; color: var(--white); }
.foot-word span { color: var(--volt); }
.foot-note { color: var(--muted-on-dark); max-width: 30ch; }
.foot-col { display: grid; gap: 4px; align-content: start; }
.foot-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-on-dark); font-family: var(--body); font-weight: 650; margin-bottom: 10px; }
.foot-col a { color: var(--white); text-decoration: none; padding: 6px 0; min-height: 36px; display: inline-flex; align-items: center; opacity: .86; width: fit-content; background-image: linear-gradient(var(--volt), var(--volt)); background-repeat: no-repeat; background-size: 0 2px; background-position: 0 calc(100% - 4px); transition: opacity .15s, background-size .2s var(--ease); }
.foot-col a:hover { opacity: 1; background-size: 100% 2px; }

/* ---- Responsivt ---------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .gen-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .formats-list { grid-template-columns: repeat(3, 1fr); }
  .kpis-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .nav { position: fixed; inset: 64px 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; margin: 0; border-bottom: 1px solid var(--line-dark); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s var(--ease); max-height: calc(100vh - 64px); overflow-y: auto; }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 8px; font-size: 17px; min-height: 48px; border-bottom: 1px solid var(--line-dark); background: none; }
  .nav .lang { margin: 8px 0 0; border: 1px solid var(--line-dark); text-align: center; }
  .nav-only-small { display: block; }
  .menu-btn { display: block; }
  .hide-small { display: none; }
  .bar { gap: 12px; }
  .bar-end { margin-left: auto; }

  /* Generatorn: förhandsvisningen först, sedan formuläret, sist nedladdningen. */
  .types { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .gen-grid { grid-template-columns: 1fr; gap: 14px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap h2 { position: static; margin-bottom: 8px; }
  .gen-out { display: contents; }
  .out-preview { order: 1; background: var(--white); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
  .gen-panel { order: 2; }
  .out-actions { order: 3; background: var(--white); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
  .qr-stage { max-width: 260px; }
  .two-up, .plans, .account-grid, .breakdowns { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { padding: 28px 16px; grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
  .auth-qr { width: 120px; padding: 10px; }
  .auth-card { max-width: none; padding: 28px 16px 56px; }
  .detail { grid-template-columns: 1fr; }
  .detail-qr { position: static; max-width: 420px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .code-card { grid-template-columns: 72px minmax(0, 1fr); }
  .code-thumb { width: 72px; height: 72px; }
  .code-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .mode { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .formats-list { grid-template-columns: repeat(2, 1fr); }
  .kpis, .kpis-6 { grid-template-columns: 1fr 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .tabs button { padding: 10px 10px; font-size: 14px; }
  .btn-lg { width: 100%; }
  .dl-row2 { grid-template-columns: 1fr; }
  .inline-form .btn { width: 100%; }
  .auth-art ul { display: none; }
  .auth-art { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .redirect .t3 { opacity: 1 !important; }
}

/* Utloggning i sidhuvudet */
.logout-form { margin: 0; display: inline-flex; }
.nav-logout-form { margin: 0; }
.nav-logout { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-dark); color: var(--white); font: 550 17px var(--body); padding: 14px 8px; min-height: 48px; cursor: pointer; }
.nav-logout:hover { color: var(--volt); }
