/* posly.se premiumsida. Mörk grund, grafit och orange ur docs/varumarke/posly. */
@font-face {
  font-family: 'Manrope';
  src: url('manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #0f1113;
  --bg-2: #171a1d;
  --bg-3: #1f2327;
  --ink: #f4f2ee;
  --ink-2: #a3a8ad;
  --ink-3: #6f757b;
  --line: rgba(244, 242, 238, 0.1);
  --orange: #e8590c;
  --orange-2: #ff7a2e;
  --light: #f6f4f1;
  --graphite: #22262a;
  --mint: #39b37a;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --side: max(20px, env(safe-area-inset-left, 0px));
  --side-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.inner { max-width: 1240px; margin: 0 auto; padding-left: var(--side); padding-right: var(--side-r); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 + .lead, h2 + .lead, h2 + p { margin-top: 24px; }
h2 { font-size: clamp(36px, 5.4vw, 72px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--orange); flex: none; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 560px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 4px;
  font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(244, 242, 238, 0.4); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Sidhuvud */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 61; background: var(--bg); }
.top { position: fixed; z-index: 60; top: env(safe-area-inset-top, 0px); left: 0; right: 0; transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(15, 17, 19, 0.86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.top .inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.top .logo img { height: 28px; width: auto; }
.top nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.top nav a:hover { color: var(--ink); }
.top nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; color: #fff; }

/* 1. Förvandlingen */
.film { background: var(--bg); padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
.film video { display: block; width: 100%; height: min(56.25vw, calc(100vh - 206px)); height: min(56.25vw, calc(100svh - 206px)); object-fit: contain; background: var(--bg); }
.film-rad { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; }
.film-rad .eyebrow { margin-bottom: 8px; }
.film-rad h1 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.025em; line-height: 1.15; }
.film-rad .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.film-ruta { position: relative; }
.film-paus { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 14px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: rgba(15, 17, 19, .78); color: var(--ink); font: 700 14px/1 var(--font); cursor: pointer; }
.film-paus:hover { background: var(--graphite); }
.film-paus[hidden] { display: none; }
.cap h2.stor { font-size: clamp(48px, 7vw, 104px); }
.cap h2.stor em { font-style: normal; color: var(--orange); }
.morph { position: relative; height: 420vh; }
.morph-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.morph-bg { position: absolute; inset: 0; }
.morph-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: .38; filter: blur(2px); transform: scale(1.08); transform-origin: 40% 50%; }
.morph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,17,19,.96) 0%, rgba(15,17,19,.82) 38%, rgba(15,17,19,.35) 70%, rgba(15,17,19,.6) 100%), linear-gradient(0deg, rgba(15,17,19,1) 0%, rgba(15,17,19,0) 30%); }
.morph-grid { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; max-width: 1240px; margin: 0 auto; padding-left: var(--side); padding-right: var(--side-r); }
.caps { position: relative; height: 420px; }
.cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(20px); transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.cap.on { opacity: 1; transform: none; pointer-events: auto; }
.cap.out { transform: translateY(-16px); }
.cap h2 { font-size: clamp(36px, 4.6vw, 64px); }
.cap .lead { margin-top: 22px; }
.cap .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 3px; background: rgba(244, 242, 238, 0.08); color: var(--ink); }
.scroll-hint { transition: opacity .4s; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--ink-3), transparent); }
.progress { position: absolute; left: max(20px, calc((100vw - 1240px) / 2 + 20px)); bottom: 32px; display: flex; gap: 8px; }
.progress i { width: 34px; height: 3px; border-radius: 2px; background: rgba(244,242,238,.16); overflow: hidden; position: relative; }
.progress i b { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }

.stage { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.device {
  flex: none; position: relative; width: 760px; height: 540px; border-radius: 34px; background: #08090a; padding: 14px;
  box-shadow: 0 0 0 1.5px #2b2f34, inset 0 1px 0 rgba(255,255,255,.08), 0 80px 140px -40px rgba(0,0,0,.9), 0 0 120px rgba(232,89,12,.1);
  will-change: width, height, border-radius, transform;
}
.device .screen { position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: #0d0f11; }
.layer { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.stand { position: absolute; left: 50%; top: 100%; width: 84px; height: 150px; transform: translateX(-50%); background: linear-gradient(90deg, #15171a 0%, #3a3f45 38%, #5a6067 50%, #3a3f45 62%, #15171a 100%); opacity: 0; }
.stand::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 260px; height: 28px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #4a4f55, #1b1e21 60%); box-shadow: 0 24px 40px rgba(0,0,0,.7); }

/* Kassans skärm (huvudkassan) */
.pos { display: flex; height: 100%; font-size: 12px; color: var(--ink); }
.pos-rail { width: 62px; background: #08090a; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 0; border-right: 1px solid rgba(255,255,255,.05); }
.pos-rail img { width: 26px; }
.pos-rail i { width: 24px; height: 24px; border-radius: 6px; background: #1d2024; }
.pos-rail i.on { background: var(--orange); }
.pos-main { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pos-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.pos-top small { color: var(--ink-3); font-weight: 600; }
.pos-tabs { display: flex; gap: 6px; font-weight: 700; font-size: 11px; }
.pos-tabs span { padding: 7px 11px; border-radius: 3px; background: #1a1d20; color: var(--ink-2); }
.pos-tabs span.on { background: var(--light); color: var(--graphite); }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; min-height: 0; }
.pi { position: relative; border-radius: 6px; overflow: hidden; background: #1a1d20; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
.pi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0) 60%); }
.pi span { position: relative; z-index: 1; padding: 8px 9px; font-weight: 700; line-height: 1.2; }
.pi span small { display: block; color: #cfd2d5; font-weight: 600; }
.pi.hit { box-shadow: inset 0 0 0 2px var(--orange); }
.pos-order { width: 212px; background: #121417; padding: 16px 14px; display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.05); }
.pos-order b { font-size: 14px; }
.ol { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 600; font-variant-numeric: tabular-nums; }
.ol.tot { border: 0; font-weight: 800; font-size: 15px; margin-top: auto; }
.pay { background: var(--orange); color: #fff; text-align: center; padding: 13px 0; border-radius: 4px; font-weight: 800; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-bottom: 6px; }
.pay-row span { text-align: center; padding: 8px 0; border-radius: 3px; background: #1d2024; font-weight: 700; font-size: 10px; color: var(--ink-2); }

/* Mobil kassa */
.mob { padding: 46px 18px 18px; display: flex; flex-direction: column; gap: 10px; height: 100%; font-size: 13px; color: var(--ink); background: #0d0f11; }
.mob .who { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.mob .big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.mob .hero-img { height: 150px; border-radius: 10px; overflow: hidden; }
.mob .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.tap { margin-top: auto; border-radius: 10px; padding: 18px; background: #16191c; text-align: center; }
.tap .waves { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; border: 2px solid var(--orange); position: relative; }
.tap .waves::before, .tap .waves::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(232,89,12,.4); }
.tap .waves::after { inset: -20px; border-color: rgba(232,89,12,.18); }
.tap b { display: block; font-size: 18px; }
.tap small { color: var(--ink-3); }

/* Vanliga sektioner */
.sec { padding: 160px 0; position: relative; }
.sec-head { max-width: 820px; margin-bottom: 72px; }
.sec-head .lead { margin-top: 24px; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* 2. Restaurangerna */
.rest { position: relative; height: 320vh; }
.rest-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 76px; }
.rest-head { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.rest-head .lead { max-width: 520px; }
.track { display: flex; gap: 44px; margin-top: 52px; padding-left: max(20px, calc((100vw - 1240px) / 2 + 20px)); will-change: transform; }
.app { flex: 0 0 auto; text-align: center; }
.phone { --hojd: min(560px, 56svh, calc(100svh - 330px)); height: var(--hojd); width: calc(var(--hojd) * 0.487); border-radius: 48px; background: #08090a; padding: 11px; box-shadow: 0 0 0 1.5px #2b2f34, inset 0 1px 0 rgba(255,255,255,.08), 0 50px 100px -40px rgba(0,0,0,.9); }
.phone .scr { height: 100%; border-radius: 38px; overflow: hidden; background: var(--a-bg); color: var(--a-ink); display: flex; flex-direction: column; position: relative; }
.a-bar { display: flex; align-items: center; justify-content: space-between; padding: 44px 16px 10px; }
.a-bar b { font-size: 15px; letter-spacing: -.01em; }
.a-bar i { width: 30px; height: 30px; border-radius: 50%; background: var(--a-chip); }
.a-chips { display: flex; gap: 6px; padding: 4px 14px 12px; overflow: hidden; }
.a-chips span { flex: none; font-size: 11px; font-weight: 700; padding: 7px 12px; border-radius: var(--a-r, 99px); background: var(--a-chip); color: var(--a-ink); }
.a-chips span.on { background: var(--a-accent); color: #fff; }
.a-title { text-align: center; padding: 2px 16px 0; }
.a-title b { display: block; font-size: 20px; letter-spacing: -.02em; line-height: 1.15; }
.a-title small { color: var(--a-ink2); font-weight: 700; font-size: 15px; }
.a-img { flex: 1; min-height: 0; margin: 12px 0 0; position: relative; }
.a-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 16px; gap: 10px; }
.a-plus { width: 46px; height: 46px; border-radius: 50%; background: var(--a-ink); color: var(--a-bg); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; }
.a-cart { flex: 1; height: 46px; border-radius: 99px; background: var(--a-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.app p { margin-top: 18px; font-weight: 700; }
.app p small { display: block; color: var(--ink-3); font-weight: 600; font-size: 13px; }

/* 3. Bilder i helbredd med text */
.wide-photo { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.wide-photo > img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.wide-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,17,19,1) 0%, rgba(15,17,19,.7) 40%, rgba(15,17,19,.15) 75%); }
.wide-photo .inner { position: relative; z-index: 1; width: 100%; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; padding-top: 2px; }
.steps b { display: block; font-size: 18px; letter-spacing: -.015em; }
.steps span { color: var(--ink-2); font-size: 15px; }

/* Köket: bongar som flyger in */
.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tickets.reveal .ticket { opacity: 0; transform: translateX(24px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.tickets.reveal.in { opacity: 1; transform: none; }
.tickets.reveal.in .ticket { opacity: 1; transform: none; }
.tickets .ticket:nth-child(2) { transition-delay: .08s; }
.tickets .ticket:nth-child(3) { transition-delay: .16s; }
.ticket { background: rgba(23,26,29,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 8px; padding: 16px; font-size: 13px; }
.ticket .t-top { display: flex; justify-content: space-between; font-weight: 800; }
.ticket .t-time { color: var(--orange); font-variant-numeric: tabular-nums; }
.ticket .t-time.ok { color: var(--mint); }
.ticket .t-sub { color: var(--ink-3); font-weight: 600; margin: 2px 0 10px; }
.ticket ul { list-style: none; margin: 0; padding: 0; }
.ticket li { padding: 5px 0; border-top: 1px solid var(--line); font-weight: 600; }
.ticket .t-done { margin-top: 10px; text-align: center; padding: 8px 0; border-radius: 4px; font-weight: 800; background: var(--mint); color: #08130d; }
.ticket .t-rush { display: inline-block; margin-left: 6px; font-size: 10px; padding: 2px 6px; border-radius: 3px; background: var(--orange); color: #fff; vertical-align: 1px; }

/* 4. Allt som ingår */
.feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.feat > div { background: var(--bg); padding: 30px 26px 34px; min-width: 0; transition: background-color .3s ease; }
.feat > div:hover { background: var(--bg-2); }
.feat b { display: block; font-size: 17px; letter-spacing: -.015em; margin-bottom: 8px; }
.feat span { color: var(--ink-2); font-size: 15px; }
.feat .soon { display: block; margin-top: 14px; font-size: 11px; font-weight: 700; color: var(--orange); }
.feat-group { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 48px 0 16px; }

/* 5. AI */
.ai { position: relative; height: 220vh; }
.ai-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; width: 100%; }
.chat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 440px; }
.chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.chat-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.msg { padding: 12px 15px; border-radius: 12px; font-size: 15px; max-width: 86%; opacity: 0; transform: translateY(16px); will-change: opacity, transform; }
.msg.q { align-self: flex-end; background: #2c3136; color: var(--ink); border-bottom-right-radius: 4px; }
.msg.a { background: var(--bg-3); border-bottom-left-radius: 4px; }
.msg.a small { display: block; margin-top: 8px; color: var(--ink-3); font-size: 12px; }
.msg .ok { color: var(--mint); font-weight: 700; }
.ai-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.ai-list li { padding-left: 18px; border-left: 2px solid var(--orange); }
.ai-list b { display: block; font-size: 17px; }
.ai-list span { color: var(--ink-2); font-size: 15px; }

/* 6. Kundklubb */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tier { border-radius: 16px; padding: 30px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; position: relative; overflow: hidden; }
.tier::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 180%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); transform: rotate(8deg); }
.tier.t1 { background: linear-gradient(140deg, #9aa0a6, #4d5258); }
.tier.t2 { background: linear-gradient(140deg, #f07a2f, #9c3a06); }
.tier.t3 { background: #0a0b0c; box-shadow: inset 0 0 0 1px rgba(214,220,226,.28), inset 0 1px 0 rgba(255,255,255,.18); }
.tier b { font-size: 26px; letter-spacing: -.03em; }
.tier .pts { font-size: 56px; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; line-height: 1; }
.tier span { opacity: .8; font-size: 14px; }
.club-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.club-points span { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }

/* 7. Kassaregistret */
.reg { position: relative; height: 190vh; }
.reg-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; width: 100%; }
.reg-facts { display: grid; gap: 14px; margin-top: 34px; }
.reg-facts > div { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.reg-facts > div::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--orange); }
.reg-facts b { display: block; }
.reg-facts span { color: var(--ink-2); font-size: 15px; }
.printer { width: 320px; margin: 0 auto; position: relative; }
.printer .slot { height: 34px; border-radius: 12px 12px 6px 6px; background: linear-gradient(#2d3136, #1b1e21); box-shadow: 0 10px 30px rgba(0,0,0,.6); position: relative; z-index: 2; }
.paper { width: 266px; margin: -8px auto 0; background: #fbfaf7; color: var(--graphite); font: 600 12px/1.65 var(--mono); padding: 0 18px; height: 0; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); position: relative; z-index: 1; }
.paper .rows { margin: 14px 0 8px; font-size: 11px; }
.paper .rows div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 1px 0; font-variant-numeric: tabular-nums; }
.paper .rows .c { display: block; text-align: center; }
.paper .rows .hr { display: block; border-top: 1px dashed #9aa0a5; margin: 7px 0; padding: 0; }
.paper .rows .b { font-weight: 800; }
.paper { -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; padding-bottom: 10px; }
.paper .r-logo { width: 92px; margin: 18px auto 0; }
.paper .r-ex { text-align: center; color: #8a8f94; font-size: 10px; }

/* 8. ZVSHI4 */
.family { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fam { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 28px; min-width: 0; display: flex; flex-direction: column; }
.fam .st { font-size: 12px; font-weight: 700; color: var(--mint); }
.fam .st.no { color: var(--ink-3); }
.fam b { display: block; font-size: 24px; letter-spacing: -.03em; margin: 14px 0 8px; }
.fam span { color: var(--ink-2); font-size: 15px; }
.fam.posly { background: var(--orange); border-color: var(--orange); color: #fff; }
.fam.posly .st, .fam.posly span { color: rgba(255,255,255,.85); }

/* Kontakt */
.contact { background: var(--graphite); color: var(--ink); border-top: 1px solid var(--line); }
.contact .inner { padding-top: 140px; padding-bottom: 140px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.contact h2 { font-size: clamp(40px, 6vw, 84px); }
.contact p { margin-top: 20px; font-size: 20px; color: var(--ink-2); max-width: 520px; }
.contact .card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 34px; }
.contact .card small { color: var(--ink-3); font-weight: 600; }
.contact .mail { display: block; font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.03em; text-decoration: none; margin: 6px 0 24px; overflow-wrap: anywhere; user-select: all; }
.contact .card .btn { width: 100%; }

/* Företaget och sidfot */
.company { border-top: 1px solid var(--line); }
.company .inner { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.company p { color: var(--ink-2); margin-top: 18px; max-width: 520px; }
.company dl { display: grid; grid-template-columns: 190px 1fr; margin: 0; border-top: 1px solid var(--line); }
.company dt, .company dd { padding: 15px 0; border-bottom: 1px solid var(--line); margin: 0; }
.company dt { color: var(--ink-3); font-size: 15px; }
.company dd { font-weight: 700; }
.english { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
.english h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 10px; }
.english p { margin: 0; max-width: 860px; font-size: 16px; }
.foot { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.foot .inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 36px; padding-bottom: max(36px, env(safe-area-inset-bottom, 0px)); }
.foot img { height: 22px; width: auto; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.note { font-size: 13px; color: var(--ink-3); margin-top: 18px; }

/* Smalare skärmar */
@media (max-width: 1100px) {
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tickets .ticket:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .top nav a:not(.btn) { display: none; }
  .morph-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: stretch; padding-top: 96px; }
  .caps { height: 260px; }
  .cap h2.stor { font-size: 44px; }
  .cap h2 { font-size: 32px; }
  .cap .lead { font-size: 16px; margin-top: 12px; }
  .cap .ctas { margin-top: 18px; }
  .chips { display: none; }
  .morph-bg::after { background: linear-gradient(0deg, rgba(15,17,19,.92), rgba(15,17,19,.75)); }
  .scroll-hint { display: none; }
  .wide-photo .inner, .ai-grid, .reg-grid, .contact .inner, .company .inner { grid-template-columns: minmax(0, 1fr); }
  .sec { padding: 110px 0; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .ai-text .lead, .ai-list { display: none; }
  .reg-facts { display: none; }
  .chat { min-height: 380px; }
  .phone { border-radius: 42px; }
  .phone .scr { border-radius: 33px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .rest-head .lead { display: none; }
  .track { margin-top: 28px; }
  .feat, .family, .tickets { grid-template-columns: minmax(0, 1fr); }
  .tickets .ticket:nth-child(2) { display: none; }
  .company dl { grid-template-columns: minmax(0, 1fr); }
  .company dt { padding-bottom: 0; border-bottom: 0; }
  .company dd { padding-top: 2px; }
  .top .logo img { height: 24px; }
  .wide-photo .inner { padding-bottom: 72px; }
  .printer { width: 280px; }
  .paper { width: 236px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .msg { opacity: 1; transform: none; }
  .cap { transition: none; }
}

/* Påhittade restauranger i gästappen. Färgerna står här eftersom sajtens
   CSP inte tillåter style-attribut. */
.t-ember { --a-bg: #141210; --a-ink: #f4efe9; --a-ink2: #a89f96; --a-accent: #e8590c; --a-chip: #2a2520; }
.t-kumo  { --a-bg: #0b0c0e; --a-ink: #f2efe8; --a-ink2: #9a958c; --a-accent: #b8924a; --a-chip: #1c1e21; --a-r: 4px; }
.t-forno { --a-bg: #f6f0e7; --a-ink: #2a1d14; --a-ink2: #8a7564; --a-accent: #b93a26; --a-chip: #ebe0d1; }
.t-lind  { --a-bg: #f3ede4; --a-ink: #3b1f4a; --a-ink2: #846f8c; --a-accent: #3b1f4a; --a-chip: #e7ddd0; --a-r: 6px; }
.t-bowl  { --a-bg: #eef3ee; --a-ink: #16302a; --a-ink2: #5d7169; --a-accent: #1f7a5c; --a-chip: #dbe7df; --a-r: 4px; }
.mt-auto { margin-top: auto; }

/* Ljus sektion som bryter den mörka rytmen */
.sec.light { background: var(--light); color: var(--graphite); }
.sec.light .lead, .sec.light .feat span { color: #5d6267; }
.sec.light .eyebrow, .sec.light .feat-group { color: #7a7f84; }
.sec.light .feat { background: #e2ded8; border-color: #e2ded8; }
.sec.light .feat > div { background: var(--light); }
.sec.light .feat > div:hover { background: #fff; }
.sec.light .feat .soon { color: #c94a08; }

/* Mobil: inga fastnålade AI- och kassaregistersektioner, allt innehåll syns */
@media (max-width: 900px) {
  .ai, .reg { height: auto; }
  .ai-stick, .reg-stick { position: static; height: auto; padding: 110px 0; }
  .ai-text .lead, .ai-list, .reg-facts { display: revert; }
  .ai-list, .reg-facts { display: grid; }
  .chat .msg { transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
  .chat.in .msg { opacity: 1; transform: none; }
  .chat.in .msg:nth-child(3) { transition-delay: .5s; } .chat.in .msg:nth-child(4) { transition-delay: 1s; } .chat.in .msg:nth-child(5) { transition-delay: 1.5s; }
  .progress { display: none; }
  .caps { height: 300px; }
  .morph-grid { padding-top: 100px; }
  .cap .ctas .btn-ghost { box-shadow: none; padding: 0 8px; text-decoration: underline; text-underline-offset: 4px; }
  .wide-photo { flex-direction: column; align-items: stretch; min-height: 0; }
  .wide-photo > img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; transform: none !important; }
  .wide-photo::after { display: none; }
  .wide-photo .inner { padding-top: 40px; padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .morph, .rest, .ai, .reg { height: auto; }
  .morph { overflow: hidden; }
  .morph-grid { display: block; height: auto; }
  .caps { position: static; height: auto; display: grid; gap: 56px; }
  .cap { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .stage, .progress, .scroll-hint { display: none; }
  .morph-stick, .rest-stick, .ai-stick, .reg-stick { position: static; height: auto; padding: 120px 0 60px; }
  .track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
  .app { scroll-snap-align: center; }
  .paper { height: auto !important; }
}

/* Riktiga skärmbilder ur gästappen */
.phone .scr.real { background: #000; }
.phone .scr.real img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Riktiga skärmbilder ur kassan i förvandlingen */
.layer.shot { background: #0b0b0b; }
.layer.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
#l-phone.shot img { object-position: center top; }

@media (max-width: 700px) {
  .film video { height: auto; aspect-ratio: 9 / 16; }
  .film-paus { top: 10px; bottom: auto; right: 10px; }
  .film-rad { padding-top: 20px; padding-bottom: 32px; gap: 20px; }
}

/* Låga telefoner: texten krymper så att enheten i scrollanimationen får plats. */
@media (max-width: 900px) and (max-height: 800px) and (prefers-reduced-motion: no-preference) {
  .morph-grid { padding-top: 76px; }
  .caps { height: 180px; }
  .cap h2 { font-size: 26px; }
  .cap h2.stor { font-size: 34px; }
  .cap .lead { font-size: 15px; line-height: 1.4; margin-top: 8px; }
  .cap .eyebrow { margin-bottom: 6px; }
}
@media (max-width: 900px) and (max-height: 600px) and (prefers-reduced-motion: no-preference) {
  .caps { height: 110px; }
  .cap .lead { display: none; }
}
@media (min-width: 901px) and (max-height: 560px) and (prefers-reduced-motion: no-preference) {
  .morph-grid { grid-template-rows: minmax(0, 1fr); }
  .stage { min-height: 0; }
  .caps { height: 240px; }
  .cap h2 { font-size: 30px; }
  .cap h2.stor { font-size: 40px; }
  .cap .lead { font-size: 15px; margin-top: 8px; }
  .chips, .progress, .scroll-hint { display: none; }
}
/* Låga fönster: AI och kassaregister får inte plats fastnålade under sidhuvudet, så de skrollar som vanligt. */
@media (min-width: 901px) and (max-height: 820px) {
  .ai, .reg { height: auto; }
  .ai-stick, .reg-stick { position: static; height: auto; padding: 110px 0; }
  .chat .msg { transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
  .chat.in .msg { opacity: 1; transform: none; }
  .chat.in .msg:nth-child(3) { transition-delay: .5s; } .chat.in .msg:nth-child(4) { transition-delay: 1s; } .chat.in .msg:nth-child(5) { transition-delay: 1.5s; }
}
@media (max-height: 820px) {
  .rest-head .lead { display: none; }
  .track { margin-top: 28px; }
}
