/* booqy.se - the bong rail.
   Oxblood ground, a steel ticket rail, thermal-paper tickets carrying the
   content. Bricolage Grotesque is the display voice, Plus Jakarta Sans
   carries everything else, a book serif sets the eyebrows. */

@font-face {
  font-family: "Martian Mono";
  src: url("/assets/fonts/martian-mono.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-800-latin-ext.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-800-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Off-white, never pure white (owner, 2026-11-13): snow for surfaces, text on dark
     fills and glass highlights; paper (#fbf8f3, set in the glass room) for tickets. */
  --snow: #fdfaf6;
  --snow-rgb: 253 250 246;
  --ox-950: #1a120e;
  --ox-900: #1a120e;
  --ox-800: #1a120e; /* dark brand blocks (round buttons, badges, phone headers) */
  /* the wall: light first (owner, 2026-10-30). Text roles flip inside .is-dark */
  --wall: #d5c4ae;
  --wall-rgb: 213 196 174;
  --wash: 26 18 14;
  --ox-700: #4a4a46;
  --ox-600: #6b4a2e;
  --on-ox: #1a120e;
  --on-ox-2: #4a4a46;
  --on-ox-3: #4a4a46;

  --paper: #d5c4ae;
  --paper-2: #a88462;
  --paper-line: #a88462;
  --print: #1a120e;
  --print-2: #4a4a46;
  --accent: #4a4a46;

  --steel: #a88462;
  --steel-hi: #d5c4ae;
  --steel-lo: #6b4a2e;

  /* Typography: three families, one role each (owner decision 2026-10-30).
     Display: h1, h2 and big numbers, never below 24px. Serif: eyebrows and
     quotes only, never body or UI (Athelas on Mac and iOS, Newsreader
     elsewhere). Sans: everything else. Mono: only the printed receipt text
     inside tickets (.print), the thermal-printer look (owner decision
     2026-10-31). */
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: Athelas, Newsreader, Georgia, serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* fluid size scale, 375px to 1440px */
  --text-xs: clamp(0.75rem, 0.73rem + 0.08vw, 0.8rem);
  --text-sm: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --text-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --text-3xl: clamp(1.9rem, 1.2rem + 2.6vw, 3.3rem);
  --text-4xl: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem);
  --text-5xl: clamp(2.7rem, 0.9rem + 6.2vw, 5.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  /* motion: one set of curves and durations for the whole site (ux-motion).
     Enter with ease-out, leave with ease-in (faster than the entry), move on
     screen with ease-in-out; the spring overshoots a little, never more. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.22, 0.64, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1); /* the paper rolls out fast, then eases to a stop */
  --t-press: 90ms;   /* squeeze on press */
  --t-hover: 140ms;  /* hover answers */
  --t-ui: 220ms;     /* menus, disclosures, small switches */
  --t-panel: 320ms;  /* larger panels and scenes */
  --t-exit: 120ms;   /* closing: about half the opening */
  --t-peak: 900ms;   /* only the one-time paper moments */
  --tooth: 12px;
  color-scheme: only light; /* one light look, also when the OS is dark */
}

* { box-sizing: border-box; }
/* --head-h: the sticky header's height (booqy.js), so anchors land below it */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h, 72px) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--on-ox);
  font: 400 var(--text-body)/1.6 var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #d5c4ae; }
.paper ::selection, .ticket ::selection { background: var(--print); color: var(--paper); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
/* The cursor never changes: see the last rule of this file. Keyboard focus
   keeps its visible outline. */

:focus-visible { outline: 3px solid var(--on-ox); outline-offset: 3px; }
.ticket :focus-visible, .paper :focus-visible { outline-color: var(--accent); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--paper); color: var(--print); padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* base elements pick up their role from the tokens */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); }
h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-xl); line-height: 1.2; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; }
input, select, textarea { color: inherit; background-color: transparent; border-color: currentColor; }
b, strong { font-weight: 600; }
hr { color: inherit; }
/* inline illustrations: an unset fill falls back to print ink, not black */
svg:not([fill]) { fill: var(--print); }
p { margin: 0; }
.lede { font-size: var(--text-lg); line-height: 1.55; max-width: 62ch; }

/* --- Header ---------------------------------------------------------------- */

/* The header stays on screen so "Boka en demo" is always one tap away. Once
   the page has scrolled (.is-stuck, booqy.js) it casts a shadow, and on
   phones and tablets the page sub-nav fades out: the header keeps its height
   so nothing jumps, and its oxblood shrinks to the top row (--head-h). */
.site-head { position: sticky; top: 0; z-index: 30; }
.site-head.is-stuck { filter: drop-shadow(0 6px 8px rgb(26 18 14 / 0.32)); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 14px; }
.brand { display: inline-flex; color: var(--on-ox); flex: none; }
.brand svg { width: 88px; height: auto; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.login { text-decoration: none; font-weight: 600; font-size: var(--text-base); padding: 9px 12px; color: var(--on-ox-2); }

/* buttons: the thermal printer's reversed block */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-md);
  font: 600 var(--text-base)/1 var(--font-sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: default;
  transition: transform var(--t-hover) var(--ease-out), scale var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-print { background: var(--print); color: var(--paper); }
.btn-print:active { transform: translateY(0); }
.btn-paper { background: var(--on-ox); color: var(--wall); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: var(--text-base); }
.textlink {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;
}
.textlink svg { width: 16px; height: 16px; }

/* --- The rail and its tickets ------------------------------------------------ */

.rail-zone { position: relative; padding-top: 6px; }
.rail {
  position: relative; z-index: 6; height: 26px; margin: 0 calc(var(--gutter) * -0.5);
  border-radius: 3px;
  background: var(--steel);
  box-shadow: 0 8px 16px -8px rgb(26 18 14 / 0.55);
}
.rail::after { /* the slot the tickets slide into */
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: var(--steel-lo);
}

.hang { position: relative; transform-origin: top center; filter: drop-shadow(0 0 1px rgb(107 74 46 / 0.7)) drop-shadow(0 14px 18px rgb(58 36 24 / 0.22)) drop-shadow(0 2px 3px rgb(58 36 24 / 0.16)); }

.ticket {
  position: relative; background: var(--paper); color: var(--print);
  padding: 28px 26px calc(26px + var(--tooth));
  -webkit-mask:
    conic-gradient(from -45deg at bottom, transparent, #1a120e 1deg 89deg, transparent 90deg) bottom / var(--tooth) calc(var(--tooth) / 2) repeat-x,
    linear-gradient(#1a120e 0 0) top / 100% calc(100% - var(--tooth) / 2 + 1px) no-repeat;
          mask:
    conic-gradient(from -45deg at bottom, transparent, #1a120e 1deg 89deg, transparent 90deg) bottom / var(--tooth) calc(var(--tooth) / 2) repeat-x,
    linear-gradient(#1a120e 0 0) top / 100% calc(100% - var(--tooth) / 2 + 1px) no-repeat;
}
.ticket::before { /* faint thermal grain + the paper's own edge tone */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(26 18 14 / 0.035), transparent 6%, transparent 94%, rgb(26 18 14 / 0.035));
}

.print {
  font-family: var(--font-mono); font-stretch: 87.5%; font-weight: 400;
  font-size: var(--text-sm); line-height: 1.6; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.print .h { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.print .red { color: var(--accent); }
.print .dim { color: var(--print-2); }
.print .rule { border: 0; border-top: 1.5px dashed var(--paper-line); margin: 10px 0; }
.print .row { display: flex; justify-content: space-between; gap: 12px; }
.print .row > :last-child { text-align: right; white-space: nowrap; }
.print .inv { background: var(--print); color: var(--paper); padding: 1px 6px; font-weight: 600; letter-spacing: 0.06em; }
.print .big { font: 800 var(--text-2xl)/1 var(--font-display); letter-spacing: -0.03em; }
.print ul { list-style: none; margin: 0; padding: 0; }

.stamp {
  display: inline-block; padding: 3px 8px 2px; border: 2px solid currentColor; border-radius: var(--r-md);
  font: 600 var(--text-xs)/1.2 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); transform: rotate(-4deg);
}
.stamp.ok { color: var(--print); }

.example { margin-top: 10px; font: 500 var(--text-xs)/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--print-2); }

/* --- Hero ---------------------------------------------------------------------- */

.hero { position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px); align-items: start; margin-top: -6px;
}
.hero-main { padding-top: 0; }
.hero-main .ticket { padding: clamp(30px, 3.4vw, 48px) clamp(24px, 3.4vw, 52px) calc(clamp(30px, 3vw, 44px) + var(--tooth)); }
.hero h1 {
  font-size: var(--text-3xl);
  line-height: 0.95; letter-spacing: -0.03em; color: var(--print);
}
.hero h1 em { font-style: normal; color: var(--ox-600); }
/* the h1 in two tiers: the search phrase as a ticket label on top, a dashed tear line, then the headline */
.hero h1 .eyebrow {
  display: block; margin-bottom: clamp(14px, 1.6vw, 20px); padding-bottom: clamp(10px, 1.2vw, 14px);
  border-bottom: 1.5px dashed var(--paper-line); color: var(--accent);
  font-size: var(--text-sm); font-weight: 400; letter-spacing: 0; line-height: 1.4;
}
.hero h1 em { display: block; }
.hero .lede { margin-top: clamp(18px, 2vw, 26px); color: var(--print-2); max-width: 54ch; }
.hero .lede strong { color: var(--print); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(22px, 2.4vw, 32px); }
.ticket-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: clamp(22px, 2.6vw, 34px); padding-top: 12px;
  border-top: 1.5px dashed var(--paper-line); color: var(--print-2);
}

.ticket-link { display: block; text-decoration: none; color: inherit; transition: translate var(--t-hover) var(--ease-out), scale var(--t-hover) var(--ease-out); }
.ticket .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font: 600 var(--text-base)/1.2 var(--font-sans); white-space: nowrap; color: var(--accent); }
.ticket .more svg { width: 16px; height: 16px; }

/* --- Sections ------------------------------------------------------------------- */

.band { padding: clamp(64px, 9vw, 128px) 0; }
.band-paper { color: var(--print); }
.band-paper .lede { color: var(--print-2); }
.band-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.band-head .lede { color: var(--on-ox-2); }
.band-paper .band-head .lede { color: var(--print-2); }

/* a standalone ticket on its own short rail */
.flow-ticket { max-width: 400px; width: 100%; justify-self: center; }
.flow-ticket .rail { margin: 0 -12px; height: 22px; }
.flow-ticket .hang { margin: 0 4px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 56ch; }
.ticks li { position: relative; padding-left: 30px; color: var(--on-ox); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 9px;
  border-left: 2.5px solid var(--on-ox-3); border-bottom: 2.5px solid var(--on-ox-3); transform: rotate(-45deg);
}
.band-paper .ticks li { color: var(--print); }
.band-paper .ticks li::before { border-color: var(--accent); }

/* wide paper tickets carrying whole sections */
.ticket.wide { padding: clamp(34px, 5vw, 72px) clamp(22px, 5vw, 72px) calc(clamp(34px, 5vw, 64px) + var(--tooth)); }
.ticket.wide .band-head h2 { color: var(--print); }
.ticket.wide .band-head .lede, .ticket.wide .lede { color: var(--print-2); }
.ticket.wide .ticks li { color: var(--print); }
.ticket.wide .ticks li::before { border-color: var(--accent); }
.ticket.wide h2 { color: var(--print); }

/* the restaurant's own site: a printed sheet on the rail */
.sheet { padding: 22px 0 calc(8px + var(--tooth)); }
.sheet .url { margin: 0 22px; }
.sheet .site-mock { padding-top: 18px; }
.own { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.url { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-md); background: var(--paper); font: 500 var(--text-sm)/1 var(--font-sans); color: var(--print-2); }
.url svg { width: 12px; height: 12px; color: var(--print-2); }
.lede-on { margin-top: 18px; color: var(--on-ox-2); }
.own .textlink { margin-top: 24px; }
.site-mock { padding: 26px 26px 30px; }
.site-mock .r-name { font-weight: 600; font-size: var(--text-xl); letter-spacing: -0.01em; }
.site-mock .r-tag { color: var(--print-2); margin-top: 4px; font-size: var(--text-base); }
.r-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.r-nav span { padding: 7px 12px; border: 1px solid var(--paper-line); border-radius: var(--r-pill); font-size: var(--text-sm); font-weight: 600; }
.r-nav span.on { background: var(--ox-800); border-color: var(--ox-800); color: var(--on-ox); }
.r-book { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.r-book div { border: 1px solid var(--paper-line); border-radius: var(--r-md); padding: 10px 12px; }
.r-book small { display: block; font-size: var(--text-xs); color: var(--print-2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.r-book b { display: block; margin-top: 2px; font-weight: 600; }
.r-times { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.r-times span { padding: 8px 12px; border-radius: var(--r-md); background: var(--paper-2); font: 600 var(--text-sm)/1 var(--font-sans); }
.r-times span.on { background: var(--print); color: var(--paper); }
.mock-note { margin-top: 12px; color: var(--on-ox-3); font: 500 var(--text-xs)/1.4 var(--font-sans); letter-spacing: 0.04em; }
.band-paper .mock-note { color: var(--print-2); }

/* money: a payout slip */
.money { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.money .flow-ticket { max-width: 380px; }

/* end-of-day report: the facts, printed */
.zreport { max-width: 640px; margin: 0 auto; }
.zreport .ticket { padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 44px) calc(34px + var(--tooth)); }
.zreport h2 { color: var(--print); font-size: var(--text-2xl); }
.zreport .print { font-size: var(--text-sm); margin-top: 18px; }
.zreport .print li { display: grid; grid-template-columns: 15ch minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1.5px dashed var(--paper-line); }
.zreport .print li span:first-child { color: var(--print); font-weight: 600; }
.zreport .print li span:last-child { color: var(--print-2); }

/* messages section (what Booqy sends) */
.msgs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.msgs .print li { padding: 6px 0; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1.5px dashed rgb(var(--wash) / 0.25); }
.faq details:last-child { border-bottom: 1.5px dashed rgb(var(--wash) / 0.25); }
.band-paper .faq details { border-color: var(--paper-line); }
.faq summary {
  list-style: none; cursor: default; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 600; font-size: var(--text-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform 180ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; max-width: 68ch; color: var(--on-ox-2); }
.band-paper .faq .answer { color: var(--print-2); }
.faq .answer p + p { margin-top: 10px; }
/* the answer slides open with the plus and closes faster; browsers without
   ::details-content keep the instant open */
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq details, .faq-more { interpolate-size: allow-keywords; }
    .faq details::details-content, .faq-more::details-content {
      block-size: 0; opacity: 0; overflow: clip;
      transition: block-size var(--t-exit) var(--ease-in), opacity var(--t-exit) var(--ease-in), content-visibility var(--t-exit) allow-discrete;
    }
    .faq details[open]::details-content, .faq-more[open]::details-content {
      block-size: auto; opacity: 1;
      transition-duration: var(--t-ui); transition-timing-function: var(--ease-out);
    }
  }
}

/* closing ticket */
.close { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 9vw, 120px); }
.close .wrap { max-width: 900px; }
.close .ticket { text-align: left; padding: clamp(32px, 4.4vw, 56px) clamp(24px, 4.4vw, 60px) calc(clamp(32px, 4vw, 52px) + var(--tooth)); }
.close h2 { color: var(--print); font-size: var(--text-4xl); }
.close .lede { margin-top: 16px; color: var(--print-2); }

/* feature pages */
.page-hero .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.page-hero h1 { font-size: var(--text-3xl); }
.crumbs { margin: 0 0 18px; color: var(--print-2); }
.crumbs a { color: var(--print-2); }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.related a {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--r-md); text-decoration: none;
  font-weight: 600;
}
.related svg { width: 16px; height: 16px; }

/* legal */
.legal-wrap { padding: 8px 0 clamp(64px, 8vw, 110px); }
.legal { max-width: 820px; margin: 0 auto; }
.legal .ticket { padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 60px) calc(40px + var(--tooth)); }
/* Full pages (villkor, integritet, cookies, ladda-ner) are a slip of frosted
   glass like every ticket (see the glass room): rail, torn edge, the room
   shows through. */
.legal h1 { font-size: var(--text-3xl); line-height: 0.95; letter-spacing: -0.03em; color: var(--print); }
.legal h2 { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; font-size: var(--text-lg); margin: 34px 0 10px; color: var(--print); }
.legal p, .legal li { color: var(--print-2); max-width: 70ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0; display: grid; gap: 6px; }
.legal strong { color: var(--print); }
.legal .updated { margin-top: 10px; font: 500 var(--text-xs)/1.4 var(--font-sans); color: var(--print-2); }
.legal a { color: var(--accent); overflow-wrap: anywhere; }

/* 404 */
.lost { padding: 20px 0 clamp(64px, 9vw, 120px); }
.lost .wrap { max-width: 640px; }
.lost h1 { color: var(--print); font-size: var(--text-4xl); line-height: 0.95; }
.lost p { margin-top: 14px; color: var(--print-2); }

/* --- Footer ---------------------------------------------------------------------- */

.site-foot { color: var(--on-ox-2); padding: clamp(48px, 6vw, 80px) 0 36px; font-size: var(--text-base); }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font: 600 var(--text-xs)/1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ox-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-brand svg { width: 96px; height: auto; color: var(--on-ox); }
.foot-brand p { margin-top: 14px; max-width: 34ch; }
.foot-en { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(var(--wash) / 0.12); font-size: var(--text-sm); color: var(--on-ox-3); max-width: 90ch; }
.foot-bottom { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--text-sm); color: var(--on-ox-3); }

/* --- Motion: the tickets print in, once ----------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-stamp] .stamp { animation: thunk 320ms var(--ease-out) both; }
}
/* once the paper is out it swings a little on the rail and settles */
@keyframes drop {
  0% { rotate: 0deg; }
  55% { rotate: -0.7deg; }
  80% { rotate: 0.25deg; }
  100% { rotate: 0deg; }
}
/* the paper feeds out of the rail's slot: the torn edge comes first and the
   print rides down with the paper. The clip keeps everything above the slot
   hidden; it moves exactly against the slide, so the slot line stays put. */
@keyframes printout {
  0% { transform: translateY(-100%); clip-path: inset(100% 0 0 0); }
  100% { transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes thunk {
  0% { scale: 1.6; opacity: 0; }
  60% { scale: 0.94; opacity: 1; }
  100% { scale: 1; opacity: 1; }
}

/* --- Responsive ------------------------------------------------------------------ */

@media (max-width: 1060px) {
  .nav { display: none; }
  .hero-grid, .page-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .own, .money, .msgs { grid-template-columns: minmax(0, 1fr); }
  .flow-ticket { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: var(--text-base); }
  .brand svg { width: 76px; }
  .login { display: none; }
  .head-actions .btn { min-height: 40px; padding: 0 14px; font-size: var(--text-sm); }
  .ticket { padding-left: 20px; padding-right: 20px; }
  .actions .btn { width: 100%; }
  .r-book { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .print { font-size: var(--text-xs); }
  .zreport .print li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* mobile page nav (the feature pages, one swipe) */
.subnav { display: none; }
@media (max-width: 1060px) {
  .subnav { display: block; border-top: 1px solid rgb(var(--wash) / 0.1); }
  .subnav ul { list-style: none; margin: 0; padding: 8px var(--gutter); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .subnav a { display: block; white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: var(--r-md); font-weight: 600; font-size: var(--text-base); color: var(--on-ox-2); }
  .subnav a[aria-current="page"] { color: var(--on-ox); background: rgb(var(--wash) / 0.08); }
  .subnav { transition: opacity 180ms var(--ease-out), visibility 180ms; }
  .site-head.is-stuck { pointer-events: none; }
  .site-head.is-stuck .wrap { pointer-events: auto; }
  .site-head.is-stuck .subnav { opacity: 0; visibility: hidden; }
}
@media (max-width: 1060px) and (prefers-reduced-motion: reduce) { .subnav { transition: none; } }

h2 .line { display: block; }
.zreport ul.print { list-style: none; margin-left: 0; padding: 0; }

/* --- Boka en demo (/demo) --------------------------------------------------------
   One wide ticket carries three steps, printed one at a time: pick a day, pick
   a time, leave your details. A finished step shrinks to one printed line with
   "Ändra"; the next step prints in below it. A small ticket beside it prints the
   chosen day and time as they are picked, like a booking slip. */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.demo-wrap { padding: 8px 0 clamp(64px, 8vw, 110px); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: -6px; }
.demo-main .ticket { padding: clamp(28px, 3.6vw, 52px) clamp(22px, 3.6vw, 52px) calc(clamp(30px, 3vw, 44px) + var(--tooth)); }
.demo-main h1 { font-size: var(--text-3xl); line-height: 0.95; letter-spacing: -0.03em; color: var(--print); }
.demo-main h1 em { font-style: normal; color: var(--ox-600); }
.demo-main .lede { margin-top: 16px; color: var(--print-2); max-width: 58ch; }
.demo-noscript { margin-top: 24px; color: var(--print); }
.demo-noscript a { color: var(--accent); }

.demo-rail { margin-top: clamp(26px, 3vw, 38px); }

/* the step rail: where you are, like the perforation between receipts */
.demo-rail { list-style: none; margin-bottom: 26px; padding: 0 0 22px; display: flex; align-items: center; border-bottom: 1.5px dashed var(--paper-line); }
.demo-rail-step { display: flex; align-items: center; gap: 10px; min-width: 0; font: 600 var(--text-base)/1.2 var(--font-sans); color: var(--print-2); }
.demo-rail-step + .demo-rail-step { flex: 1 1 auto; }
.demo-rail-step + .demo-rail-step::before { content: ""; flex: 1 1 14px; min-width: 12px; height: 0; margin: 0 12px; border-top: 1.5px dashed var(--paper-line); transition: border-color 240ms var(--ease-out); }
.demo-rail-step.is-done + .demo-rail-step::before { border-top-style: solid; border-top-color: var(--print); }
.demo-rail-no {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--r-md);
  background: var(--paper-2); color: var(--print-2); box-shadow: inset 0 0 0 1.5px var(--paper-line);
  font: 600 var(--text-xs)/1 var(--font-sans); letter-spacing: 0.06em;
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), box-shadow 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.demo-rail-no svg, .demo-num svg { display: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.demo-rail-step.is-current .demo-rail-no { background: var(--print); color: var(--paper); box-shadow: none; transform: scale(1.1); }
.demo-rail-step.is-current { color: var(--print); font-weight: 600; }
.demo-rail-step.is-done .demo-rail-no { background: var(--paper); color: var(--accent); box-shadow: inset 0 0 0 2px var(--print); }
.demo-rail-step.is-done .demo-rail-no b, .demo-step.is-done .demo-num b { display: none; }
.demo-rail-step.is-done .demo-rail-no svg, .demo-step.is-done .demo-num svg { display: block; }
.demo-rail-step.is-done { color: var(--print); }
.demo-rail-label { white-space: nowrap; }

/* steps: a fieldset each; current = open, done = one printed line */
.demo-step { margin: 0; padding: 0; border: 0; min-width: 0; outline: none; scroll-margin-top: 20px; }
.demo-step[hidden] { display: none; }
.demo-step + .demo-step:not([hidden]) { margin-top: 26px; padding-top: 22px; border-top: 1.5px dashed var(--paper-line); }
/* float the legend so it sits inside the fieldset, not on its border */
.demo-step legend {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px;
  font-weight: 600; font-size: var(--text-xl); letter-spacing: -0.01em; color: var(--print);
}
.demo-step legend + * { clear: both; }
.demo-num { display: none; place-items: center; flex: none; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--r-md); font: 600 var(--text-sm)/1 var(--font-sans); letter-spacing: 0.08em; background: var(--print); color: var(--paper); }
.demo-step.is-done .demo-num { display: grid; background: var(--paper); color: var(--accent); box-shadow: inset 0 0 0 2px var(--print); }
.demo-title .when-done, .demo-sum { display: none; }
.demo-tz { font: 500 var(--text-xs)/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--print-2); margin-left: 6px; }
.demo-intro { color: var(--print-2); margin: -4px 0 18px; max-width: 60ch; }

.demo-step.is-done legend { margin-bottom: 0; font-size: var(--text-base); font-weight: 600; color: var(--print-2); }
.demo-step.is-done .demo-title .when-open { display: none; }
.demo-step.is-done .demo-title .when-done { display: inline; }
.demo-step.is-done .demo-sum { display: flex; align-items: center; gap: 14px; margin-left: auto; min-width: 0; font-size: var(--text-base); font-weight: 600; color: var(--print); }
.demo-step.is-done .demo-sum > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-step.is-done .demo-body { display: none; }
.demo-change {
  flex: none; margin: 0; padding: 8px 14px; border: 0; border-radius: var(--r-pill); cursor: default;
  background: var(--liquid-sheen), var(--field-bg); color: var(--print); box-shadow: var(--liquid-edge), inset 0 0 0 1px var(--field-border);
  font: 600 var(--text-sm)/1 var(--font-sans);
  transition: box-shadow 140ms var(--ease-out), background-color 140ms var(--ease-out);
}
.demo-change:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* day and time choices: printed slips, the chosen one in reversed print */
.demo-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.demo-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.choice {
  display: grid; justify-items: center; gap: 2px; margin: 0; padding: 10px 6px 9px; border: 0; border-radius: var(--r-md); cursor: default;
  background: var(--glass-card); color: var(--print); box-shadow: inset 0 0 0 1.5px var(--ox-600);
  font: 400 var(--text-sm)/1.6 var(--font-sans); font-variant-numeric: tabular-nums; text-align: center;
  transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out), box-shadow 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.choice[aria-checked="true"] { background: var(--print); color: var(--paper); }
.choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice .wd { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.choice .dd { font: 800 var(--text-2xl)/1 var(--font-display); letter-spacing: -0.03em; }
.choice .mm { font-size: var(--text-xs); color: var(--print-2); }
.choice[aria-checked="true"] .mm { color: var(--paper-line); }
.choice-time { padding: 12px 6px; font-size: var(--text-sm); font-weight: 600; }

/* fields: visible glass wells (owner, 2026-11-13: fields were invisible in
   Safari): off-white glass, a brown 1px border, a soft inner shadow, a ring on
   focus and an AA placeholder. Same tokens as the console's .input. */
.demo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--text-base); color: var(--print); }
.field label span { color: var(--accent); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field-border); border-radius: var(--r-md);
  background-color: var(--field-bg); color: var(--print); box-shadow: var(--field-inset);
  font: 400 var(--text-base)/1.4 var(--font-sans); caret-color: var(--accent);
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out), background-color 140ms var(--ease-out);
}
.field textarea { min-height: 112px; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--field-border-hover); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--print); background-color: var(--field-bg-focus); box-shadow: var(--field-inset), 0 0 0 3px var(--field-ring); }
.field input:disabled, .field textarea:disabled, .field select:disabled { border-style: dashed; background-color: transparent; box-shadow: none; opacity: 0.6; }
.field [aria-invalid="true"] { border-color: var(--accent); box-shadow: var(--field-inset), inset 0 0 0 1px var(--accent); }
/* a press on the inactive booking button: the missing fields pulse once */
.field .is-missing[aria-invalid="true"] { animation: field-missing 300ms var(--ease-move); }
@keyframes field-missing {
  0%, 100% { translate: 0 0; }
  25% { translate: -6px 0; } 50% { translate: 5px 0; } 75% { translate: -3px 0; }
}
/* the booking button until every required field is filled: still pressable, so
   a press can point to what is missing */
.demo-submit .btn[aria-disabled="true"] { opacity: 0.42; box-shadow: none; }
.demo-submit .btn[aria-disabled="true"]:hover { translate: none; }
@media (prefers-reduced-motion: reduce) { .field .is-missing[aria-invalid="true"] { animation: none; } }
.tel-field { display: flex; }
.tel-field-cc {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--r-md) 0 0 var(--r-md);
  border: 1px solid var(--field-border); border-right: 0;
  background: var(--liquid-sheen), var(--field-bg-focus); box-shadow: var(--liquid-edge); color: var(--print); font: 600 var(--text-sm)/1 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tel-field-cc .flag { font-size: var(--text-body); line-height: 1; font-family: var(--font-sans); }
.tel-field input { border-radius: 0 var(--r-md) var(--r-md) 0; }
.field-hint { font-size: var(--text-sm); color: var(--print-2); }
.field-error, .form-error { font-size: var(--text-sm); font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.demo-body > .field-error { margin-top: 10px; }
.form-error { margin-top: 16px; }
.form-error a { color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.demo-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; padding-top: 26px; border-top: 1.5px dashed var(--paper-line); }
.demo-picked { flex-basis: 100%; color: var(--print); font-weight: 600; }
@media (min-width: 1061px) { .demo-picked { display: none; } }
.demo-assure { flex-basis: 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--print); font-size: var(--text-base); }
.demo-assure li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.demo-assure svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.demo-legal { flex: 1 1 260px; font-size: var(--text-sm); color: var(--print-2); max-width: 52ch; }
.demo-legal a { color: var(--accent); }

/* busy: the button keeps its size, the icon gives way to a spinner */
.btn-spin { display: none; }
.btn[aria-busy="true"] { background: var(--print); transform: none; box-shadow: none; }
.btn[aria-busy="true"] .btn-icon { display: none; }
.btn[aria-busy="true"] .btn-spin { display: block; }
.demo-form[aria-busy="true"] .field { opacity: 0.6; pointer-events: none; }

/* done: the stamp, the slip and a little paper rain */
.demo-done { position: relative; outline: none; }
.demo-done-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.demo-done h2 { color: var(--print); font-size: var(--text-2xl); }
.demo-done .stamp { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); padding: 5px 10px 4px; }
.stamp-check { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.demo-done-slip { margin-top: 22px; padding: 18px 20px 20px; border: 1.5px dashed var(--paper-line); border-radius: var(--r-md); background: var(--paper-2); }
.demo-done-slip .big { margin-top: 4px; font-size: var(--text-2xl); }
.demo-done-slip p + p { margin-top: 4px; }
.demo-done-more { margin-top: 22px; }
.confetti { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: calc((var(--i) + 0.5) * (100% / 8)); width: 8px; height: 5px; border-radius: 1px; background: var(--accent); opacity: 0; }
.confetti i:nth-child(3n) { background: var(--print); }
.confetti i:nth-child(3n + 1) { background: var(--paper-line); }
.confetti i:nth-child(4n) { width: 5px; height: 8px; }

/* the booking slip */
.demo-side { position: sticky; top: calc(var(--head-h, 72px) + 24px); }
.demo-side .ticket { padding: 26px 22px calc(22px + var(--tooth)); }
.demo-side .big { margin-top: 2px; font-size: 2.1em; }
.demo-side [data-sum-company] { max-width: 15ch; overflow: hidden; text-overflow: ellipsis; }
.demo-note { font: 400 var(--text-sm)/1.45 var(--font-sans); color: var(--print-2); }

/* motion: stamps, print-ins and the paper rain, all one-shot; settled under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  /* the paper prints once per visit (html.printed after that, demo.html) */
  .js:not(.printed) .demo-main.hang { animation: drop var(--t-peak) var(--ease-move) backwards; }
  .js:not(.printed) .demo-main .ticket { animation: printout var(--t-peak) var(--ease-expo) backwards; }
  .js:not(.printed) .demo-side .hang { animation: drop var(--t-peak) var(--ease-move) 160ms backwards; }
  .js:not(.printed) .demo-side .ticket { animation: printout 800ms var(--ease-expo) 160ms backwards; }
  .choice.stamped { animation: stamped 360ms var(--ease-out) both; }
  .demo-step.enter { animation: printout 560ms var(--ease-expo) backwards; }
  .demo-step.is-done.enter { animation-duration: 420ms; }
  .demo-step.is-done.enter .demo-num svg, .demo-rail-step.is-done.enter .demo-rail-no svg { animation: thunk 420ms var(--ease-out) 200ms backwards; }
  .demo-step.is-current.enter .demo-intro, .demo-step.is-current.enter .field, .demo-step.is-current.enter .demo-submit { animation: step-in 360ms var(--ease-out) backwards; animation-delay: calc(160ms + var(--i, 0) * 45ms); }
  .demo-step.enter .field:nth-child(1) { --i: 1; } .demo-step.enter .field:nth-child(2) { --i: 2; } .demo-step.enter .field:nth-child(3) { --i: 3; }
  .demo-step.enter .field:nth-child(4) { --i: 4; } .demo-step.enter .field:nth-child(5) { --i: 5; } .demo-step.enter .field:nth-child(6) { --i: 6; }
  .demo-step.enter .demo-submit { --i: 7; }
  .demo-side .big.pop { animation: pop 320ms var(--ease-out) both; }
  .demo-done.enter { animation: printout 680ms var(--ease-expo) backwards; }
  /* the peak: paper, then the stamp lands and its check draws, then a short paper rain */
  .demo-done.enter .stamp { animation: thunk 320ms var(--ease-out) 380ms backwards; }
  .demo-done.enter .stamp-check path { stroke-dasharray: 24; animation: check-draw 280ms var(--ease-out) 620ms backwards; }
  .demo-done.enter .confetti i { animation: confetti-fall 800ms var(--ease-out) both; animation-delay: calc(700ms + var(--i) * 30ms); }
  .btn[aria-busy="true"] .btn-spin { animation: spin 900ms linear infinite; }
}
@keyframes stamped {
  0% { transform: translateY(-1px) scale(1); }
  35% { transform: translateY(-2px) scale(1.1); }
  70% { transform: translateY(0) scale(0.97); }
  100% { transform: translateY(-1px) scale(1); }
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes check-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes confetti-fall {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateY(220px) rotate(420deg); }
}
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .demo-rail-no, .demo-rail-step + .demo-rail-step::before, .choice, .demo-change, .field input, .field textarea { transition: none; }
}

@media (max-width: 1060px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-side { display: none; } /* the steps themselves show what is picked */
}
@media (max-width: 640px) {
  .demo-rail-step:not(.is-current) .demo-rail-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .demo-rail-step + .demo-rail-step::before { margin: 0 8px; }
  .demo-days { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: thin; scrollbar-color: var(--paper-line) transparent; }
  .demo-days .choice { scroll-snap-align: start; }
  .demo-fields { grid-template-columns: minmax(0, 1fr); }
  .demo-submit .btn { width: 100%; }
  .demo-step.is-done .demo-sum { gap: 10px; }
}

/* --- Före och efter: dra i reglaget --------------------------------------------
   Two screens stacked in one box, the top one clipped at a draggable divider.
   Pointer Events for mouse, touch and pen; the handle is a keyboard slider
   (booqy.js). The look is the site's: print-black handle with a paper rim,
   3px corners, the hanging-paper shadow. */

.compare-band .band-head { max-width: 820px; }
.compare-hang { filter: drop-shadow(0 20px 40px rgb(26 18 14 / 0.45)) drop-shadow(0 2px 4px rgb(26 18 14 / 0.3)); }
.compare-note { margin-top: 18px; color: var(--on-ox-2); }


.site-head { color: var(--on-ox); }

/* --- Tickets print in on scroll (booqy.js adds .reveal, then .is-in) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-in) { opacity: 0.001; }
  .js .reveal.is-in > .ticket, .js .reveal.is-in > .ticket-link > .ticket { animation: printout 600ms var(--ease-expo) var(--rd, 0ms) backwards; }
}

/* --- Så kommer ni igång: three tickets on one rail ----------------------------- */

.start { list-style: none; margin: 0; padding: 0 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.start .hang + .hang { margin-left: -8px; }
.start .hang:nth-child(1) { z-index: 3; } .start .hang:nth-child(2) { z-index: 2; } .start .hang:nth-child(3) { z-index: 1; }
.start .hang:nth-child(1) > .ticket { rotate: -0.6deg; }
.start .hang:nth-child(2) > .ticket { rotate: 0.7deg; }
.start .hang:nth-child(3) > .ticket { rotate: -0.4deg; }
.start .ticket { transform-origin: top center; padding: 26px clamp(20px, 2.4vw, 30px) calc(26px + var(--tooth)); }
.start h3 { margin-top: 4px; color: var(--print); font-size: var(--text-2xl); font-weight: 600; }
.start p { margin-top: 10px; color: var(--print-2); font-size: var(--text-base); line-height: 1.55; }
.start .stamp { margin-top: 14px; }
@media (max-width: 860px) {
  .types { grid-template-columns: minmax(0, 1fr); }
  .start { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(300px, 80%); gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 28px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--ox-600) transparent; }
  .start .hang { scroll-snap-align: start; }
  .start .hang + .hang { margin-left: 0; }
  .start .hang > .ticket { rotate: none; }
}
@media (max-width: 560px) {
  .type-row { grid-template-columns: minmax(0, 1fr); }
  .type-row .go { grid-column: 1; grid-row: auto; margin-top: 4px; }
}

/* --- Closing ticket: pick a day for the demo right here (booqy.js) ------------ */

.quick { margin-top: clamp(22px, 2.4vw, 30px); }
.quick[hidden] { display: none; }
.quick ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.quick .choice { text-decoration: none; }
@media (max-width: 400px) {
  .quick ol { gap: 6px; }
  .quick .choice .dd { font-size: var(--text-2xl); }
}

/* --- Hero scene: what the guest sees, what the restaurant gets ----------------
   A phone with the restaurant's own site on the left, the ticket it produces
   on the right, and one plain caption under both. Three short stories play in
   turn (booqy.js): book a table, order food, catering. The phone is an
   illustration of another interface, so it may use rounder corners. */

.hero-scene { padding-top: 26px; min-width: 0; }
.scene-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 18px; }
.scene-bar[hidden] { display: none; }
.scene-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.scene-tab {
  position: relative; margin: 0; padding: 10px 14px 12px; border: 0; border-radius: var(--r-md); cursor: default;
  background: rgb(var(--wash) / 0.07); color: var(--on-ox-2);
  font: 600 var(--text-base)/1 var(--font-sans);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.scene-tab[aria-selected="true"] { background: var(--paper); color: var(--print); }
.scene-feed { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: currentColor; opacity: 0.6; transform: scaleX(0); transform-origin: left; }
.is-playing .scene-tab[aria-selected="true"] .scene-feed { animation: feed-x var(--dur, 6s) linear forwards; }
.is-playing.is-paused .scene-tab[aria-selected="true"] .scene-feed { animation-play-state: paused; }
/* pause and play the stories (booqy.js shows it while they autoplay) */
.scene-pause {
  flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.3rem; margin: 0; padding: 0; border: 0; border-radius: var(--r-md); cursor: default;
  background: rgb(var(--wash) / 0.07); color: var(--on-ox-2);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.scene-pause[hidden] { display: none; }
.scene-pause svg { width: 15px; height: 15px; }
.scene-pause .i-play, .is-held .scene-pause .i-pause { display: none; }
.is-held .scene-pause .i-play { display: block; }
@keyframes feed-x { to { transform: none; } }

.scene-stage { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); align-items: start; }
.scene-col { min-width: 0; }
.scene-label { margin-bottom: 10px; font: 500 var(--text-xs)/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ox-3); }
.scene-col .rail { margin: 0 -10px; height: 22px; }
.scene-hang { margin: 0 4px; display: grid; }
.scene-caption { margin-top: 20px; min-height: 2.9em; max-width: 46ch; font-size: var(--text-base); line-height: 1.45; font-weight: 500; color: var(--on-ox); transition: opacity 220ms var(--ease-out); }
.scene-caption.swap { opacity: 0; }
.scene-example { margin-top: 4px; color: var(--on-ox-3); }

/* the ticket the restaurant gets */
.tk { grid-area: 1 / 1; display: block; color: var(--print); text-decoration: none; padding: 22px 18px calc(18px + var(--tooth)); }
.tk:not(.on) { visibility: hidden; }
.tk .print { font-size: var(--text-sm); }
.tk-stamp { margin-top: 12px; }

/* the phone: the restaurant's own site, in the restaurant's colours */
.phone { container-type: inline-size; width: 100%; max-width: 252px; aspect-ratio: 9 / 17.6; padding: 7px; border-radius: 30px; background: var(--print); box-shadow: 0 18px 30px -12px rgb(26 18 14 / 0.5), 0 2px 4px rgb(26 18 14 / 0.25); }
.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 23px; background: var(--paper); color: var(--print);
  font: 400 5.3cqw/1.35 var(--font-sans);
}
.ph-url { display: flex; align-items: center; justify-content: center; gap: 0.35em; margin: 0.9em 1.1em 0; padding: 0.4em 0.7em; border-radius: var(--r-pill); background: var(--paper-2); color: var(--print-2); font: 500 0.74em/1 var(--font-sans); }
.ph-url svg { width: 0.95em; height: 0.95em; }
.ph-body { position: relative; flex: 1; }
.scr { position: absolute; inset: 0; padding: 0.9em; opacity: 0; translate: 0 0.5em; transition: opacity 260ms var(--ease-out), translate 420ms var(--ease-expo); }
.scr.on { opacity: 1; translate: 0 0; }
.scr p { font-size: 0.9em; }
.ph-h { margin-bottom: 0.6em; font-weight: 600; font-size: 1.18em; letter-spacing: -0.01em; }
.ph-dim { margin-top: 0.8em; color: var(--print-2); font-size: 0.8em !important; }
.ph-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45em; }
.ph-fields-1 { grid-template-columns: 1fr; }
.ph-fields span { padding: 0.45em 0.6em; border: 1px solid var(--paper-line); border-radius: var(--r-mock-md); font-weight: 600; font-size: 0.82em; }
.ph-fields small { display: block; font-size: 0.72em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--print-2); }
.ph-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; margin: 0.75em 0 0.2em; }
.ph-times span { padding: 0.5em 0; border-radius: var(--r-mock-md); background: var(--paper-2); text-align: center; font: 600 0.78em/1 var(--font-sans); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.pick .ph-pick { background: var(--ox-800); color: #d5c4ae; }
.ph-btn { display: block; margin-top: 0.9em; padding: 0.75em; border-radius: var(--r-pill); background: var(--ox-800); color: #d5c4ae; text-align: center; font-weight: 600; font-size: 0.88em; }
.ph-ok { display: grid; place-items: center; width: 2.5em; height: 2.5em; margin: 0.3em 0 0.7em; border-radius: 50%; background: var(--ox-800); color: #d5c4ae; }
.ph-ok svg { width: 1.35em; height: 1.35em; }
.ph-slip { display: grid; gap: 0.15em; margin-top: 0.8em; padding: 0.6em 0.7em; border: 1.5px dashed var(--paper-line); border-radius: var(--r-mock-md); font: 400 0.76em/1.45 var(--font-sans); }
.ph-slip b { font-weight: 600; }
.ph-tabs { display: flex; gap: 0.35em; margin-bottom: 0.4em; }
.ph-tabs span { padding: 0.35em 0.7em; border: 1px solid var(--paper-line); border-radius: var(--r-pill); font-weight: 600; font-size: 0.74em; }
.ph-tabs .on { background: var(--ox-800); border-color: var(--ox-800); color: #d5c4ae; }
.ph-item { display: flex; align-items: center; gap: 0.5em; padding: 0.55em 0; border-bottom: 1px solid var(--paper-line); }
.ph-item > span:first-child { flex: 1; min-width: 0; }
.ph-item b { display: block; font-weight: 600; font-size: 0.86em; }
.ph-item small { font: 500 0.72em/1.3 var(--font-sans); color: var(--print-2); }
.ph-add { display: grid; place-items: center; flex: none; width: 1.8em; height: 1.8em; border: 1.5px solid var(--ox-800); border-radius: 50%; color: var(--ox-800); font-weight: 600; line-height: 1; }
.ph-qty { display: grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 0.3em; border-radius: var(--r-pill); background: var(--accent); color: #d5c4ae; font: normal 600 0.72em/1 var(--font-sans); opacity: 0; scale: 0.4; transition: opacity 180ms var(--ease-out), scale 320ms var(--ease-expo); }
.q-pasta::after { content: "1"; } .qp2 .q-pasta::after { content: "2"; } .q-tira::after { content: "1"; }
.qp1 .q-pasta, .qt1 .q-tira { opacity: 1; scale: 1; }
.ph-cart { position: absolute; left: 0.9em; right: 0.9em; bottom: 0.9em; margin: 0; opacity: 0; translate: 0 0.6em; transition: opacity 220ms var(--ease-out), translate 420ms var(--ease-expo); }
.qp1 .ph-cart { opacity: 1; translate: 0 0; }
.ph-cart .c1, .ph-cart .c2, .ph-cart .c3 { display: none; }
.qp1:not(.qp2) .c1, .qp2:not(.qt1) .c2, .qt1 .c3 { display: inline; }
.ph-lines { display: grid; gap: 0.35em; font: 400 0.74em/1.4 var(--font-sans); }
.ph-lines span { display: flex; justify-content: space-between; gap: 0.6em; }
.ph-lines .tot { margin-top: 0.2em; padding-top: 0.45em; border-top: 1.5px dashed var(--paper-line); font-weight: 600; }
.ph-signed { display: none; margin-top: 1em; padding: 0.3em 0.6em 0.25em; border: 2px solid var(--print); border-radius: var(--r-md); rotate: -4deg; font: 600 0.8em/1.2 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }
.signed .ph-sign { display: none; }
.signed .ph-signed { display: inline-block; }
/* the sms arrives like on an unlocked iPhone: a Messages banner drops in from the top */
.ph-note { position: absolute; z-index: 6; top: 0.45em; left: 0.45em; right: 0.45em; opacity: 0; translate: 0 -150%; scale: 0.92; transition: translate 620ms cubic-bezier(0.32, 1.35, 0.5, 1), scale 620ms cubic-bezier(0.32, 1.35, 0.5, 1), opacity 160ms var(--ease-out); }
.ph-note.show { opacity: 1; translate: 0 0; scale: 1; }
.ph-tap { position: absolute; z-index: 4; width: 2.3em; height: 2.3em; margin: -1.15em 0 0 -1.15em; border-radius: 50%; background: rgb(74 74 70 / 0.25); box-shadow: 0 0 0 2px rgb(74 74 70 / 0.6); opacity: 0; pointer-events: none; }
.ph-tap.go { animation: tap 520ms var(--ease-out) both; }
@keyframes tap {
  0% { opacity: 0; scale: 0.4; }
  30% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1.5; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero .tk.roll { animation: printout 900ms var(--ease-expo) both; }
  .tk .stamp.thunk { animation: thunk 420ms var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  .scr, .ph-note, .ph-cart, .ph-qty, .ph-times span, .scene-caption, .scene-tab, .scene-pause { transition: none; }
  .ph-tap { display: none; }
}
@media (max-width: 1060px) {
  .hero-scene { padding-top: 34px; max-width: 620px; }
}
/* side by side, the hero rail only spans the ticket that hangs from it, not the scene */
@media (min-width: 1061px) {
  .rail-zone:has(.hero-scene) > .rail { margin-right: calc((100% - clamp(20px, 3vw, 44px)) / 2.2 + clamp(20px, 3vw, 44px) - var(--gutter) * 0.5); }
}
@media (max-width: 560px) {
  .scene-stage { gap: 12px; }
  .scene-tab { padding: 9px 11px 11px; font-size: var(--text-sm); }
  .scene-pause { width: 2.15rem; height: 2.12rem; }
  .tk { padding: 18px 12px calc(14px + var(--tooth)); }
  .tk .print { font-size: var(--text-xs); }
  .tk .more { font-size: var(--text-sm); }
  .phone { padding: 5px; border-radius: 24px; }
  .phone-screen { border-radius: 19px; }
}
@media (max-width: 560px) { .phone-screen { font-size: 6cqw; } }

/* --- Devices in 3D: the guest's phone and the restaurant's laptop ------------
   Illustrations of other screens, so rounder corners are allowed. The phone
   gets a back plate pushed back in Z, so a turned phone shows its edge.
   [data-tilt] turns a little with scroll and the pointer (booqy.js sets
   --sx/--px on the device itself; they do not inherit, so the screen inside
   is not restyled each frame). Reduced motion: flat. */

@property --sx { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --px { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tilt { perspective: 1100px; }
.tilt > .phone { --ry: 0deg; --rx: 4deg; transform: rotateY(calc(var(--ry) + var(--px))) rotateX(calc(var(--rx) + var(--sx))); }
.tilt-r > .phone { --ry: 14deg; }
.tilt-l > .phone { --ry: -14deg; }
.phone { position: relative; transform-style: preserve-3d; }
.phone::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #3a2418; transform: translateZ(-10px); }
@media (prefers-reduced-motion: no-preference) {
  .tilt > .phone { transition: transform 500ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  .tilt > .phone { transform: none; }
}

/* numbered step badge: the reversed print block */
.num {
  display: inline-grid; place-items: center; flex: none; min-width: 1.9em; height: 1.9em; padding: 0 0.4em;
  background: var(--paper); color: var(--print); border-radius: var(--r-md);
  font: 600 var(--text-sm)/1 var(--font-sans); letter-spacing: 0.04em; font-style: normal;
}
.ticket .num, .band-paper .num { background: var(--print); color: var(--paper); }

/* hero: 1 the guest, an arrow, 2 the restaurant */
.scene-label { display: flex; align-items: center; gap: 8px; }
.scene-label .num { font-size: var(--text-xs); }
.scene-stage { position: relative; }
.scene-arrow { position: absolute; z-index: 7; top: 34%; left: calc(52.8% - 4px); width: 34px; height: 34px; translate: -50% 0; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--accent); box-shadow: 0 6px 12px -4px rgb(26 18 14 / 0.5); }
.scene-arrow svg { width: 18px; height: 18px; }

/* --- Hur funkar det: the scroll show -----------------------------------------
   A tall track with a sticky stage. As the visitor scrolls through it the
   story moves on one step at a time (booqy.js): the step list highlights the
   current step, [data-on] screens and rows show only on their steps, [data-hl]
   marks the active admin menu item, and the laptop and phone turn with the
   scroll. Without JS: a plain list of steps beside the first picture.
   Reduced motion: the steps still follow the scroll, nothing turns. */

.tour { padding-top: clamp(64px, 9vw, 128px); }
.tour .band-head { margin-bottom: clamp(20px, 3vw, 36px); }
.show-stage { padding-bottom: clamp(48px, 6vw, 80px); }
.show-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.show-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.show-steps li { position: relative; padding: 12px 0 12px 16px; border-left: 2px dashed rgb(var(--wash) / 0.22); }
.show-kicker { font: 400 var(--text-base)/1.2 var(--font-serif); letter-spacing: 0; color: var(--on-ox-3); margin-bottom: 8px; }
.show-steps h3 { display: flex; align-items: center; gap: 10px; font-size: var(--text-lg); }
.show-steps p { margin-top: 6px; color: var(--on-ox-2); max-width: 40ch; }
.show-btn { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: default; display: flex; align-items: center; gap: 10px; }
.show-btn::after { content: ""; position: absolute; inset: 0; }
.show-dots { display: none; }

.js .tour .show-track { height: calc(var(--n, 6) * 62vh + 100vh); }
.js .tour .show-stage { position: sticky; top: var(--head-h, 72px); height: calc(100vh - var(--head-h, 72px)); height: calc(100svh - var(--head-h, 72px)); display: grid; align-items: center; overflow: clip; padding: 0; }
.js .tour .show-steps li { transition: opacity 260ms var(--ease-out), border-color 260ms var(--ease-out); }
.js .tour .show-steps li:not(.on) { opacity: 0.42; }
.js .tour .show-steps li:not(.on) p { display: none; }
.js .tour .show-steps li.on { border-left: 2px solid var(--on-ox); }
.js .tour .show-steps li:not(.on) .show-kicker { display: none; }

/* the rig holds both devices; booqy.js turns it with the scroll */
.show-devices { position: relative; perspective: 1700px; min-width: 0; }
.show-rig { position: relative; width: 100%; max-width: 680px; margin: 0 auto; aspect-ratio: 16 / 12.2; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-10deg); }
.show-who { position: absolute; font: 500 var(--text-xs)/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ox-3); display: flex; align-items: center; gap: 6px; }
.show-who-lap { left: 2%; top: -2px; }
.show-who-ph { right: 2%; bottom: -6%; }

.laptop { position: absolute; left: 0; top: 7%; width: 80%; transform-style: preserve-3d; transition: transform 380ms var(--ease-move), filter 380ms var(--ease-move); }
.lid { position: relative; container-type: inline-size; aspect-ratio: 16 / 10; padding: 2.1%; border-radius: 16px 16px 6px 6px; background: var(--print); box-shadow: 0 30px 40px -18px rgb(26 18 14 / 0.55); }
.lid::after { content: ""; position: absolute; left: 50%; top: 0.9%; width: 1.1%; aspect-ratio: 1; border-radius: 50%; background: #4a4a46; translate: -50% 0; }
.lid-screen { position: relative; height: 100%; overflow: hidden; border-radius: 5px; background: var(--paper); color: var(--print); font: 400 2.15cqw/1.4 var(--font-sans); display: grid; grid-template-columns: 21% minmax(0, 1fr); }
.deck { position: absolute; left: -8%; right: -8%; top: 100%; height: 56%; transform-origin: top center; transform: rotateX(84deg); border-radius: 4px 4px 18px 18px; background: var(--steel); box-shadow: inset 0 -6px 0 var(--steel-lo); }
.deck::before { content: ""; position: absolute; left: 12%; right: 12%; top: 10%; height: 52%; border-radius: 6px; background: repeating-linear-gradient(90deg, #a88462 0 6.4%, transparent 6.4% 7.2%); opacity: 0.75; }
.deck::after { content: ""; position: absolute; left: 36%; right: 36%; bottom: 10%; height: 24%; border-radius: 6px; background: #a88462; }
.deck-lip { position: absolute; left: -8%; right: -8%; top: 100%; height: 3.4%; border-radius: 0 0 14px 14px; background: var(--steel-lo); }

.show-phone { position: absolute; right: 0; bottom: 2%; width: 27%; max-width: none; transform: translateZ(70px); transition: transform 380ms var(--ease-move), filter 380ms var(--ease-move); }
.show-phone .phone-screen { font-size: 5.6cqw; }
/* the side that acts in this step comes forward, the other one waits */
.tour.focus-phone .show-phone { transform: translateZ(120px) translateY(-3%); }
.tour.focus-lap .laptop { transform: translateZ(30px); }

/* the message travelling between them */
.show-arrow { position: absolute; z-index: 3; left: 79%; top: 10%; width: 18%; transform: translateZ(140px); color: var(--paper); transition: transform 400ms var(--ease-out); }
.show-arrow svg { width: 100%; height: auto; overflow: visible; }
.show-arrow .dash { stroke-dasharray: 3 7; }
.tour.to-lap .show-arrow { transform: translateZ(140px) scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .show-arrow .dash { animation: march 900ms linear infinite; }
}
@keyframes march { to { stroke-dashoffset: -20; } }

/* [data-on]: shown only on its steps */
.js .tour [data-on]:not(.on) { display: none; }
.js .tour .scr[data-on]:not(.on), .js .tour .lap-scr[data-on]:not(.on) { display: block; opacity: 0; visibility: hidden; }
.lap-scr { position: absolute; inset: 0; padding: 4.2% 4.6%; transition: opacity 320ms var(--ease-out), visibility 320ms; }
.js .tour .lap-scr:not(.on) { pointer-events: none; }
html:not(.js) .tour [data-on]:not([data-on~="0"]) { display: none; }
.tour .scr { opacity: 1; translate: none; }
.js .tour .scr:not(.on) { opacity: 0; translate: 0 0.5em; }
.js .tour .ad-row[data-on].on, .js .tour .k-card[data-on].on { animation: arrive 900ms var(--ease-out) both; }
@keyframes arrive { 0% { background: #a88462; translate: 0 -0.4em; opacity: 0; } 30% { opacity: 1; translate: 0 0; } 100% { background: #a88462; } }
@media (prefers-reduced-motion: reduce) {
  .laptop, .show-phone, .lap-scr, .show-arrow, .js .tour .show-steps li { transition: none; }
  .js .tour .ad-row[data-on].on, .js .tour .k-card[data-on].on { animation: none; background: #a88462; }
  .show-rig { transform: none !important; }
  .tour.focus-phone .show-phone, .show-phone { transform: none; }
  .tour.focus-lap .laptop { transform: none; }
  .show-arrow, .tour.to-lap .show-arrow { transform: none; }
  .tour.to-lap .show-arrow svg { scale: -1 1; }
}

/* the admin on the laptop: like the real admin, a sand desk with a light
   sidebar card (espresso pill on the open page) beside a off-white workspace card */
.lid-screen:not(.is-shot) { background: #f6f1ea; gap: 0.6em; padding: 0.6em; }
.ad-side { background: var(--snow); color: #1a120e; border-radius: var(--r-mock-lg); box-shadow: 0 0 0 1px #e3d6c4, 0 6px 14px -10px rgb(58 36 24 / 0.35); padding: 1em 0.55em; display: flex; flex-direction: column; gap: 0.2em; font-size: 0.92em; min-width: 0; }
.ad-side svg { width: 70%; color: #1a120e; margin: 0 0 1.1em 6%; }
.ad-side span { padding: 0.45em 0.65em; border-radius: var(--r-pill); }
.ad-side span.hl { background: #1a120e; color: var(--snow); font-weight: 600; }
.ad-main { position: relative; min-width: 0; overflow: hidden; background: var(--snow); border-radius: var(--r-mock-lg); box-shadow: 0 0 0 1px #e3d6c4, 0 6px 14px -10px rgb(58 36 24 / 0.35); }
.ad-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.8em; font-weight: 600; font-size: 1.5em; letter-spacing: -0.01em; }
.ad-h small { font: 500 0.5em/1 var(--font-sans); color: var(--print-2); letter-spacing: 0.04em; }
.ad-row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) 2.6em 6em; gap: 0.6em; align-items: center; padding: 0.6em 0.6em; border-bottom: 1px solid var(--paper-line); font-size: 0.95em; }
.ad-row b { font: 600 0.95em/1 var(--font-sans); }
.ad-row .t { font: 500 0.88em/1 var(--font-sans); color: var(--print-2); }
.ad-tag { justify-self: start; padding: 0.3em 0.75em 0.25em; border: 1.5px solid currentColor; border-radius: var(--r-md); font: 600 0.66em/1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; color: var(--print-2); }
.ad-tag.red { color: var(--accent); }
.ad-tag.ok { color: var(--print); }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7em; }
.kanban > div { background: var(--paper-2); border-radius: var(--r-mock-lg); padding: 0.6em; min-height: 13em; }
.kanban h4 { margin: 0 0 0.6em; font: 600 0.7em/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--print-2); }
.k-card { background: var(--paper); border-radius: var(--r-mock-lg); padding: 0.6em 0.65em; margin-bottom: 0.5em; box-shadow: 0 1px 0 var(--paper-line), 0 2px 6px -3px rgb(26 18 14 / 0.2); font-size: 0.86em; }
.k-card b { display: flex; justify-content: space-between; font: 600 0.95em/1.3 var(--font-sans); }
.k-card span { display: block; color: var(--print-2); }
.cat-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.9em; }
.cat-card { border: 1px solid var(--paper-line); border-radius: var(--r-mock-lg); padding: 0.8em 0.9em; }
.cat-card .big { font-weight: 600; font-size: 1.7em; line-height: 1.1; }
.cat-card .lines { display: grid; gap: 0.3em; font: 400 0.85em/1.35 var(--font-sans); }
.cat-card .lines span { display: flex; justify-content: space-between; gap: 0.6em; }
.cat-card .lines .tot { border-top: 1.5px dashed var(--paper-line); padding-top: 0.4em; font-weight: 600; }
.cat-card .ad-tag { display: inline-block; margin-top: 1.4em; rotate: -4deg; font-size: 0.8em; } /* inline-block: an inline tag ignored the margin and touched the text */
.ad-btn { display: inline-block; margin-top: 0.8em; padding: 0.55em 0.9em; border-radius: var(--r-pill); background: var(--ox-800); color: #d5c4ae; font-weight: 600; font-size: 0.85em; }

/* the phone's lock screen, for the sms */
.scr.lock { z-index: 5; display: flex; flex-direction: column; align-items: center; padding-top: 16%; background: var(--ox-800); color: var(--on-ox); }

@media (max-width: 860px) {
  .show-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .show-devices { order: -1; }
  .show-rig { max-width: 520px; }
  .js .tour .show-steps li:not(.on) { display: none; }
  .js .tour .show-steps li.on { border-left: 0; padding-left: 0; }
  .js .tour .show-steps { min-height: 7.5em; align-content: start; }
  .js .tour .show-dots { display: flex; gap: 6px; margin-bottom: 10px; }
  .show-dots span { flex: 1; height: 3px; border-radius: var(--r-md); background: rgb(var(--wash) / 0.2); transition: background-color 200ms; }
  .show-dots span.on { background: var(--on-ox); }
  .js .tour .show-grid { align-content: center; }
}
@media (max-width: 560px) {
  .show-who-ph { display: none; }
  .show-who { font-size: var(--text-xs); }
  .lid { border-radius: 10px 10px 4px 4px; }
  .lid-screen { font-size: 2.1cqw; }
  .show-phone { width: 30%; }
}

/* --- Small pictures and plain sections --------------------------------------- */

.ic { width: 34px; height: 34px; color: var(--accent); }
.icons .ic-box { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-md); background: var(--print); color: var(--paper); }
.icons .ic-box .ic { color: currentColor; width: 28px; height: 28px; }
.what { list-style: none; margin: 0; padding: 0 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.what .hang + .hang { margin-left: -8px; }
.what .hang:nth-child(even) .ticket { rotate: 0.6deg; } .what .hang:nth-child(odd) .ticket { rotate: -0.5deg; }
.what .ticket p { color: var(--print-2); }
.what .ticket { padding: 26px clamp(18px, 2vw, 26px) calc(24px + var(--tooth)); }
.what h3 { margin-top: 14px; font-size: var(--text-xl); }
.what p { margin-top: 6px; }
.what .more { margin-top: 12px; }
.start .ic { margin-bottom: 12px; }

.price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.price .flow-ticket { max-width: 380px; }
.paypath { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.paypath .node { display: grid; justify-items: center; gap: 8px; width: 112px; text-align: center; font-weight: 600; font-size: var(--text-base); line-height: 1.25; }
.paypath .node span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); color: var(--accent); }
.paypath .node svg { width: 30px; height: 30px; }
.paypath .go { width: 56px; height: 20px; color: var(--on-ox-3); flex: none; margin-bottom: 28px; }
.paynote { margin-top: 18px; color: var(--on-ox-2); }
.print .tick { color: var(--accent); font-weight: 600; }

@media (max-width: 1060px) {
  .what { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(290px, 72%); gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 28px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--ox-600) transparent; }
  .what .hang { scroll-snap-align: start; }
  .what .hang + .hang { margin-left: 0; }
  .what .hang .ticket { rotate: none !important; }
}
@media (max-width: 860px) {
  .price { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .scene-arrow { width: 28px; height: 28px; }
}

/* feature pages: the guest's phone beside the hero ticket */
.hero-phone { display: grid; justify-items: center; align-content: start; padding-top: 34px; min-width: 0; }
.hero-phone .scene-label { justify-self: center; }
.hero-phone .tilt { width: 100%; max-width: 250px; }
.hero-phone .phone { max-width: none; }
.hero-phone .example { color: var(--on-ox-3); margin-top: 16px; }
@media (max-width: 1060px) { .hero-phone .tilt { max-width: 220px; } }

/* "Vad ingår": a picture and one line per thing */
.icons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(24px, 4vw, 56px); }
.icons li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; align-content: start; }


.icons h3 { font-size: var(--text-lg); align-self: end; }
.icons p { color: var(--print-2); }
@media (max-width: 860px) { .icons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .icons { grid-template-columns: minmax(0, 1fr); } }

/* small parts of the guest and admin screens */
.ph-hero { display: grid; place-items: center; aspect-ratio: 16 / 8; margin: -0.2em 0 0.7em; border-radius: var(--r-mock-md); background: var(--ox-700); color: #d5c4ae; }
.ph-hero svg { width: 2.4em; height: 2.4em; }
.ph-skel { display: grid; gap: 0.6em; margin-top: 0.4em; }
.ph-skel i { display: block; height: 0.9em; border-radius: var(--r-mock-md); background: var(--paper-2); }
.ph-skel i:first-child { height: 4.5em; }
.ph-skel i:last-child { width: 60%; }
.swatches { display: flex; gap: 0.5em; margin-top: 0.4em; }
.swatches i { width: 2em; height: 2em; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--paper-line); }

/* /demo: what happens, in three pictures */
.mini-steps { list-style: none; margin: clamp(18px, 2vw, 24px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.mini-steps li { display: grid; justify-items: start; gap: 8px; padding: 12px; border: 1.5px dashed var(--paper-line); border-radius: var(--r-md); }
.mini-steps .ic { width: 26px; height: 26px; }
.mini-steps span { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--text-base); line-height: 1.25; }
.mini-steps .num { font-size: var(--text-xs); }
@media (max-width: 400px) { .mini-steps li { padding: 10px 8px; } .mini-steps span { font-size: var(--text-sm); flex-wrap: wrap; } }
/* long Swedish compounds ("Onlinebeställning") must fit a 375 px phone */
@media (max-width: 420px) { .page-hero h1 { font-size: var(--text-2xl); overflow-wrap: break-word; } }

/* --- The guest's phone, as the restaurant's site looks in production -------
   Oxblood header with the restaurant's name and the green "Öppet" pill, a cream
   page, wide headings, numbered step rail, outlined chips. Texts and steps
   follow customer-front-end, kept to a few large things per screen. */
.phone-screen { background: var(--paper); }
.ph-url { background: var(--paper-2); }
.ph-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; margin-top: 0.6em; padding: 0.65em 0.8em; background: var(--ox-800); color: #d5c4ae; }
.ph-top b { font-weight: 600; font-size: 0.95em; letter-spacing: -0.01em; white-space: nowrap; }
.ph-open { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.3em 0.5em; border: 1px solid rgb(213 196 174 / 0.55); border-radius: var(--r-mock-md); font: 500 0.62em/1 var(--font-sans); white-space: nowrap; }
.ph-open i { width: 0.75em; height: 0.75em; border-radius: 50%; background: #4a4a46; box-shadow: 0 0 0 0.15em rgb(168 132 98 / 0.35); }
.ph-h { font-weight: 600; font-size: 1.3em; line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 0.5em; }
.ph-kick { margin-bottom: 0.2em; font: 500 0.66em/1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--print-2); }
.ph-rail { display: flex; align-items: center; gap: 0.3em; margin: -0.1em 0 0.7em; font: 600 0.62em/1 var(--font-sans); }
.ph-rail i { display: grid; place-items: center; width: 1.75em; height: 1.75em; border: 1.5px solid var(--paper-line); border-radius: var(--r-mock-md); background: var(--paper); font-style: normal; color: var(--print-2); }
.ph-rail i.on { background: var(--ox-800); border-color: var(--ox-800); color: #d5c4ae; }
.ph-rail i.done { background: var(--print); border-color: var(--print); color: #d5c4ae; }
.ph-rail i.done svg { width: 1.1em; height: 1.1em; }
.ph-rail em { font-style: normal; margin-right: 0.2em; }
.ph-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; margin-bottom: 0.55em; }
.ph-days span { display: grid; justify-items: center; padding: 0.35em 0 0.4em; border: 1.5px solid var(--paper-line); border-radius: var(--r-mock-md); background: var(--paper); }
.ph-days small { font: 500 0.6em/1.1 var(--font-sans); text-transform: uppercase; letter-spacing: 0.06em; }
.ph-days b { font-weight: 600; font-size: 1.15em; line-height: 1; }
.ph-days .on { background: var(--ox-800); border-color: var(--ox-800); color: #d5c4ae; }
.ph-times span { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper-line); border-radius: var(--r-mock-md); }
.pick .ph-pick, .phone-screen .ph-pick.is-on { box-shadow: none; }
.ph-btn { border-radius: var(--r-pill); }
.ph-btn.ghost { background: var(--paper); color: var(--ox-800); box-shadow: inset 0 0 0 1.5px var(--ox-800); }
.ph-cta { display: grid; gap: 0.45em; margin-top: 0.7em; }
.ph-cta .ph-btn { margin-top: 0; }
.ph-item { gap: 0.55em; }
.ph-img { display: grid; place-items: center; flex: none; width: 2.3em; height: 2.3em; border-radius: var(--r-mock-md); background: #a88462; color: rgb(213 196 174 / 0.85); }
.ph-img.b { background: #6b4a2e; } .ph-img.c { background: #4a4a46; }
.ph-img svg { width: 1.5em; height: 1.5em; }
.ph-add { border: 0; border-radius: var(--r-mock-md); background: var(--ox-800); color: #d5c4ae; }
.ph-hero { aspect-ratio: 16 / 7; }
.ph-stamp { display: inline-block; margin-bottom: 0.5em; padding: 0.2em 0.5em 0.15em; border: 2px solid currentColor; border-radius: var(--r-md); rotate: -4deg; font: 600 0.7em/1.2 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }
.ph-stamp.ok, .ph-signed { color: #4a4a46; border-color: #4a4a46; }
.ph-dl { display: grid; margin: 0.4em 0 0; font-size: 0.82em; }
.ph-dl div { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.4em 0; border-bottom: 1.5px dashed var(--paper-line); }
.ph-dl dt { color: var(--print-2); }
.ph-dl dd { margin: 0; font: 600 0.95em/1.3 var(--font-sans); }
/* the order number: the one thing the guest says at the counter, big and green */
.ph-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.4em; }
.ph-code { padding: 0.12em 0.4em 0.08em; border-radius: var(--r-mock-md); background: #a88462; color: #4a4a46; font: 600 1.55em/1.05 var(--font-sans); letter-spacing: -0.02em; box-shadow: inset 0 0 0 1.5px #4a4a46; }
.ph-status { font-weight: 600; font-size: 0.92em; }
.ph-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25em; margin: 0.6em 0 0.2em; font: 600 0.56em/1 var(--font-sans); text-transform: uppercase; letter-spacing: 0.04em; color: var(--print-2); }
.ph-flow i { font-style: normal; padding-top: 0.6em; border-top: 0.35em solid var(--paper-line); }
.ph-flow i.on { border-color: #4a4a46; color: #4a4a46; }
.ph-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.6em; padding-top: 0.5em; border-top: 1.5px dashed var(--paper-line); font-size: 0.85em; }
.ph-total b { font: 600 1.1em/1 var(--font-sans); }
.ph-lbl { margin: 0.35em 0 0.2em; font-weight: 600; font-size: 0.78em; }
.ph-input { padding: 0.5em 0.6em; border: 1.5px solid var(--paper-line); border-radius: var(--r-mock-md); background: var(--paper-2); font: 600 0.82em/1 var(--font-sans); }
.ph-signed.is-on { display: inline-block; }

/* iOS notification (Messages) */
/* a plain card, not glass: it sits on the flat lock screen (and inside the
   carousel's filter/opacity layers), so a lens would have nothing to bend */
.ios-note { display: flex; align-items: flex-start; gap: 0.55em; padding: 0.55em 0.65em; border-radius: 1.15em; color: #1a120e; font: 400 0.7em/1.3 var(--font-sans); text-align: left; background: rgb(213 196 174 / 0.9); box-shadow: 0 0.6em 1.4em -0.5em rgb(26 18 14 / 0.45); }
.ios-ic { position: relative; flex: none; width: 2.3em; height: 2.3em; border-radius: 0.55em; background: linear-gradient(#a88462, #6b4a2e); }
.ios-ic::before { content: ""; position: absolute; left: 22%; top: 25%; width: 56%; height: 44%; border-radius: 50%; background: #d5c4ae; }
.ios-ic::after { content: ""; position: absolute; left: 26%; top: 56%; width: 0.5em; height: 0.45em; background: #d5c4ae; clip-path: polygon(0 100%, 30% 0, 100% 0); }
.ios-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.4em; }
.ios-body b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-body time { color: #4a4a46; font-size: 0.9em; }
.ios-body span { grid-column: 1 / -1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* the lock screen */
.lk-date { font: 500 0.78em/1.2 var(--font-sans); color: rgb(213 196 174 / 0.85); }
.lk-time { font: 600 3.4em/1 var(--font-sans); letter-spacing: -0.02em; }
.scr.lock .ios-note { align-self: stretch; margin: 2.6em 0.15em 0; }
.js .tour .scr.on .ios-note { animation: ios-in 650ms cubic-bezier(0.32, 1.35, 0.5, 1) 250ms both; }
@keyframes ios-in { from { opacity: 0; translate: 0 1.5em; scale: 0.94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .js .tour .scr.on .ios-note { animation: none; } .ph-note { transition: opacity 160ms; translate: 0 0; scale: 1; } }
/* the hero order follows the kitchen: Tillagas, then Klar att hämta */
.ph-status .st1, .ph-status .st2, .cook .ph-status .st0, .ready .ph-status .st1 { display: none; }
.cook:not(.ready) .ph-status .st1, .ready .ph-status .st2 { display: inline; }
.cook .ph-flow .f1, .ready .ph-flow .f2 { border-color: #4a4a46; color: #4a4a46; }
.ready .ph-status { color: #4a4a46; }
.ready [data-scr="paid"] .ph-dim { display: none; }

/* === Guided layout (2026-10-24) ==============================================
   One story in five chapters on a light sand ground; the closing CTA and the footer are the only dark bands.
   Calm and centred at the top (a slow, steady opening), one drum fill further
   down (the scroll show lands on the beat), then a steady flow. Motion follows
   Material 3: things enter by fading in and rising 16-24 px on the emphasized
   decelerate curve, 300-900 ms; nothing loops except the slow night
   notifications. Reduced motion: everything is simply there. */

:root {
  --blush: #6b4a2e;
  --ox-text: #3a2418;
  --ox-kick: #6b4a2e;
  --ok: #4a4a46;
  --ok-light: #a88462;
  /* older names, kept so every rule uses the one set of curves above */
  --ease-emph: var(--ease-out);
  --ease-std: var(--ease-move);
}
/* the dark accents: the closing call to action (and "Kom igång" on the front page) and the footer, nothing else */
.is-dark, .g-close-sec, .site-foot {
  --wall: #1a120e; --wall-rgb: 26 18 14; --wash: 213 196 174;
  --on-ox: #d5c4ae; --on-ox-2: #a88462; --on-ox-3: #a88462;
  --ox-text: #d5c4ae; --ox-kick: #a88462; --blush: #a88462;
}
.site-foot { border-top: 1px solid rgb(var(--wash) / 0.12); }

/* the header scrolls away; the thin chapter bar sticks, like apple.com */
.site-head.no-stick { position: relative; }
.site-head.no-stick.is-stuck { filter: none; }
html:has(.lnav) { scroll-padding-top: 72px; }
.lnav { position: sticky; top: 0; z-index: 40; border-top: 1px solid rgb(var(--wash) / 0.1); border-bottom: 1px solid rgb(var(--wash) / 0.1); }
.lnav-in { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.lnav-ch { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.lnav-ch a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-pill); color: var(--on-ox-2); text-decoration: none; font: 500 var(--text-base)/1 var(--font-sans); transition: background-color 200ms var(--ease-std), color 200ms var(--ease-std); }
.lnav-ch a b { font-weight: 600; }
.lnav-ch a[aria-current="true"] { background: rgb(var(--wash) / 0.14); color: var(--on-ox); }
.lnav-now, .lnav-name { color: var(--on-ox-2); font: 500 var(--text-base)/1 var(--font-sans); }
.lnav-name { color: var(--on-ox); font-weight: 600; }
.lnav-now { display: none; }
.lnav-demo { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: var(--on-ox); color: var(--wall); text-decoration: none; font: 600 var(--text-base)/1 var(--font-sans); white-space: nowrap; transition: opacity 300ms var(--ease-std), translate 300ms var(--ease-std), background-color 160ms; }
@media (max-width: 767px) { .lnav-demo-x { display: none; } }
.js .lnav:not(.is-on) .lnav-demo { opacity: 0; translate: 0 -4px; pointer-events: none; visibility: hidden; transition: opacity 200ms var(--ease-std), translate 200ms var(--ease-std), visibility 0s 200ms; }
@media (max-width: 860px) {
  .lnav-ch { display: none; }
  .lnav-now { display: inline; }
}

/* shared pieces */
.g-sec { padding: clamp(72px, 10vw, 128px) 0; }
.g-ox { color: var(--on-ox); }
/* light bands follow each other: a hairline keeps the rhythm */
.g-sec:not(.g-close-sec):not(.is-dark) + .g-sec:not(.g-close-sec):not(.is-dark), .g-hero + .g-sec, .g-hero + .tour { border-top: 1px solid rgb(168 132 98 / 0.55); }
.g-paper { color: var(--print); }
.g-kick { margin: 0 0 12px; font: 400 var(--text-lg)/1.25 var(--font-serif); letter-spacing: 0; color: var(--accent); }
.g-ox .g-kick, .tour .g-kick { color: var(--ox-kick); }
.g-h2 { margin: 0; font-size: var(--text-4xl); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance; }
.g-lede { margin-top: 18px; max-width: 62ch; font-size: var(--text-lg); line-height: 1.55; }
.g-paper .g-lede { color: var(--print-2); }
.g-ox .g-lede, .tour .g-lede { color: var(--ox-text); }
.g-ox .g-lede strong { color: var(--on-ox); font-weight: 600; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: var(--r-pill); background: var(--on-ox); color: var(--wall); text-decoration: none; font: 600 var(--text-body)/1 var(--font-sans); transition: transform 200ms var(--ease-std), box-shadow 200ms var(--ease-std), background-color 160ms; }
.g-btn-ox { background: var(--ox-800); color: #d5c4ae; }
.g-btn-ink { background: var(--print); color: #d5c4ae; }
.g-more { color: inherit; font-weight: 600; font-size: var(--text-body); text-decoration: none; }
.g-cards { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g-num { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ox-800); color: #d5c4ae; font: 600 var(--text-lg)/1 var(--font-sans); }
.g-ox .g-num { background: var(--on-ox); color: var(--wall); }
.g-num-ok, .g-ox .g-num-ok { background: var(--ok-light); color: var(--print); }

/* the opening: slow and steady */
.g-hero { color: var(--on-ox); text-align: center; padding: clamp(72px, 10vw, 128px) 0 clamp(80px, 10vw, 136px); }
.g-hero h1 { margin: 0; font-size: var(--text-5xl); line-height: 0.95; letter-spacing: -0.03em; }
.g-hero h1 > span:not(.sr-only), .g-hero h1 em { display: block; }
.g-hero h1 em { font-style: normal; color: var(--blush); }
.g-eyebrow { margin-bottom: 18px; font: 400 var(--text-lg)/1.25 var(--font-serif); letter-spacing: 0; color: var(--ox-kick); }
.g-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin-top: 40px; }
.g-ticks { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; font-size: var(--text-body); color: var(--ox-text); }
.g-ticks li { display: flex; align-items: center; gap: 8px; }
.g-ticks svg { width: 20px; height: 20px; color: var(--ok-light); flex: none; }
.g-sub { max-width: 34ch; margin: 22px auto 0; font: 400 var(--text-xl)/1.35 var(--font-serif); letter-spacing: 0; color: var(--ox-kick); text-wrap: balance; }
.g-sub + .g-actions { margin-top: 32px; }
/* the promise under the button: under both on wide screens, right under the button on phones */
.g-assure { flex-basis: 100%; order: 3; margin: -4px 0 0; font-size: var(--text-base); color: var(--ox-text); text-wrap: balance; }
.g-assure > span { white-space: nowrap; }
.g-quick { margin: 26px auto 0; max-width: 420px; }
.g-quick .h { display: block; font-size: var(--text-sm); color: var(--ox-text); }
.g-quick ol { margin: 10px auto 0; }

.g-night { margin: clamp(48px, 7vw, 72px) auto 0; width: min(380px, 100%); }
.g-night > p { margin-bottom: 14px; font-size: var(--text-sm); color: var(--on-ox-2); }
.g-notes { position: relative; height: 72px; }
.g-note { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px rgb(168 132 98 / 0.7), 0 12px 24px -12px rgb(58 36 24 / 0.35); color: var(--print); text-align: left; font: 400 var(--text-base)/1.35 var(--font-sans); box-shadow: 0 18px 36px -18px rgb(26 18 14 / 0.55); }
.g-app { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ox-800); color: var(--paper); font: 600 var(--text-lg)/1 var(--font-sans); }
.g-nt { flex: 1; min-width: 0; }
.g-nt > span { display: flex; justify-content: space-between; gap: 8px; }
.g-nt b { font-weight: 600; }
.g-nt time { color: #4a4a46; font-size: var(--text-sm); }
.g-note.n2, .g-note.n3 { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* the heading only rises (it is the largest paint, so it is never hidden);
     the rest fades up after it, 60 ms apart */
  .g-rise { animation: g-rise 420ms var(--ease-out) var(--d, 0ms) both; }
  .g-in { animation: g-in 420ms var(--ease-out) var(--d, 0ms) both; }
  .g-note { opacity: 0; animation: g-cycle 12s var(--ease-std) infinite both; }
  .g-note.n1 { animation-delay: 0.9s; } .g-note.n2 { animation-delay: 4.9s; } .g-note.n3 { animation-delay: 8.9s; }
}
@keyframes g-rise { from { transform: translateY(12px); } to { transform: none; } }
@keyframes g-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes g-cycle { 0% { opacity: 0; transform: translateY(8px); } 7% { opacity: 1; transform: none; } 29% { opacity: 1; transform: none; } 35% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 0; } }

/* 1 · the problem */
.g-ic { display: block; width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--ox-800); color: var(--paper); box-sizing: border-box; }
.g-pain h3 { margin-top: 22px; font-size: var(--text-xl); }
.g-pain p { margin-top: 8px; color: var(--print-2); font-size: var(--text-body); }
.g-turn { display: flex; align-items: center; gap: 14px; margin-top: 48px; font: 600 var(--text-xl)/1.3 var(--font-sans); }
.g-turn svg { width: 28px; height: 28px; flex: none; color: var(--accent); }

/* 2 · the solution: one card per service, with the real guest screen */
.g-svc-pic { height: 230px; overflow: hidden; display: flex; justify-content: center; padding-top: 28px; background: var(--paper-2); }
.g-svc-pic .phone { width: 190px; max-width: 190px; flex: none; box-shadow: 0 18px 30px -16px rgb(26 18 14 / 0.45); }
.g-svc h3 { font-size: var(--text-xl); }
.g-svc p { margin-top: 8px; color: var(--print-2); font-size: var(--text-body); }
.g-link { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; }
.g-after { margin-top: 32px; font-size: var(--text-body); color: var(--ox-text); }
.g-after a { color: var(--on-ox); font-weight: 600; text-decoration: none; }

/* 3 · how it works: three steps, a switch changes the pictures */
.g-switch { display: inline-flex; gap: 4px; margin-top: 32px; padding: 5px; border-radius: var(--r-pill); }
.g-switch[hidden] { display: none; }
.g-switch button { border: 0; margin: 0; cursor: default; padding: 12px 22px; border-radius: var(--r-pill); background: transparent; color: var(--print); font: 600 var(--text-base)/1 var(--font-sans); transition: background-color 200ms var(--ease-std), color 200ms var(--ease-std); }
.g-switch button[aria-selected="true"] { background: var(--ox-800); color: #d5c4ae; }
.g-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: center; }
.g-steps[hidden] { display: none; }
.g-steps h3 { margin-top: 12px; font-size: var(--text-xl); }
.g-steps p { margin-top: 6px; color: var(--print-2); font-size: var(--text-body); }
.g-steps .g-num { margin-top: 22px; }
.g-shot { position: relative; height: 320px; display: flex; align-items: center; justify-content: center; }
.g-shot .phone { width: 128px; max-width: 128px; flex: none; }
.g-shot .phone-screen { font-size: 5.6cqw; }
.g-lap { width: 250px; }
.g-lap .lid { padding: 2.4%; }
.g-lap .lap-scr { padding: 5% 5%; }
.g-new { background: #a88462; border-radius: var(--r-mock-md); }

/* the drum fill: the scroll show lands on the beat when it comes into view */
.g-head { text-align: center; justify-items: center; margin-left: auto; margin-right: auto; }
.g-pads { display: flex; gap: 10px; height: 32px; align-items: flex-end; justify-content: center; margin-bottom: 8px; }
.g-pads i { display: block; width: 8px; height: var(--h); border-radius: 3px; background: var(--blush); transform-origin: bottom; opacity: 0.3; }
@media (prefers-reduced-motion: no-preference) {
  .js .g-drop:not(.is-hit) .g-pads i, .js .g-drop:not(.is-hit) .g-hit, .js .g-drop:not(.is-hit) .show-devices { opacity: 0; }
  .g-drop.is-hit .g-pads i { animation: g-pad 460ms var(--ease-std) var(--d) both; }
  .g-drop.is-hit .g-hit { animation: g-hit 240ms var(--ease-out) 560ms both; }
  .g-drop.is-hit .show-devices { animation: g-slam-dev 620ms var(--ease-emph) 760ms both; }
}
@keyframes g-pad { 0% { opacity: 0; transform: scaleY(0.2); } 30% { opacity: 1; transform: none; } 100% { opacity: 0.3; transform: scaleY(0.6); } }
@keyframes g-hit { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes g-slam-dev { 0% { opacity: 0; translate: 0 -40px; scale: 1.05; } 55% { opacity: 1; } 100% { opacity: 1; translate: 0 0; scale: 1; } }


/* 4 · price */
.g-price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
/* centred under the heading "Vad kostar det?" (--pay-x: booqy.js measures it) */
.g-pay { display: flex; align-items: center; gap: 18px; width: max-content; max-width: 100%; margin-top: 36px; margin-left: var(--pay-x, 0px); }
.g-pay-node { display: grid; justify-items: center; gap: 10px; font-weight: 600; }
.g-pay-node > span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ox-800); color: #d5c4ae; }
.g-pay-node.g-ok > span { background: var(--ok); }
.g-pay-node svg { width: 32px; height: 32px; }
.g-pay-go { width: 90px; height: 22px; margin-bottom: 30px; color: var(--accent); flex: none; }
.g-note-line { margin-top: 20px; color: var(--print-2); font-size: var(--text-body); }
.g-package .g-kick { color: var(--print); }
.g-yes { color: var(--ok); font-weight: 600; }
.g-maybe { color: var(--print-2); }
.g-package .g-btn { width: 100%; }

/* 5 · get started, and the close */
.g-start { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g-start li { display: flex; gap: 16px; align-items: flex-start; }
.g-start b { display: block; font-size: var(--text-xl); }
.g-start li > span:last-child { color: var(--ox-text); font-size: var(--text-body); }
.g-close h2 { font-size: var(--text-3xl); line-height: 0.95; letter-spacing: -0.03em; }
.g-close .g-lede { margin-top: 0; color: var(--print-2); }
.g-close .quick { margin-top: 6px; }
.g-close .quick .h { display: none; }
.g-close .quick ol { margin: 0 auto; }
.g-mail { color: var(--print-2); font-size: var(--text-base); }
.g-mail a { color: var(--accent); }

/* FAQ: the four most asked first, the rest one tap away (all in the HTML) */
.g-faq { max-width: 900px; }
.g-faq .faq { margin-top: 32px; }
.faq-more { margin-top: 8px; }
.faq-more > summary { list-style: none; cursor: default; display: inline-flex; align-items: center; gap: 10px; padding: 16px 0; font-weight: 600; font-size: var(--text-body); color: var(--accent); }
.faq-more > summary::-webkit-details-marker { display: none; }
.faq-more > summary svg { width: 20px; height: 20px; transition: transform 180ms var(--ease-out); }
.faq-more[open] > summary svg { transform: rotate(45deg); }
.faq-more .faq { margin-top: 0; }

/* footer: what Booqy sends (for guests who wonder, and for AWS) */
.foot-msgs { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(var(--wash) / 0.12); max-width: 90ch; }
.foot-msgs h2 { font: 600 var(--text-xs)/1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ox-3); margin-bottom: 10px; }
.foot-msgs p { font-size: var(--text-base); }

@media (max-width: 860px) {
  .g-cards, .g-steps, .g-start, .g-price { grid-template-columns: minmax(0, 1fr); }
  .g-steps { gap: 40px; }
  .g-pay { gap: 12px; }
}
@media (max-width: 560px) {
  .g-switch { display: flex; width: 100%; }
  .g-switch button { flex: 1; padding: 12px 6px; font-size: var(--text-base); }
  .g-actions .g-btn { width: 100%; }
  .g-assure { order: 2; margin: -6px 0 6px; }
  .g-actions .g-more { order: 3; }
  .g-ticks { flex-direction: column; align-items: center; gap: 10px; }
  .g-turn { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .g-btn, .g-pain, .g-svc, .lnav-demo, .g-switch button { transition: none; }
}

/* feature pages in the guided style */
.g-hero.page-hero h1 { font-size: var(--text-4xl); line-height: 0.95; max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.g-crumbs { margin: 0 0 22px; color: var(--ox-kick); }
.g-crumbs a { color: var(--ox-kick); }
.g-hero-lede { margin: 24px auto 0; color: var(--ox-text); text-wrap: balance; }
.g-rel-h { margin-top: 48px; font-weight: 600; font-size: var(--text-body); }
.g-paper .related a { color: var(--print); }
.g-close-sec .g-close { margin-top: 0; }
@media (max-width: 420px) { .g-hero.page-hero h1 { font-size: var(--text-2xl); overflow-wrap: break-word; } }

/* receipts, as the rest of the brand: thermal paper hanging from the rail,
   torn bottom edge, a printed first line; they print in as they scroll into
   view (booqy.js) */
.g-rail { margin-top: clamp(32px, 4vw, 48px); }
.g-hangs { margin-top: 0; padding: 0 6px; gap: 0 18px; align-items: start; }
.g-hangs > .hang:nth-child(1) > .ticket, .g-hangs > .hang:nth-child(1) > .ticket-link { rotate: -0.5deg; }
.g-hangs > .hang:nth-child(2) > .ticket, .g-hangs > .hang:nth-child(2) > .ticket-link { rotate: 0.6deg; }
.g-hangs > .hang:nth-child(3) > .ticket, .g-hangs > .hang:nth-child(3) > .ticket-link { rotate: -0.3deg; }
.g-hangs .ticket, .g-hangs .ticket-link { transform-origin: top center; }
.ticket.g-pain { padding: 26px 26px calc(28px + var(--tooth)); }
.g-tic { display: block; width: 34px; height: 34px; margin-top: 8px; color: var(--accent); }
.g-pain h3 { margin-top: 14px; font-size: var(--text-xl); }
.g-pain p { margin-top: 8px; color: var(--print-2); font-size: var(--text-body); }
.g-svc-link { height: 100%; }
.ticket.g-svc { padding: 22px 22px calc(26px + var(--tooth)); color: var(--print); }
.ticket.g-svc .g-svc-pic { height: 210px; padding-top: 22px; border-radius: var(--r-md); clip-path: inset(0 round 6px); }
.g-svc h3 { margin-top: 18px; font-size: var(--text-xl); }
.g-svc p { margin-top: 8px; color: var(--print-2); font-size: var(--text-body); }
.g-svc .more { margin-top: 12px; }
.g-package-wrap { width: 100%; max-width: 440px; justify-self: center; }
.g-rail-short { height: 22px; margin: 0 -12px; }
.g-package-wrap .hang { margin: 0 4px; }
.ticket.g-package { padding: 28px 26px calc(28px + var(--tooth)); }
.g-package .print { font-size: var(--text-sm); }
.g-package .print .row { padding: 5px 0; }
.g-package .g-btn { width: 100%; margin-top: 20px; }
.g-close-wrap { margin-top: clamp(56px, 7vw, 80px); max-width: 900px; margin-left: auto; margin-right: auto; }
.g-close-sec .g-close-wrap { margin-top: 0; }
.ticket.g-close { padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 56px) calc(clamp(32px, 4vw, 48px) + var(--tooth)); color: var(--print); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* before / after: smaller, a receipt beside the heading */

.g-vs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; font-size: var(--text-body); color: var(--ox-text); }
.g-vs li { display: flex; align-items: center; gap: 12px; }
.g-stamp { flex: none; padding: 3px 8px 2px; border: 2px solid currentColor; border-radius: var(--r-md); rotate: -4deg; font: 600 var(--text-xs)/1.2 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }
.g-stamp-old { color: var(--blush); }
.g-stamp-new { color: var(--ok-light); }


@media (max-width: 860px) {
  .g-hangs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(300px, 82%); gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 28px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--paper-line) transparent; }
  .g-ox .g-hangs { scrollbar-color: var(--ox-600) transparent; }
  .g-hangs > .hang { scroll-snap-align: start; }
  .g-hangs > .hang > .ticket, .g-hangs > .hang > .ticket-link { rotate: none !important; }

}
/* the small phones in cards and steps are flat: a 3D back plate would escape
   the clipped picture frame in Safari */
.g-svc-pic .g-ph { transform-style: flat; }
.g-svc-pic .g-ph::before { display: none; }

/* "Så funkar det" in 3D: the guest's phone faces right, the laptop sits
   between, the last phone faces left; they tilt a little with scroll and
   the pointer ([data-tilt], booqy.js), swing in when the section first comes
   into view and again when the switch changes, and a dashed arrow runs from
   one step to the next. Reduced motion: flat and still. */
.g-shot::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 4px; height: 36px; background: radial-gradient(closest-side, rgb(26 18 14 / 0.17), rgb(26 18 14 / 0.08) 55%, rgb(26 18 14 / 0) 100%); z-index: -1; }
.g-shot .tilt { display: flex; justify-content: center; }
.g-shot .tilt > .phone { width: 136px; max-width: 136px; }
.g-lap { position: relative; transform-style: preserve-3d; }
.tilt > .g-lap { --rx: 14deg; transform: rotateX(calc(var(--rx) + var(--sx))) rotateY(var(--px)); }
.g-lap .deck { left: -8%; right: -8%; height: 70%; }
@media (prefers-reduced-motion: no-preference) {
  .tilt > .g-lap { transition: transform 500ms var(--ease-out); }
  .js .g-flow:not(.is-in) .g-shot .tilt { opacity: 0; }
  .g-flow.is-in .g-steps.is-on .g-shot .tilt { animation: g-swing 480ms var(--ease-out) both; }
  .g-flow.is-in .g-steps li:nth-child(2) .g-shot .tilt { animation-delay: 60ms; }
  .g-flow.is-in .g-steps li:nth-child(3) .g-shot .tilt { animation-delay: 120ms; }
  .g-steps li:not(:last-child)::after { animation: g-march 900ms linear infinite; }
}
@keyframes g-swing { from { opacity: 0; transform: translateY(20px) rotateY(-12deg) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes g-march { to { background-position: 11px 0; } }
@media (prefers-reduced-motion: reduce) { .tilt > .g-lap { transform: none; } }
@media (min-width: 861px) {
  .g-steps { gap: 56px; }
  .g-steps li { position: relative; }
  .g-steps li:not(:last-child)::after { content: ""; position: absolute; top: 158px; right: -48px; width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); }
  .g-steps li:not(:last-child)::before { content: ""; position: absolute; top: 153px; right: -48px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
}

/* receipts in a row: straight, the same height, so the torn edges line up;
   on paper one soft shadow (the brand's sharp second shadow drew a double
   zigzag on off-white) */
.g-hangs { align-items: stretch; }
.g-hangs > .hang > .ticket, .g-hangs > .hang > .ticket-link { rotate: none !important; height: 100%; }
.g-hangs > .hang > .ticket-link > .ticket { height: 100%; }
.g-paper .hang { filter: drop-shadow(0 0 1px rgb(107 74 46 / 0.7)) drop-shadow(0 14px 22px rgb(58 36 24 / 0.2)); }
.g-paper .ticket::before { background: none; }

/* the phone in each service receipt: one clean moment from the guest's site,
   big enough to read, rising out of the bottom of its frame */
.ticket.g-svc .g-svc-pic { height: 250px; padding-top: 24px; }
.g-svc-pic .g-card-ph { width: 220px; max-width: 220px; }
.g-card-ph .ph-body { min-height: 13em; }
.g-card-ph .scr { padding: 0.95em 1em; }
.g-card-ph .ph-h { margin-bottom: 0.7em; }
.ph-sum { display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: 0.65em; }
.ph-sum span { padding: 0.4em 0.65em; border-radius: var(--r-mock-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper-line); font-weight: 600; font-size: 0.82em; }
.ph-times-3 { grid-template-columns: repeat(3, 1fr); margin: 0 0 0.2em; }
.ph-times-3 span { padding: 0.65em 0; font-size: 0.85em; }
.g-card-ph .ph-btn { margin-top: 0.8em; }
.g-card-ph .ph-item { padding: 0.6em 0; }
.ph-cart-flow { position: static; opacity: 1; translate: none; margin-top: 0.9em; }
.g-card-ph .ph-lines { font-size: 0.8em; gap: 0.5em; }
.g-card-ph .ph-signed { margin-top: 1.1em; }

/* Safari: in a 3D-turned phone, layers inside the screen (the lock screen,
   the sms) must stay in the screen's own layer, or depth sorting can draw
   the screen's background over them */
.phone-screen { isolation: isolate; transform: translateZ(0.01px); }

.g-steps .g-shot .tilt { transition: translate 300ms var(--ease-std), scale 300ms var(--ease-std); }
.g-shot::after { transition: opacity 300ms var(--ease-std); }

/* --- Every phone is an iPhone Pro: tall 19.5:9 body, thin bezel, titanium
   rim, large rounded corners, Dynamic Island and a status bar ------------- */
.phone {
  aspect-ratio: 9 / 19.5; padding: 2.6%; border-radius: 15% / 7%;
  /* dark body with a graphite rim, so the device stands apart from the light page */
  background: #1a120e;
  box-shadow: inset 0 0 0 1.5px #4a4a46, inset 0 0 0 3px #1a120e, 0 22px 36px -14px rgb(58 36 24 / 0.45), 0 2px 5px rgb(58 36 24 / 0.25);
}
.phone-screen { border-radius: 12.5% / 5.8%; padding-top: 13cqw; }
/* Dynamic Island */
.phone::after { content: ""; position: absolute; z-index: 8; top: 4.6cqw; left: 50%; width: 31%; height: 9cqw; translate: -50% 0; border-radius: var(--r-pill); background: #1a120e; pointer-events: none; }
/* status bar: time left of the island, battery right of it */
.phone-screen::before { content: "18:47"; position: absolute; z-index: 7; top: 6.6cqw; left: 10cqw; font: 600 4.4cqw/1 var(--font-sans); letter-spacing: -0.01em; color: var(--print); }
.phone-screen::after { content: ""; position: absolute; z-index: 7; top: 6.8cqw; right: 9cqw; width: 6.4cqw; height: 3.1cqw; border-radius: 1cqw; box-shadow: inset 0 0 0 0.45cqw var(--print); background: linear-gradient(90deg, var(--print) 0 70%, transparent 70%) 0.9cqw 0.9cqw / calc(100% - 1.8cqw) calc(100% - 1.8cqw) no-repeat; opacity: 0.85; }
.phone-screen:has(.scr.lock.on)::before, .phone-screen:has(.scr.lock.on)::after { color: #d5c4ae; }
.phone-screen:has(.scr.lock.on)::after { box-shadow: inset 0 0 0 0.45cqw #d5c4ae; background: linear-gradient(90deg, #d5c4ae 0 70%, transparent 70%) 0.9cqw 0.9cqw / calc(100% - 1.8cqw) calc(100% - 1.8cqw) no-repeat; }
.scr.lock { padding-top: 26cqw; }
.ph-url { margin-top: 0.2em; }
@media (max-width: 560px) { .phone { padding: 2.6%; border-radius: 15% / 7%; } .phone-screen { border-radius: 12.5% / 5.8%; } }

/* the service receipts show the whole phone, standing in its frame */
.ticket.g-svc .g-svc-pic { height: auto; padding: 22px 0; align-items: center; }
.g-svc-pic .g-card-ph { width: 190px; max-width: 190px; }
.g-card-ph .ph-body { min-height: 0; }
/* the home indicator */
.phone-screen > .ph-body::after { content: ""; position: absolute; left: 50%; bottom: 2.6cqw; width: 36%; height: 1.3cqw; translate: -50% 0; border-radius: var(--r-pill); background: var(--print); opacity: 0.85; }
.scr.lock::after { content: ""; position: absolute; left: 50%; bottom: 2.6cqw; width: 36%; height: 1.3cqw; translate: -50% 0; border-radius: var(--r-pill); background: #d5c4ae; opacity: 0.85; }
/* the screen sits exactly inside the bezel, whatever the phone's height */
.phone { padding: 0; }
.phone-screen { position: absolute; inset: 2.6cqw; width: auto; height: auto; }
.phone-screen:has(.scr.lock.on)::before { content: ""; }

/* Bordsbokning receipt: the real "Välj ert bord" step, a 3D floor plan that
   turns slowly while one table becomes the guest's pick */
.ph-seg { display: inline-flex; gap: 0.2em; margin-bottom: 0.6em; padding: 0.2em; border-radius: var(--r-mock-md); background: var(--paper-2); font: 600 0.7em/1 var(--font-sans); }
.ph-seg span { padding: 0.35em 0.7em; border-radius: var(--r-mock-md); color: var(--print-2); }
.ph-seg .on { background: var(--print); color: #d5c4ae; }
.ph-floor { perspective: 26em; height: 11.5em; display: grid; place-items: center; margin: 0.2em 0 0.4em; }
.fp { position: relative; width: 82%; aspect-ratio: 1.15; border-radius: var(--r-mock-md); background: #a88462; box-shadow: inset 0 0 0 0.25em #6b4a2e, 0 0.6em 1.2em -0.6em rgb(26 18 14 / 0.35); transform: rotateX(52deg) rotateZ(-28deg); }
.fp-bar { position: absolute; left: 6%; right: 40%; bottom: 4%; height: 7%; border-radius: 0.2em; background: #6b4a2e; }
.tb { position: absolute; left: var(--x); top: var(--y); width: 17%; height: 14%; border-radius: 0.25em; background: #d5c4ae; box-shadow: 0 0.32em 0 #6b4a2e; font-style: normal; display: grid; place-items: center; }
.tb.round { width: 15%; height: auto; aspect-ratio: 1; border-radius: 50%; }
.tb.wide { width: 24%; }
.tb b { font: 600 0.62em/1 var(--font-sans); color: var(--print-2); transform: rotateZ(28deg); }
.tb.taken { background: #6b4a2e; box-shadow: 0 0.32em 0 #4a4a46; }
.tb.taken b { color: var(--accent); }
.tb.pick { background: #4a4a46; box-shadow: 0 0.32em 0 #1a120e; }
.tb.pick b { color: #d5c4ae; }
.ph-legend { display: flex; justify-content: center; gap: 0.8em; font: 600 0.62em/1 var(--font-sans); color: var(--print-2); }
.ph-legend .lg::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.3em; border-radius: var(--r-mock-md); vertical-align: -0.1em; background: #d5c4ae; }
.ph-legend .pick::before { background: #4a4a46; }
.ph-legend .taken::before { background: #6b4a2e; }
@media (prefers-reduced-motion: no-preference) {
  .fp { animation: g-fp 10s var(--ease-std) infinite; }
  .tb.pick { animation: g-pick 5s var(--ease-std) infinite; }
}
@keyframes g-fp { 0%, 100% { transform: rotateX(52deg) rotateZ(-28deg); } 50% { transform: rotateX(48deg) rotateZ(-14deg); } }
@keyframes g-pick { 0%, 18% { background: #d5c4ae; box-shadow: 0 0.32em 0 #6b4a2e; translate: 0 0; } 26%, 90% { background: #4a4a46; box-shadow: 0 0.42em 0 #1a120e; translate: 0 -0.1em; } 100% { background: #d5c4ae; box-shadow: 0 0.32em 0 #6b4a2e; translate: 0 0; } }

/* the receipts' phones follow the pointer (data-tilt); no idle floating */
.g-svc-pic .tilt { display: flex; justify-content: center; }
.g-svc-pic .tilt > .phone { --rx: 4deg; }

/* the floor plan in the Bordsbokning phone: a real layout drawn in the admin's
   layout editor (entrance, windows, kassa, bar, kitchen, tables), turning
   gently, with the guest's pick pulsing on table T7 */
.ph-floor { height: auto; perspective: 30em; margin: 0.4em 0 0.3em; }
.fp-img { position: relative; width: 100%; transform: rotateX(10deg); transform-origin: center; }
.fp-img img { display: block; width: 100%; height: auto; border-radius: var(--r-mock-md); }
.fp-pick { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: inline-flex; align-items: center; gap: 0.25em; padding: 0.2em 0.45em 0.2em 0.25em; border-radius: var(--r-pill); background: #4a4a46; color: #d5c4ae; font: 600 0.55em/1 var(--font-sans); white-space: nowrap; box-shadow: 0 0.3em 0.6em -0.2em rgb(26 18 14 / 0.4); }
.fp-pick i { width: 0.9em; height: 0.9em; border-radius: 50%; background: #d5c4ae; box-shadow: inset 0 0 0 0.22em #4a4a46; }
.ph-hint { margin: 0.2em 0 0; text-align: center; font-size: 0.68em !important; color: var(--print-2); }
@media (prefers-reduced-motion: no-preference) {
  .fp-img { animation: g-fp2 9s var(--ease-std) infinite; }
  .fp-pick { animation: g-pick2 2.4s var(--ease-std) infinite; }
}
@keyframes g-fp2 { 0%, 100% { transform: rotateX(10deg) rotateY(-6deg); } 50% { transform: rotateX(16deg) rotateY(6deg); } }
@keyframes g-pick2 { 0%, 100% { scale: 1; box-shadow: 0 0 0 0 rgb(74 74 70 / 0.45), 0 0.3em 0.6em -0.2em rgb(26 18 14 / 0.4); } 50% { scale: 1.06; box-shadow: 0 0 0 0.45em rgb(74 74 70 / 0), 0 0.3em 0.6em -0.2em rgb(26 18 14 / 0.4); } }
.ph-floor { overflow: visible; margin-left: -0.9em; margin-right: -0.9em; }
.fp-img { width: 116%; margin-left: -8%; transform: rotateX(4deg); }
@keyframes g-fp2 { 0%, 100% { transform: rotateX(4deg) rotateY(-5deg); } 50% { transform: rotateX(9deg) rotateY(5deg); } }
.fp-pick { font-size: 0.6em; }
/* the floor plan fills the phone's width, edge to edge, big enough to read */
.g-card-ph .scr:has(.ph-floor) { padding-left: 0; padding-right: 0; }
.g-card-ph .scr:has(.ph-floor) .ph-h, .g-card-ph .scr:has(.ph-floor) .ph-btn { margin-left: 1em; margin-right: 1em; }
.ph-floor { margin: 0.3em 0 0.4em; perspective: 40em; }
.fp-img { width: 100%; margin-left: 0; transform: none; }
.fp-img img { border-radius: 0; }
@keyframes g-fp2 { 0%, 100% { transform: rotateY(-4deg) scale(1); } 50% { transform: rotateY(4deg) scale(1.02); } }
.fp-pick { font-size: 0.7em; }
/* the guest's pick: a pulsing green ring around table T5, so its label stays readable */
.fp-ring { position: absolute; left: var(--x); top: var(--y); width: 21%; aspect-ratio: 2.1; translate: -50% -50%; rotate: 28deg; border-radius: 50%; border: 0.22em solid #4a4a46; box-shadow: 0 0 0 0.12em rgb(213 196 174 / 0.8); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .fp-ring { animation: g-ring 2.2s var(--ease-std) infinite; } }
@keyframes g-ring { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.1; opacity: 0.7; } }
/* bigger phones in the service receipts */
.g-svc-pic .g-card-ph { width: 236px; max-width: 236px; }
.scr:has(.ph-floor) .ph-legend { margin-top: 0.2em; } .scr:has(.ph-floor) .ph-hint { margin: 0.5em 1em 0; }

/* the table picker plays a guest choosing: a tap lands on T3 and it turns
   green, then T4; three snapshots of the admin's 3D layout cross-fade.
   Reduced motion: the finished choice, still. */
.fp-frames { position: relative; }
.fp-frames img:not(:first-child) { position: absolute; inset: 0; opacity: 0; }
.fp-tap { position: absolute; left: var(--x); top: var(--y); width: 1.9em; height: 1.9em; margin: -0.95em 0 0 -0.95em; border-radius: 50%; background: rgb(26 18 14 / 0.22); box-shadow: 0 0 0 0.15em rgb(213 196 174 / 0.9); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .fp-f1 { animation: g-f1 8s var(--ease-std) infinite; }
  .fp-f2 { animation: g-f2 8s var(--ease-std) infinite; }
  .fp-t1 { animation: g-t1 8s var(--ease-std) infinite; }
  .fp-t2 { animation: g-t2 8s var(--ease-std) infinite; }
}
@media (prefers-reduced-motion: reduce) { .fp-f2 { opacity: 1 !important; } }
@keyframes g-f1 { 0%, 19% { opacity: 0; } 23%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes g-f2 { 0%, 44% { opacity: 0; } 48%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes g-t1 { 0%, 14% { opacity: 0; scale: 1.4; } 17% { opacity: 1; scale: 1; } 21% { opacity: 1; scale: 0.85; } 26%, 100% { opacity: 0; scale: 1.6; } }
@keyframes g-t2 { 0%, 39% { opacity: 0; scale: 1.4; } 42% { opacity: 1; scale: 1; } 46% { opacity: 1; scale: 0.85; } 51%, 100% { opacity: 0; scale: 1.6; } }

/* --- "Så ser det ut i verkligheten": a bright product showcase -------------
   Off-white ground with dark ink; the MacBook (restaurant) on the left and the
   iPhone (guest) beside it with a clear gap, never in front of the screen;
   larger screen text; the stage starts right under the heading. */
.tour { color: var(--print); border-top: 1px solid var(--paper-line); }
.tour .g-kick { color: var(--accent); }
.tour .g-lede { color: var(--print-2); }
.tour .g-pads i { background: var(--accent); }
.show-kicker { color: var(--print-2); }
.show-steps li { border-left-color: var(--paper-line); }
.show-steps p { color: var(--print-2); }
.js .tour .show-steps li.on { border-left: 2px solid var(--print); }
.tour .show-steps .num { background: var(--print); color: var(--paper); }
.show-who { color: var(--print-2); }
.tour .show-arrow { color: var(--accent); }

.tour .g-vs { color: var(--print-2); }
.tour .g-stamp-old { color: var(--accent); }
.tour .g-stamp-new { color: var(--ok); }
.tour .show-dots span { background: var(--paper-line); }
.tour .show-dots span.on { background: var(--print); }

/* the stage hugs the heading instead of centring in the viewport */
.tour .band-head { margin-bottom: clamp(8px, 1.5vw, 16px); }
.js .tour .show-stage { align-items: start; padding-top: clamp(8px, 2vh, 24px); }
@media (min-width: 861px) {
  .show-grid { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); }
  .show-rig { max-width: 820px; }
}

/* devices side by side: laptop 0-68 %, phone 75-100 % */
.show-rig { aspect-ratio: 16 / 10.4; transform: rotateX(4deg) rotateY(-6deg); }
.laptop { left: 0; top: 13%; width: 68%; }
.lid { padding: 1.4%; border-radius: 14px 14px 4px 4px; background: #1a120e; box-shadow: inset 0 0 0 1.5px #4a4a46, 0 28px 40px -20px rgb(58 36 24 / 0.45); }
.lid::after { top: 0; width: 13%; height: 3.2%; aspect-ratio: auto; border-radius: 0 0 6px 6px; background: #3a2418; }
.lid-screen { border-radius: 6px; font-size: 2.5cqw; }
.deck { left: -6%; right: -6%; }
.show-phone { left: auto; right: 0; bottom: 0; width: 25%; transform: none; }
.show-phone .phone-screen { font-size: 6cqw; }
.tour.focus-phone .show-phone { transform: translateY(-2%); }
.tour.focus-lap .laptop { transform: translateY(-1.5%); }
.show-arrow { left: 66%; top: 6%; width: 12%; transform: none; }
.tour.to-lap .show-arrow { transform: scaleX(-1); }
.show-who-lap { left: 1%; top: 2%; }
.show-who-ph { right: 2%; bottom: auto; top: 16%; }
@media (max-width: 560px) {
  .show-who-ph { display: none; }
  .lid-screen { font-size: 2.5cqw; }
  .show-phone { width: 27%; }
  .laptop { width: 66%; }
}
.show-who-ph { top: 8%; right: 4%; }
.show-phone .ios-note { font-size: 0.82em; }
.show-phone .lk-time { font-size: 3.8em; }
/* the phone stands straight on the receipt paper, no beige box behind it */
.ticket.g-svc .g-svc-pic { background: transparent; }

/* "Från pärm till en skärm" sits on the brand oxblood, edge to edge, after
   the off-white scroll show */


.tour .g-vs { color: var(--ox-text); }
.tour .g-stamp-old { color: var(--blush); }
.tour .g-stamp-new { color: var(--ok-light); }


/* The scroll show pins as one frame: the heading, the step list and the
   devices lock in place right under the chapter bar (its measured height,
   --lnav-h, booqy.js), step 1 active, and the steps advance from there. */
.tour { padding-top: 0; }
.show-head .band-head { margin: 0 auto clamp(10px, 2vh, 22px); }
.js .tour .show-stage { top: var(--lnav-h, 53px); height: calc(100vh - var(--lnav-h, 53px)); height: calc(100svh - var(--lnav-h, 53px)); display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; padding-top: clamp(16px, 4vh, 44px); }
.tour .show-grid { flex: 0 0 auto; }
html:not(.js) .tour .show-head { padding-top: clamp(48px, 6vw, 80px); }
/* short screens: the devices and steps stay whole, the heading gets smaller */
@media (max-height: 820px) {
  .tour .show-head .g-pads { display: none; }
  .tour .show-head .g-h2 { font-size: var(--text-2xl); }
  .tour .show-head .g-lede { margin-top: 6px; font-size: var(--text-base); }
  .js .tour .show-stage { padding-top: 12px; }
}
@media (max-height: 700px) {
  .tour .show-head .g-lede { display: none; }
}
@media (max-width: 860px) {
  .tour .show-head .g-pads { display: none; }
  .tour .show-head .g-kick { margin-bottom: 8px; }
  .tour .show-head .g-h2 { font-size: var(--text-2xl); }
  .tour .show-head .g-lede { margin-top: 6px; font-size: var(--text-base); }
  .js .tour .show-stage { padding-top: 14px; }
}
.tour .show-head .g-lede { margin-top: 10px; }
.tour .show-head .g-pads { height: 24px; margin-bottom: 4px; }
/* the devices never grow past the height that is left under the heading */
@media (min-width: 861px) {
  .tour .show-rig { max-width: min(820px, calc((100svh - var(--lnav-h, 53px) - 330px) * 1.5)); }
}

/* the one-time drag hint: a soft pulse on the handle while it glides */


/* --- Scroll show as scrollytelling (booqy.js .is-scrolly) -------------------
   The step blocks scroll with the page; the devices stay pinned beside them
   (on phones above them) and unpin with the last block. Nothing fades away:
   the current block is at full strength, the others stay readable. */
.js .tour.is-scrolly .show-track { height: auto; }
.js .tour.is-scrolly .show-stage { position: static; height: auto; display: block; overflow: visible; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.tour.is-scrolly .show-head .band-head { margin-bottom: clamp(24px, 4vw, 56px); }
.tour.is-scrolly .show-grid { align-items: start; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.tour.is-scrolly .show-dots { display: none !important; }
.tour.is-scrolly .show-devices { position: sticky; top: calc(var(--lnav-h, 53px) + 4vh); z-index: 2; }
.tour.is-scrolly .show-rig { transform: rotateX(4deg) rotateY(-6deg); will-change: transform; }
.tour.is-scrolly .show-steps { display: block; padding: 18vh 0 22vh; min-height: 0; }
.js .tour.is-scrolly .show-steps li,
.js .tour.is-scrolly .show-steps li:not(.on) { display: flex; flex-direction: column; justify-content: center; min-height: 64vh; padding: 0 0 0 22px; border-left: 1px solid var(--paper-line); opacity: 1; transition: border-color 320ms var(--ease-std); }
.js .tour.is-scrolly .show-steps li h3, .js .tour.is-scrolly .show-steps li h3 *, .js .tour.is-scrolly .show-steps li p, .js .tour.is-scrolly .show-steps li .show-kicker { transition: color 320ms var(--ease-std); }
/* steps not in view are muted with colour, not opacity, so they keep readable contrast on this darker paper: headings 3.6 (large text), text 4.8 */
.js .tour.is-scrolly .show-steps li:not(.on) h3, .js .tour.is-scrolly .show-steps li:not(.on) h3 * { color: #665a50; }
/* the step number keeps its paper digit on the espresso badge */
.js .tour.is-scrolly .show-steps li:not(.on) h3 .num { color: var(--paper); }
.js .tour.is-scrolly .show-steps li:not(.on) p, .js .tour.is-scrolly .show-steps li:not(.on) .show-kicker { color: #5c5148; }
.js .tour.is-scrolly .show-steps li.on { border-left: 1px solid var(--print); padding-left: 22px; }
.js .tour.is-scrolly .show-steps li:not(.on) p, .js .tour.is-scrolly .show-steps li:not(.on) .show-kicker { display: block; }
.tour.is-scrolly .show-kicker { font-size: var(--text-lg); margin-bottom: 12px; }
.tour.is-scrolly .show-steps h3 { font-size: var(--text-2xl); line-height: 1.08; font-weight: 600; letter-spacing: -0.015em; }
.tour.is-scrolly .show-steps h3 .num { font-size: 0.42em; }
.tour.is-scrolly .show-steps p { margin-top: 12px; font-size: var(--text-lg); max-width: 34ch; }
.tour.is-scrolly .ad-row[data-on].on, .tour.is-scrolly .k-card[data-on].on { animation: none; }
.tour.is-scrolly .is-new { background-color: #a88462; transition: background-color 1200ms var(--ease-std); }
.tour.is-scrolly .ad-row, .tour.is-scrolly .k-card { transition: background-color 1200ms var(--ease-std); }
/* the hairline progress under the devices */
/* the bar itself is the hairline progress Bar (assets/brand/brand-static-*.css) */
.show-prog { margin: 18px auto 0; max-width: 520px; }
.tour:not(.is-scrolly) .show-prog { display: none; }
@media (min-width: 861px) {
  .tour.is-scrolly .show-rig { max-width: min(820px, calc((100svh - var(--lnav-h, 53px) - 140px) * 1.5)); }
}
@media (max-width: 860px) {
  .tour.is-scrolly .show-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tour.is-scrolly .show-devices { order: -1; top: var(--lnav-h, 53px); padding: 10px 0 12px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); --lg-shadow: 0 10px 14px -14px rgb(26 18 14 / 0.3); }
  .tour.is-scrolly .show-rig { max-width: 440px; }
  .tour.is-scrolly .show-who { display: none; }
  .tour.is-scrolly .show-prog { margin-top: 10px; }
  .tour.is-scrolly .show-steps { padding: 6vh 0 30vh; }
  .js .tour.is-scrolly .show-steps li, .js .tour.is-scrolly .show-steps li:not(.on) { min-height: 46vh; justify-content: flex-start; padding-top: 4vh; }
  .tour.is-scrolly .show-steps h3 { font-size: var(--text-xl); }
}
@media (prefers-reduced-motion: reduce) {
  .js .tour.is-scrolly .show-steps li h3, .js .tour.is-scrolly .show-steps li h3 *, .js .tour.is-scrolly .show-steps li p, .js .tour.is-scrolly .show-steps li .show-kicker { transition: color 160ms linear; }
  .tour.is-scrolly .show-rig { transform: none; }
}
/* All screens: the pinned devices are drawn flat, with no 3D layers and no
   per-frame tilt (booqy.js), because Safari (iOS and Mac) flickered the
   laptop screen while scrolling a 3D layer inside the sticky box. */
@media all {
  .tour.is-scrolly .show-rig { transform: none !important; will-change: auto; }
  .tour .show-rig, .tour .laptop, .tour .phone { transform-style: flat; }
  /* the pinned box is one steady GPU layer, so iOS does not repaint its
     rounded, clipped screens on every scroll frame */
  .tour.is-scrolly .show-devices { transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  .tour .lid-screen { transform: translateZ(0); }
}
/* shorter blocks: the step you passed and the next one stay in view */
@media (min-width: 861px) {
  .js .tour.is-scrolly .show-steps li, .js .tour.is-scrolly .show-steps li:not(.on) { min-height: 38vh; }
  .tour.is-scrolly .show-steps { padding: 30vh 0 32vh; }
}
@media (max-width: 860px) {
  .js .tour.is-scrolly .show-steps li, .js .tour.is-scrolly .show-steps li:not(.on) { min-height: 30vh; }
}

/* --- Header: the "Tjänster" menu (booqy.js) ---------------------------------
   A disclosure: a real button with aria-expanded and a paper panel of links,
   each with a drawn icon in a tinted square, a bold title, one grey line and
   an arrow that slides in on keyboard focus. Click or tap toggles, Esc
   closes, arrows move. Phones and tablets: the same panel opens as a
   full-width sheet under the header row. Without JS it opens on focus. */
.nav { display: flex; margin-left: 8px; }
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: var(--r-md); background: none; color: var(--on-ox-2); font: 600 var(--text-base)/1.2 var(--font-sans); cursor: default; transition: background-color 160ms var(--ease-std), color 160ms var(--ease-std); }
.nav-dd.is-open .nav-dd-btn, .nav-dd-btn.is-here { color: var(--on-ox); background: rgb(var(--wash) / 0.08); }
.nav-dd-btn svg { width: 12px; height: 12px; margin-top: 1px; transition: rotate 220ms var(--ease-std); }
.nav-dd.is-open .nav-dd-btn svg { rotate: 180deg; }
.site-head:has(.nav-dd.is-open), .site-head:has(.nav-dd:focus-within) { z-index: 45; }
.nav-dd-panel { position: absolute; z-index: 60; top: calc(100% + 10px); left: -8px; width: 372px; max-width: calc(100vw - 2 * var(--gutter)); padding: 8px; color: var(--print); border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgb(58 36 24 / 0.06), 0 28px 56px -20px rgb(26 18 14 / 0.55); transform-origin: 28px 0; transition: opacity var(--t-ui) var(--ease-out), translate var(--t-ui) var(--ease-out), scale var(--t-ui) var(--ease-out), visibility 0s; }
/* covers the gap between the button and the panel */
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.js .nav-dd:not(.is-open) .nav-dd-panel { opacity: 0; translate: 0 -8px; scale: 0.97; visibility: hidden; pointer-events: none; transition: opacity 110ms var(--ease-in), translate 110ms var(--ease-in), scale 110ms var(--ease-in), visibility 0s 110ms; }
html:not(.js) .nav-dd:not(:focus-within) .nav-dd-panel { display: none; }
.nav-dd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-dd-list a { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--r-md); color: var(--print); text-decoration: none; transition: background-color 140ms var(--ease-std); }
.nav-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-md); background: #a88462; color: var(--ox-800); transition: background-color 140ms var(--ease-std), color 140ms var(--ease-std); }
.nav-ic svg { width: 22px; height: 22px; }
.nav-tx { display: grid; gap: 3px; min-width: 0; }
.nav-tx b { font: 600 var(--text-base)/1.2 var(--font-sans); color: var(--print); }
.nav-tx span { font-size: var(--text-sm); line-height: 1.3; color: var(--print-2); }
.nav-go { width: 18px; height: 18px; color: var(--ox-800); opacity: 0; translate: -6px 0; transition: opacity 160ms var(--ease-std), translate 220ms var(--ease-std); }
.site-head .nav-dd-list a:focus-visible { background: rgb(58 36 24 / 0.06); color: var(--print); }
.site-head .nav-dd-list a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.nav-dd-list a:focus-visible .nav-ic { background: #6b4a2e; }
.nav-dd-list a:focus-visible .nav-go { opacity: 1; translate: 0 0; }
.nav-dd-list a:active { background: rgb(58 36 24 / 0.1); }
.nav-dd-list a[aria-current="page"] .nav-ic { background: var(--ox-800); color: #d5c4ae; }
.nav-dd-list a[aria-current="page"] .nav-tx b::after { content: "Du är här"; margin-left: 8px; padding: 2px 7px; border-radius: var(--r-pill); background: #a88462; color: var(--ox-800); font: 600 var(--text-xs)/1.4 var(--font-sans); vertical-align: 2px; }
.nav-dd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 4px 0; padding: 12px 10px 6px; border-top: 1px solid var(--paper-line); color: var(--accent); font: 600 var(--text-base)/1.2 var(--font-sans); text-decoration: none; }
.nav-dd-foot svg { width: 18px; height: 18px; transition: translate 220ms var(--ease-std); }
.nav-dd-foot:focus-visible svg { translate: 3px 0; }
.site-head .nav-dd-foot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-md); }
/* phones and tablets: the same panel as a full-width sheet under the header row */
@media (max-width: 1060px) {
  .nav { display: flex; margin-left: 2px; }
  .site-head .wrap { position: relative; }
  .nav-dd { position: static; }
  .nav-dd-panel { left: var(--gutter); right: var(--gutter); top: calc(100% - 6px); width: auto; max-width: none; max-height: calc(100svh - var(--head-h, 72px) - 16px); overflow-y: auto; overscroll-behavior: contain; transform-origin: var(--dd-ox, 50%) 0; }
  .nav-dd-panel::before { display: none; }
  .nav-go { opacity: 0.45; translate: 0 0; }
}
@media (max-width: 380px) {
  .nav-dd-btn { padding: 8px 8px; }
  .nav-dd-list a { gap: 12px; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dd-panel, .js .nav-dd:not(.is-open) .nav-dd-panel { translate: none; scale: none; transition: opacity 120ms linear, visibility 0s 120ms; }
  .nav-dd-btn svg, .nav-go, .nav-dd-foot svg { transition: none; }
}

/* --- Home: "Allt på ett ställe" -----------------------------------------------
   It plays once when it comes into view ([data-reveal] gets .is-in in
   booqy.js); without JS or with reduced motion the end state just shows. */
.g-fine { margin-top: 18px; font-size: var(--text-base); color: var(--print-2); }
.g-ox .g-fine { color: var(--ox-text); opacity: 0.8; }
.g-checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; font-size: var(--text-body); font-weight: 600; }
.g-checks li { display: flex; align-items: center; gap: 10px; }
.g-checks svg { width: 20px; height: 20px; flex: none; color: var(--ok); }


.g-books { text-align: center; }
.g-books .g-lede { margin-left: auto; margin-right: auto; }
.g-hub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(40px, 130px) auto minmax(40px, 130px) minmax(0, 1fr); align-items: stretch; max-width: 980px; margin: clamp(40px, 6vw, 64px) auto 0; }
.g-hub ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; align-items: center; }
.g-hub-in { justify-items: end; gap: 0; min-height: 260px; }
.g-hub-out { justify-items: start; }
.g-hub-in li { padding: 10px 16px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgb(var(--wash) / 0.16); color: var(--on-ox); font-weight: 600; font-size: var(--text-base); white-space: nowrap; }
.g-hub-lines { width: 100%; height: 100%; overflow: visible; }
.g-hub-lines { clip-path: inset(0 0 0 0); transition: clip-path 450ms var(--ease-out); }
.g-hub-lines path { fill: none; stroke: rgb(var(--wash) / 0.45); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.g-hub-r { transition-delay: 250ms; }
.g-hub-r path { stroke: var(--ok-light); }
.g-hub-core { align-self: center; display: grid; justify-items: center; gap: 14px; padding: 26px 26px 20px; border-radius: var(--r-lg); color: var(--ox-800); box-shadow: 0 30px 50px -28px rgb(26 18 14 / 0.7); transition: opacity 300ms var(--ease-out), scale 300ms var(--ease-out); }
.g-hub-core > svg { width: 104px; height: auto; }
.g-hub-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill); background: var(--ox-800); color: #d5c4ae; font: 600 var(--text-sm)/1 var(--font-sans); white-space: nowrap; }
.g-hub-btn svg { width: 16px; height: 16px; }
.wm { padding: 12px 20px; border-radius: var(--r-md); color: var(--print); font: 600 var(--text-lg)/1 var(--font-sans); letter-spacing: -0.01em; white-space: nowrap; box-shadow: 0 18px 30px -20px rgb(26 18 14 / 0.6); transition: opacity 300ms var(--ease-out), translate 300ms var(--ease-out); }
/* Fortnox and Visma in their own logos (owner's files, trimmed, transparent),
   untouched colours on fog, same height */
.wm-logo { display: grid; place-items: center; padding: 14px 24px; background: #d5c4ae; }
.wm-logo img { display: block; width: auto; height: 26px; }
.wm-sub { font-size: var(--text-base); font-weight: 600; color: var(--on-ox); box-shadow: inset 0 0 0 1px rgb(var(--wash) / 0.16); }
.g-books-ticks { margin-top: clamp(40px, 6vw, 56px); }
.g-books .g-fine { margin-left: auto; margin-right: auto; max-width: 60ch; }
.js .g-hub:not(.is-in) .g-hub-lines { clip-path: inset(0 100% 0 0); }
.js .g-hub:not(.is-in) .g-hub-core { opacity: 0; scale: 0.94; }
.js .g-hub:not(.is-in) .wm { opacity: 0; translate: -10px 0; }
.js .g-hub.is-in .g-hub-core { transition-delay: 150ms; }
.js .g-hub.is-in .wm:nth-child(1) { transition-delay: 400ms; }
.js .g-hub.is-in .wm:nth-child(2) { transition-delay: 440ms; }
.js .g-hub.is-in .wm:nth-child(3) { transition-delay: 480ms; }
#bokforing { overflow-x: clip; }
.wm-sub { white-space: normal; }

/* phones and tablets: the hub stands up, sources on top, programs below */
@media (max-width: 860px) {
  .g-hub { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; }
  .g-hub-lines { display: none; }
  .g-hub-in, .g-hub-out { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 10px; min-height: 0; justify-items: stretch; width: 100%; max-width: 360px; }
  .g-hub-in li, .wm { text-align: center; white-space: normal; }
  .wm { font-size: var(--text-lg); }
  .wm-sub { grid-column: 1 / -1; font-size: var(--text-base); }
  .g-hub-core { margin: 30px 0; position: relative; }
  .g-hub-core::before, .g-hub-core::after { content: ""; position: absolute; left: 50%; width: 1.6px; height: 30px; background: rgb(var(--wash) / 0.45); }
  .g-hub-core::before { bottom: 100%; }
  .g-hub-core::after { top: 100%; background: var(--ok-light); }
  .js .g-hub:not(.is-in) .wm { translate: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-hub-lines, .g-hub-core, .wm { transition: none !important; }


  .js .g-hub:not(.is-in) .g-hub-lines { clip-path: none; }
  .js .g-hub:not(.is-in) .g-hub-core, .js .g-hub:not(.is-in) .wm { opacity: 1; scale: none; translate: none; }
}

/* --- Every screen, from a small iPhone to a wide monitor ---------------------
   The layout is drawn for laptops (px sizes, --max wrap). On wide monitors
   it scales up in steps (--z) so type and devices keep their share of the
   screen. Plain sections use zoom. The scroll story (.tour) and the chapter
   bar are scaled with real sizes instead, because WebKit and Chrome report
   positions and vh differently inside zoom and the pinned story measures
   both. Long Swedish words break in headings on the smallest phones. */
@media (min-width: 1800px) { :root { --z: 1.15; } }
@media (min-width: 2100px) { :root { --z: 1.3; } }
@media (min-width: 2400px) { :root { --z: 1.5; } }
@media (min-width: 3000px) { :root { --z: 1.8; } }
@media (min-width: 1800px) {
  .site-head, main > :not(.tour):not(.pb-sec), .site-foot { zoom: var(--z); }
  .tour, .lnav { --max: calc(1240px * var(--z)); --gutter: calc(40px * var(--z)); }
  .lnav-in { min-height: calc(52px * var(--z)); gap: calc(12px * var(--z)); }
  .lnav-ch a, .lnav-now, .lnav-name, .lnav-demo { font-size: calc(var(--text-base) * var(--z)); padding: calc(7px * var(--z)) calc(13px * var(--z)); }
  .tour .g-h2 { font-size: calc(var(--text-4xl) * var(--z)); }
  .tour .show-head .g-h2 { font-size: calc(var(--text-2xl) * var(--z)); }
  .tour .g-lede, .tour .show-head .g-lede { font-size: calc(var(--text-lg) * var(--z)); }
  .tour .g-kick, .tour .show-kicker { font-size: calc(var(--text-lg) * var(--z)); }
  .tour .show-steps h3 { font-size: calc(var(--text-lg) * var(--z)); }
  .tour .show-steps p { font-size: calc(var(--text-body) * var(--z)); }
  .tour.is-scrolly .show-rig { max-width: min(calc(820px * var(--z)), calc((100svh - var(--lnav-h, 53px) - 140px) * 1.5)); }

}
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
/* small phones (iPhone SE, 320-360 px): the slogan keeps two lines, the
   bookkeeping ticks stack with their check marks */
@media (max-width: 360px) { .g-hero h1 { font-size: var(--text-2xl); } }
@media (max-width: 560px) {
  .g-books-ticks { flex-direction: column; align-items: flex-start; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }
  .g-books-ticks li { align-items: flex-start; }
  .g-books-ticks svg { margin-top: 3px; }
}

/* WebKit divides vw by the zoom inside zoomed sections, Chrome does not, so
   on wide screens the clamp() sizes are pinned to their maximum (which they
   have reached at these widths anyway). Generated from the vw rules above. */
@media (min-width: 1800px) {
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }
  .lede { font-size: var(--text-lg); }
  .hero { padding-bottom: 96px; }
  .hero-grid { gap: 44px; }
  .hero-main .ticket { padding: 48px 52px calc(44px + var(--tooth)); }
  .hero h1 { font-size: var(--text-3xl); }
  .hero h1 .eyebrow { margin-bottom: 20px; padding-bottom: 14px; }
  .hero .lede { margin-top: 26px; }
  .actions { margin-top: 32px; }
  .ticket-foot { margin-top: 34px; }
  .band { padding: 128px 0; }
  .band-head { margin-bottom: 64px; }
  .ticket.wide { padding: 72px 72px calc(64px + var(--tooth)); }
  .own { gap: 80px; }
  .money { gap: 80px; }
  .zreport .ticket { padding: 44px 44px calc(34px + var(--tooth)); }
  .zreport h2 { font-size: var(--text-2xl); }
  .msgs { gap: 72px; }
  .faq summary { font-size: var(--text-lg); }
  .close { padding: 88px 0 120px; }
  .close .ticket { padding: 56px 60px calc(52px + var(--tooth)); }
  .close h2 { font-size: var(--text-4xl); }
  .page-hero h1 { font-size: var(--text-3xl); }
  .legal-wrap { padding: 8px 0 110px; }
  .legal .ticket { padding: 56px 60px calc(40px + var(--tooth)); }
  .legal h1 { font-size: var(--text-3xl); }
  .lost { padding: 20px 0 120px; }
  .lost h1 { font-size: var(--text-4xl); }
  .site-foot { padding: 80px 0 36px; }
  .demo-wrap { padding: 8px 0 110px; }
  .demo-grid { gap: 40px; }
  .demo-main .ticket { padding: 52px 52px calc(44px + var(--tooth)); }
  .demo-main h1 { font-size: var(--text-3xl); }
  .demo-rail { margin-top: 38px; }
  .demo-step legend { font-size: var(--text-xl); }
  .demo-done h2 { font-size: var(--text-2xl); }
  .demo-done-slip .big { font-size: var(--text-2xl); }
  .start .ticket { padding: 26px 30px calc(26px + var(--tooth)); }
  .start h3 { font-size: var(--text-2xl); }
  .quick { margin-top: 30px; }
  .scene-stage { gap: 26px; }
  .rail-zone:has(.hero-scene) > .rail { margin-right: calc((100% - 44px) / 2.2 + 44px - var(--gutter) * 0.5); }
  .what .ticket { padding: 26px 26px calc(24px + var(--tooth)); }
  .what h3 { font-size: var(--text-xl); }
  .price { gap: 80px; }
  .icons { gap: 44px 56px; }
  .mini-steps { margin: 24px 0 0; }
  .g-sec { padding: 128px 0; }
  .g-h2 { font-size: var(--text-4xl); }
  .g-lede { font-size: var(--text-lg); }
  .g-cards { margin: 48px 0 0; }
  .g-hero { padding: 128px 0 136px; }
  .g-hero h1 { font-size: var(--text-5xl); }
  .g-night { margin: 72px auto 0; }
  .g-pain h3 { font-size: var(--text-xl); }
  .g-turn { font: 600 var(--text-xl)/1.3 var(--font-sans); }
  .g-svc h3 { font-size: var(--text-xl); }
  .g-steps h3 { font-size: var(--text-xl); }

  .g-price { gap: 72px; }
  .g-start b { font-size: var(--text-xl); }
  .g-close h2 { font-size: var(--text-3xl); }
  .g-hero.page-hero h1 { font-size: var(--text-4xl); }
  .g-rail { margin-top: 48px; }
  .g-pain h3 { font-size: var(--text-xl); }
  .g-svc h3 { font-size: var(--text-xl); }
  .g-close-wrap { margin-top: 80px; }
  .ticket.g-close { padding: 56px 56px calc(48px + var(--tooth)); }

  .g-hub { margin: 64px auto 0; }
  .g-books-ticks { margin-top: 56px; }
}

/* --- "Känner du igen dig?": the owner's evening in three stages ---------------
   Inline SVG figures (flat, thick outline) in Booqy colours. Desktop: the
   scene pins on the right while the three captions scroll on the left; the
   caption crossing the middle of the screen picks the scene (booqy.js), which
   settles in with a small spring. Phones and tablets: scene above caption,
   each scene plays when it comes into view. Loops only run on the scene that
   is .on. Reduced motion: still figures. Without JS: everything stacked,
   loops running. Not zoomed on wide screens (sticky + vh), scaled below. */
.pb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: clamp(32px, 4vw, 48px); }
.pb-scene { position: relative; border-radius: var(--r-lg); background: #f6eee6; box-shadow: inset 0 0 0 1px rgb(53 0 1 / 0.06); overflow: hidden; }
.pb-svg { display: block; width: 100%; height: auto; }
.pb-text { padding-bottom: 28px; }
.pb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.pb-tag { padding: 6px 12px; border-radius: var(--r-pill); font: 600 var(--text-sm)/1 var(--font-sans); letter-spacing: 0.01em; }
.pb-t1 { background: #fbe3c4; color: #6e4300; }
.pb-t2 { background: #f8d2d2; color: #9e1d26; }
.pb-t3 { background: #dfe5ec; color: #2f4256; }
.pb-when { font: 600 var(--text-xs)/1 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--print-2); }
.pb-text h3 { margin-top: 14px; font-size: var(--text-2xl); line-height: 1.08; letter-spacing: -0.015em; font-weight: 600; text-wrap: balance; }
.pb-text h3 + p { margin-top: 10px; max-width: 34ch; font-size: var(--text-lg); color: var(--print-2); }
@media (min-width: 561px) {
  .pb { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: 32px; align-items: center; }
  .pb-text { padding-bottom: 0; }
  .pb-scene[data-i="0"] { grid-row: 1; } .pb-text[data-i="0"] { grid-row: 1; }
  .pb-scene[data-i="1"] { grid-row: 2; } .pb-text[data-i="1"] { grid-row: 2; }
  .pb-scene[data-i="2"] { grid-row: 3; } .pb-text[data-i="2"] { grid-row: 3; }
  .pb-scene { grid-column: 1; } .pb-text { grid-column: 2; }
}
/* desktop with JS: captions scroll, the scene pins and changes */
@media (min-width: 861px) {
  .js .pb { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 36px; }
  .js .pb-text { grid-column: 1; min-height: 64vh; display: flex; flex-direction: column; justify-content: center; }
  /* the captions not in view are muted with colour, not opacity, so they keep AA contrast */
  .js .pb-text h3, .js .pb-text h3 + p, .js .pb-text .pb-when, .js .pb-text .pb-tag { transition: color 400ms var(--ease-std), background-color 400ms var(--ease-std), box-shadow 400ms var(--ease-std); }
  .js .pb-text:not(.on) h3 { color: #8a7d70; }
  .js .pb-text:not(.on) h3 + p, .js .pb-text:not(.on) .pb-when { color: #756a5f; }
  .js .pb-text:not(.on) .pb-tag { background: transparent; color: #756a5f; box-shadow: inset 0 0 0 1px #c9bcab; }
  /* pinned in the middle of the screen below the chapter bar (--pb-h: the scene's height, booqy.js) */
  .js .pb-scene { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: max(calc(var(--lnav-h, 53px) + 16px), calc((100vh + var(--lnav-h, 53px) - var(--pb-h, 88vh)) / 2)); justify-self: center; width: min(100%, calc((100vh - var(--lnav-h, 53px) - 12vh) * 4 / 3)); opacity: 0; visibility: hidden; translate: 0 22px; scale: 0.96; transition: opacity 200ms var(--ease-out), translate var(--t-panel) var(--ease-spring), scale var(--t-panel) var(--ease-spring), visibility 0s 200ms; }
  .js .pb-scene.on { opacity: 1; visibility: visible; translate: 0 0; scale: 1; transition-delay: 0s; }
  .js .pb-sec .g-turn { margin-top: clamp(96px, 9vw, 144px); }
}
/* the loops, in the order the eye meets them */
.pb-a { animation-play-state: paused !important; }
.pb-scene.on .pb-a, html:not(.js) .pb-a { animation-play-state: running !important; }
.pb-tix { transform-box: fill-box; transform-origin: 50% 0; animation: pb-swing 1.8s ease-in-out var(--d, 0s) infinite alternate; }
@keyframes pb-swing { from { rotate: -4deg; } to { rotate: 4deg; } }
.pb-ring { transform-box: fill-box; transform-origin: 50% 100%; animation: pb-ring 1.5s linear infinite; }
@keyframes pb-ring { 0%, 34%, 100% { rotate: 0deg; } 4% { rotate: -10deg; } 9% { rotate: 10deg; } 14% { rotate: -10deg; } 19% { rotate: 10deg; } 24% { rotate: -7deg; } 29% { rotate: 4deg; } }
.pb-waves { transform-box: fill-box; transform-origin: 50% 50%; animation: pb-waves 1.5s ease-out infinite; }
@keyframes pb-waves { 0% { opacity: 0; scale: 0.88; } 8% { opacity: 1; } 40% { opacity: 0; scale: 1.14; } 100% { opacity: 0; scale: 1.14; } }
.pb-ringtxt { transform-box: fill-box; transform-origin: 50% 50%; animation: pb-ringtxt 1.5s ease-out infinite; }
@keyframes pb-ringtxt { 0%, 30% { opacity: 1; scale: 1.06; } 60%, 100% { opacity: 0.25; scale: 1; } }
.pb-torn { transform-box: fill-box; transform-origin: 56% 72%; animation: pb-torn 2.4s ease-in-out infinite alternate; }
@keyframes pb-torn { from { rotate: -3deg; } to { rotate: 3deg; } }
.pb-sweat { animation: pb-sweat 1.8s ease-in infinite; }
@keyframes pb-sweat { 0% { opacity: 0; translate: 0 -4px; } 20% { opacity: 1; } 80% { opacity: 1; translate: 0 16px; } 100% { opacity: 0; translate: 0 20px; } }
.pb-steam { animation: pb-steam 2.2s ease-in-out infinite; }
@keyframes pb-steam { 0% { opacity: 0; translate: 0 6px; } 40% { opacity: 0.5; } 100% { opacity: 0; translate: 0 -10px; } }
.pb-jitter { animation: pb-jitter 0.32s steps(2) infinite; }
@keyframes pb-jitter { 0% { translate: -1.2px 0; } 100% { translate: 1.2px 0; } }
.pb-page { transform-box: fill-box; transform-origin: 0% 50%; animation: pb-flip 1.6s ease-in-out infinite; }
@keyframes pb-flip { 0% { scale: 1 1; opacity: 1; } 45% { scale: -1 1; opacity: 1; } 55% { scale: -1 1; opacity: 0; } 56% { scale: 1 1; opacity: 0; } 70%, 100% { scale: 1 1; opacity: 1; } }
.pb-fly { animation: pb-fly1 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite; opacity: 0; }
.pb-fly2 { animation-name: pb-fly2; animation-delay: 0.8s; }
.pb-fly3 { animation-name: pb-fly3; animation-delay: 1.6s; }
@keyframes pb-fly1 { 0% { opacity: 0; translate: 20px 40px; rotate: 0deg; } 12% { opacity: 1; } 100% { opacity: 0; translate: -110px -120px; rotate: -40deg; } }
@keyframes pb-fly2 { 0% { opacity: 0; translate: 0 40px; rotate: 0deg; } 12% { opacity: 1; } 100% { opacity: 0; translate: -10px -150px; rotate: 25deg; } }
@keyframes pb-fly3 { 0% { opacity: 0; translate: -20px 40px; rotate: 0deg; } 12% { opacity: 1; } 100% { opacity: 0; translate: 110px -110px; rotate: 45deg; } }
.pb-fly, .pb-fly > * { transform-box: fill-box; transform-origin: 50% 50%; }
.pb-double { transform-box: fill-box; transform-origin: 50% 50%; animation: pb-double 0.9s ease-in-out infinite alternate; }
@keyframes pb-double { from { scale: 1; } to { scale: 1.1; } }
.pb-q { animation: pb-q 1.4s ease-in-out infinite alternate; }
.pb-q2 { animation-delay: 0.5s; }
@keyframes pb-q { from { translate: 0 0; } to { translate: 0 -7px; } }
.pb-min { transform-box: fill-box; transform-origin: 50% 0%; animation: pb-min 24s steps(60) infinite; }
@keyframes pb-min { to { rotate: 360deg; } }
.pb-breathe { animation: pb-breathe 3.4s ease-in-out infinite alternate; }
@keyframes pb-breathe { from { translate: 0 0; } to { translate: 0 5px; } }
.pb-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: pb-flame 0.7s ease-in-out infinite alternate; }
@keyframes pb-flame { from { scale: 0.85 1.05; rotate: -4deg; } to { scale: 1 0.88; rotate: 4deg; } }
.pb-leave { animation: pb-leave 4.5s ease-in-out infinite; }
@keyframes pb-leave { 0% { opacity: 0; translate: -14px 0; } 15% { opacity: 1; } 65% { opacity: 1; translate: 24px 0; } 100% { opacity: 0; translate: 52px 0; } }
@media (prefers-reduced-motion: reduce) {
  .pb-a { animation: none !important; }
  .pb-fly { opacity: 0; }
  .js .pb-scene { translate: none; scale: none; transition: opacity 160ms linear, visibility 0s 160ms; }
  .js .pb-scene.on { transition: opacity 160ms linear; }
}
@media (min-width: 1800px) {
  .pb-sec { --max: calc(1240px * var(--z)); --gutter: calc(40px * var(--z)); }
  .pb-sec .g-kick { font-size: calc(var(--text-lg) * var(--z)); }
  .pb-sec .g-h2 { font-size: calc(var(--text-4xl) * var(--z)); }
  .pb-text h3 { font-size: calc(var(--text-2xl) * var(--z)); }
  .pb-text h3 + p { font-size: calc(var(--text-lg) * var(--z)); }
  .pb-tag { font-size: calc(var(--text-sm) * var(--z)); }
  .pb-when { font-size: calc(var(--text-xs) * var(--z)); }
  .pb-sec .g-turn { font-size: calc(var(--text-xl) * var(--z)); }
  .pb-sec .g-turn svg { width: calc(28px * var(--z)); height: calc(28px * var(--z)); }
}
/* the pinned devices' scroll tilt must never widen the page (WebKit) */
.tour.is-scrolly { overflow-x: clip; }

/* "Så funkar det" tabs (booqy.js): one dark pill slides behind the tabs to
   the active one; a thin fill inside it shows how far the tab has come
   (--p, set by the script's clock, which also turns the step ring below).
   Panels crossfade. Reduced motion: starts paused, the pill just moves. */
.g-switch-row { display: flex; align-items: center; gap: 10px; margin-top: 32px; }
.g-switch-row[hidden] { display: none; }
.g-switch-row .g-switch { margin-top: 0; position: relative; }
.g-switch button { position: relative; z-index: 1; transition: color 300ms var(--ease-std), background-color 200ms var(--ease-std); }
.g-switch.is-placed button[aria-selected="true"] { background: transparent; }
.g-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--ox-800); opacity: 0; pointer-events: none; }
.g-switch.is-placed .g-pill { opacity: 1; }
.g-switch.is-ready .g-pill { transition: transform var(--t-panel) var(--ease-spring), width var(--t-panel) var(--ease-spring); }
.g-prog { position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; border-radius: var(--r-md); background: rgb(213 196 174 / 0.22); overflow: hidden; }
.g-prog::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #d5c4ae; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.g-play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--print); cursor: default; transition: background-color 160ms var(--ease-std); }
.g-play svg { width: 18px; height: 18px; fill: currentColor; }
.g-play .g-ico-play, .g-play[aria-pressed="true"] .g-ico-pause { display: none; }
.g-play[aria-pressed="true"] .g-ico-play { display: block; }
.js .g-panels { display: grid; }
.js .g-panels > .g-steps { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 420ms var(--ease-std), visibility 0s 420ms; }
.js .g-panels > .g-steps.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (max-width: 560px) {
  .g-switch-row .g-switch { flex: 1; min-width: 0; width: auto; }
  .g-prog { left: 12px; right: 12px; bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .g-panels > .g-steps { transition: opacity 120ms linear, visibility 0s 120ms; }
  .g-switch.is-ready .g-pill { transition: transform 160ms linear, width 160ms linear; }
}
.g-ts { display: none; }
.g-switch button { white-space: nowrap; }
/* stacked steps (phones, small tablets): no dimming, only the lift and the number */
@media (max-width: 440px) {
  .g-tl { display: none; }
  .g-ts { display: inline; }
  .g-play { width: 40px; height: 40px; }
  .g-switch-row { gap: 8px; }
}
/* small phones: logo, "Tjänster" and "Boka en demo" on one line */
.head-actions .btn { white-space: nowrap; }
@media (max-width: 560px) { .site-head .wrap { gap: 10px; } }
@media (max-width: 400px) {
  .site-head .wrap { gap: 8px; }
  .brand svg { width: 60px; }
  .nav-dd-btn { padding: 8px 6px; gap: 5px; font-size: var(--text-base); }
  .head-actions .btn { padding: 0 10px; font-size: var(--text-sm); }
}

/* "Så funkar det" as a ring (booqy.js): the three steps of the active tab sit
   on a carousel seen from the front. The focused step is in the middle, full
   size and sharp; the other two sit left and right, smaller, dimmed and
   turned slightly towards the middle. Moving on turns the ring one place
   (spring, 650 ms); the step that has to cross from one side to the other
   goes round the back (.is-wrap). Dots under it show the step. Phones: the
   side steps peek in at the edges. Reduced motion: a crossfade. */
/* the clip box reaches out into the page gutter, so the turned side steps are not cut at their outer edge */
.js .g-panels { overflow-x: clip; padding: 8px var(--gutter) 4px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.js .g-panels > .g-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 36px; perspective: 1400px; touch-action: pan-y; --side: 104%; --w: min(380px, 36%); }
.js .g-panels > .g-steps > li { grid-area: 1 / 1; justify-self: center; width: var(--w); transform: translateX(0) scale(1) rotateY(0deg); opacity: 1; filter: none; z-index: 3; transition: transform 420ms var(--ease-spring), opacity 300ms var(--ease-out), filter 300ms var(--ease-out); }
.js .g-panels > .g-steps > li[data-pos="l"] { transform: translateX(calc(var(--side) * -1)) scale(0.8) rotateY(16deg); opacity: 0.45; filter: saturate(0.5); z-index: 2; cursor: default; }
.js .g-panels > .g-steps > li[data-pos="r"] { transform: translateX(var(--side)) scale(0.8) rotateY(-16deg); opacity: 0.45; filter: saturate(0.5); z-index: 2; cursor: default; }
.js .g-panels > .g-steps > li.is-wrap { z-index: 1; transition: transform 210ms var(--ease-move), opacity 210ms var(--ease-move), filter 210ms var(--ease-move); }
/* the step crossing sides goes round the back in two short transitions (booqy.js) */
.js .g-panels > .g-steps > li[data-pos="b"] { transform: translateX(0) scale(0.55) rotateY(0deg); opacity: 0; filter: saturate(0.5); z-index: 1; }
.js .g-panels > .g-steps > li::before, .js .g-panels > .g-steps > li::after { display: none; }
.js .g-panels > .g-steps > li[data-pos="c"] .g-num { box-shadow: 0 0 0 5px rgb(58 36 24 / 0.12); transition: box-shadow 300ms var(--ease-std); }
.g-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.g-dots[hidden] { display: none; }
.g-dots i { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--paper-line); transition: width 350ms var(--ease-std), background-color 350ms var(--ease-std); }
.g-dots i.on { width: 26px; background: var(--ox-800); }
@media (max-width: 860px) {
  /* the side steps run out to the screen edge and fade there */
  .js .g-panels { -webkit-mask-image: linear-gradient(90deg, transparent, #1a120e 9%, #1a120e 91%, transparent); mask-image: linear-gradient(90deg, transparent, #1a120e 9%, #1a120e 91%, transparent); }
  .js .g-panels > .g-steps { --w: min(340px, 58%); --side: 92%; }
}
@media (max-width: 560px) {
  .js .g-panels > .g-steps { --w: 70%; --side: 88%; margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .g-panels > .g-steps > li { transition: opacity 200ms linear; }
  .js .g-panels > .g-steps > li.is-wrap { transition: opacity 200ms linear; }
}

/* phone mockups: the top bar and the menu rows never overflow. The name
   shrinks with an ellipsis, the "Öppet" pill keeps its size; in a menu row
   the name takes the free space so the quantity badge and "+" always sit in
   one column at the right edge. */
.ph-top { min-width: 0; }
.ph-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ph-open { flex: none; }
.ph-item > span:not(.ph-add) { flex: 1 1 auto; min-width: 0; }
.ph-item > span:not(.ph-add) b { overflow-wrap: anywhere; }
.ph-item .ph-img, .ph-item .ph-qty, .ph-item .ph-add { flex: none; }
/* the card phones shrink with their card on small phones instead of being
   cut by it (their content is sized in cqw, so it scales along) */
.g-svc-pic .tilt { min-width: 0; max-width: 100%; }
.g-svc-pic .g-card-ph { max-width: 100%; }


/* the app icon in the notifications is the b from the Booqy logo, not a letter */
.g-app svg { width: 58%; height: auto; display: block; }

/* four tabs on the smallest phones */
@media (max-width: 360px) { .g-switch button { padding-left: 4px; padding-right: 4px; } }

/* --- Press feedback (booqy.js): a quick squeeze and a soft tan ripple from the
   tap point, on press and on Enter or Space, never on hover. Only scale and
   opacity animate; reduced motion keeps a short opacity blink. */
.is-pressed { scale: 0.97; transition: scale var(--t-press) var(--ease-out); }
.is-pressed-text { opacity: 0.6; transition: opacity var(--t-press) var(--ease-out); }
/* a press on something pressable: a soft dot and one thin ring growing out of it */
.press-ripple {
  position: fixed;
  z-index: 100;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  pointer-events: none;
  --signal: rgba(107, 74, 46, 0.6);
  background: radial-gradient(circle, rgba(168, 132, 98, 0.4), rgba(168, 132, 98, 0) 32%);
  animation: press-dot 380ms var(--ease-out) forwards;
}
.press-ripple::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--signal);
  opacity: 0;
  animation: press-signal 380ms var(--ease-out) forwards;
}
.press-ripple.on-dark {
  --signal: rgba(213, 196, 174, 0.65);
  background: radial-gradient(circle, rgba(213, 196, 174, 0.35), rgba(213, 196, 174, 0) 32%);
}
@keyframes press-signal {
  0% {
    scale: 0.12;
    opacity: 0.95;
  }
  55% {
    opacity: 0.6;
  }
  100% {
    scale: 1;
    opacity: 0;
  }
}
@keyframes press-dot {
  from {
    scale: 0.4;
    opacity: 1;
  }
  to {
    scale: 1;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-pressed { scale: none; opacity: 0.75; transition: opacity 90ms linear; }
  .press-ripple { display: none; }
}
/* the sound switch in the footer */
.sound-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border: 0; border-radius: var(--r-pill); background: rgb(var(--wash) / 0.1); color: var(--on-ox); font: 500 var(--text-sm)/1.4 var(--font-sans); }
.sound-toggle svg { width: 14px; height: 14px; flex: none; }
.sound-toggle:focus-visible { outline: 2px solid var(--on-ox); outline-offset: 2px; }

/* the fonts, used more: display on card and step titles and step numbers,
   serif eyebrows a size up (and in walnut, which passes AA on the lighter canvas) */
.g-svc h3, .g-pain h3, .g-steps h3, .g-start b, .pb-text h3 {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.03em;
}
.g-num { width: 52px; height: 52px; font: 800 1.5rem/1 var(--font-display); letter-spacing: -0.02em; }
.g-kick, .g-eyebrow { font-size: var(--text-xl); }
.show-kicker, .tour.is-scrolly .show-kicker { font-size: var(--text-lg); }
@media (max-width: 860px) { .tour .g-kick, .tour .show-kicker { font-size: var(--text-lg); } }

/* --- Glass room (owner, 2026-10-30: "create a new website ... background white
   ish ... clear boxes ... within our brand style", after a glassy dashboard
   reference) --------------------------------------------------------------
   The page is a sharp wallpaper of diagonal ribbons in the Booqy browns and
   wine (/assets/wallpaper.svg, --wallpaper), fixed behind everything. Content
   lives on large panels of real glass (owner, 2026-11-29: "real glass like
   in the right side of the image", no frosted blur anywhere): the backdrop
   stays sharp and is bent like a thick lens at the rounded rim, with RGB
   fringes and a thin bright rim; the middle stays undistorted under a pale
   veil that keeps the text at AA. The lens is liquid-glass.js (see "Liquid
   glass" below). Inside a panel, cards are lighter tint. Navigation is a
   floating glass pill; the active item and every primary button is a dark
   espresso pill. The two dark moments ("Kom igång", the closing call to
   action) are smoked glass. Reduced transparency gets solid off-white panels.
   The cursor stays the arrow; hovered elements answer themselves. */
:root {
  --bg: #f6f1ea;
  --wall: #f6f1ea; --wall-rgb: 246 241 234; --wash: 26 18 14;
  --paper: #fbf8f3; --line: #d5c4ae; --ox-kick: #3a2418;
  --glass: rgb(var(--snow-rgb) / 0.48);
  --glass-hi: rgb(var(--snow-rgb) / 0.66);
  --glass-card: rgb(var(--snow-rgb) / 0.7);
  /* shared glass tokens (same names in admin, console and the guest site):
     tint, border, the lit top edge and the denser tint behind body text */
  --glass-bg: var(--glass);
  --glass-border: rgb(var(--snow-rgb) / 0.42);
  --glass-highlight: rgb(var(--snow-rgb) / 0.88);
  --glass-text-bg: var(--glass-card);
  /* liquid glass (owner, 2026-11-13, from Safari: "make it liquid glassy ...
     every single where"): wine and brown blobs on top of the ribbons, so the
     glass has colour to bend; every panel gets a lit edge and real depth. */
  --backdrop-blobs:
    radial-gradient(40% 48% at 4% 8%, rgb(53 0 1 / 0.5), transparent 72%),
    radial-gradient(36% 42% at 96% 92%, rgb(107 74 46 / 0.5), transparent 72%),
    radial-gradient(30% 34% at 88% 4%, rgb(168 132 98 / 0.45), transparent 70%),
    radial-gradient(28% 32% at 24% 98%, rgb(58 36 24 / 0.38), transparent 70%);
  --liquid-edge: inset 0 1px 0 rgb(var(--snow-rgb) / 0.95), inset 0 0 0 1px rgb(var(--snow-rgb) / 0.42), inset 0 -1px 0 rgb(58 36 24 / 0.1), inset 0 12px 28px -18px rgb(var(--snow-rgb) / 0.7);
  --liquid-sheen: linear-gradient(180deg, rgb(var(--snow-rgb) / 0.46), rgb(var(--snow-rgb) / 0.08) 38%, rgb(var(--snow-rgb) / 0) 62%);
  --liquid-depth: 0 28px 64px -30px rgb(26 18 14 / 0.5), 0 2px 8px -3px rgb(26 18 14 / 0.14);
  /* the smoked panels ("Kom igång", the closing call to action) */
  --liquid-edge-dark: inset 0 1px 0 rgb(246 241 234 / 0.28), inset 0 0 0 1px rgb(213 196 174 / 0.16), inset 0 12px 28px -18px rgb(246 241 234 / 0.14);
  --liquid-sheen-dark: linear-gradient(180deg, rgb(246 241 234 / 0.12), rgb(246 241 234 / 0.02) 40%, rgb(246 241 234 / 0) 62%);
  --liquid-depth-dark: 0 30px 70px -30px rgb(26 18 14 / 0.75), 0 2px 8px -3px rgb(26 18 14 / 0.4);
  /* fields: visible glass wells */
  --field-bg: rgb(226 214 199 / 0.58);
  --field-bg-focus: rgb(var(--snow-rgb) / 0.86);
  --field-border: rgb(58 36 24 / 0.55);
  --field-border-hover: rgb(58 36 24 / 0.78);
  --field-ring: rgb(107 74 46 / 0.34);
  --field-inset: inset 0 2px 4px rgb(26 18 14 / 0.14), inset 0 -1px 0 rgb(var(--snow-rgb) / 0.55);
  --placeholder: #5f5751;
  --rim: inset 0 1px 0 rgb(var(--snow-rgb) / 0.9), inset 0 0 0 1px rgb(var(--snow-rgb) / 0.55);
  --lift: 0 30px 70px -40px rgb(58 36 24 / 0.5), 0 2px 8px -3px rgb(58 36 24 / 0.12);
  --lift-sm: 0 14px 30px -20px rgb(58 36 24 / 0.4), 0 1px 3px rgb(58 36 24 / 0.08);
  /* corners: one scale in every Booqy app. Glass panels 28, cards and dialogs
     22, boxes inside a card 14, buttons, tabs and chips as pills, round is round.
     The app screens drawn inside the devices use the same scale at their own
     text size (mock-md, mock-lg). */
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 9999px;
  --r-panel: 28px;
  --r-card: var(--r-lg);
  --r-mock-md: 0.95em;
  --r-mock-lg: 1.45em;
  --pad-panel: clamp(28px, 5vw, 72px);
}
html { background: var(--bg); }
/* one fixed wallpaper layer; the glass lens copies the same --wallpaper in
   Safari, so it is 100lvh tall (not inset: 0) and never moves while the iOS
   toolbars do */
:root {
  --wallpaper: var(--backdrop-blobs), url("/assets/wallpaper.svg") center / cover no-repeat, var(--bg);
}
body::before {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none;
  background: var(--wallpaper);
}

/* sections have no fill of their own; their content sits on a glass panel */
.g-sec:not(.g-close-sec):not(.is-dark) + .g-sec:not(.g-close-sec):not(.is-dark), .g-hero + .g-sec, .g-hero + .tour { border-top: 0; }
.g-sec { padding: clamp(8px, 1.4vw, 14px) 0; }
.g-sec > .wrap, .site-foot > .wrap, .tour {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto;
  padding: var(--pad-panel) clamp(20px, 4.5vw, 64px);
  border-radius: var(--r-panel);
  /* glass panel (liquid-glass.js): this tint shows before the lens is ready */
  --lg-flat: var(--liquid-sheen), var(--glass-hi);
}
.tour { padding: 0; margin-top: clamp(8px, 1.4vw, 14px); margin-bottom: clamp(8px, 1.4vw, 14px); }
.tour .wrap { padding-left: clamp(20px, 4.5vw, 64px); padding-right: clamp(20px, 4.5vw, 64px); }
.site-foot { padding: clamp(8px, 1.4vw, 14px) 0 clamp(16px, 2vw, 24px); border-top: 0; }

/* the hero sits straight on the room, like a title on the backdrop */
.g-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.g-hero h1 em { color: var(--blush); }
/* the hero's small print sits straight on the sharp ribbons: walnut, not graphite, for AA */
.g-hero .g-night > p { color: #3a2418; }

/* dark moments: smoked glass (the ribbons show through the rim, the pale
   text keeps AA on the dark veil) */
.is-dark > .wrap, .g-close-sec > .wrap {
  --lg-veil: #1a120e; --lg-veil-center: 0.8; --lg-veil-rim: 0.4;
  --lg-flat: var(--liquid-sheen-dark), rgb(26 18 14 / 0.8);
  --lg-solid: #1a120e;
  --lg-rim: var(--liquid-edge-dark);
  --lg-shadow: var(--liquid-depth-dark);
}
.is-dark, .g-close-sec { --wall: #1a120e; --wall-rgb: 26 18 14; }
.is-dark .g-kick, .g-close-sec .g-kick { color: #d5c4ae; }

/* the footer: light tokens on its own panel */
.site-foot {
  --wall: #f6f1ea; --wall-rgb: 246 241 234; --wash: 26 18 14;
  --on-ox: #1a120e; --on-ox-2: #4a4a46; --on-ox-3: #4a4a46;
  --ox-text: #3a2418; --ox-kick: #3a2418; --blush: #6b4a2e;
}
.foot-en, .foot-msgs { border-top-color: rgb(58 36 24 / 0.12); }

/* floating pill navigation */
.site-head, .site-head.is-stuck, .lnav {
  background: transparent; box-shadow: none; filter: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; border: 0;
}
.site-head { padding-top: 12px; }
.site-head .wrap, .lnav-in {
  position: relative; z-index: 0;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto;
  padding: 8px 8px 8px clamp(16px, 2vw, 22px); border-radius: var(--r-pill);
  box-shadow: var(--liquid-depth);
}
/* the pill's glass sits on a layer behind it (.glass-layer, added by
   booqy.js): a backdrop-filter on the pill itself would make it a backdrop
   root, and the services menu inside it could then not bend the page. Until
   the layer is there (no script yet) ::before shows the plain tint. */
.site-head .wrap::before, .lnav-in::before, .glass-layer {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
}
.site-head .wrap::before, .lnav-in::before { background: var(--liquid-sheen), var(--glass-hi); box-shadow: var(--liquid-edge); }
.site-head .wrap:has(> .glass-layer)::before, .lnav-in:has(> .glass-layer)::before { display: none; }
.glass-layer { --lg-flat: var(--liquid-sheen), var(--glass-hi); --lg-shadow: none; }
.lnav { top: 10px; padding-top: 8px; }
.lnav-in { min-height: 52px; padding-left: 8px; }
/* phones and tablets show "1 / 5 · Problemet" as text: same inset as the header pill above */
@media (max-width: 860px) { .lnav-in { padding-left: clamp(16px, 2vw, 22px); } }
.site-head .login, .site-head .nav-dd-btn, .lnav-ch a, .lnav-now, .lnav-name { color: var(--print); }
.lnav-name { padding-left: 10px; }
.nav-dd-btn { border-radius: var(--r-pill); }
.nav-dd.is-open .nav-dd-btn { background: rgb(26 18 14 / 0.07); color: var(--print); }
.nav-dd-btn.is-here, .lnav-ch a[aria-current="true"] { background: #1a120e; color: var(--snow); }
/* the current chapter's dark pill slides between chapters (booqy.js sets
   --pill-x and --pill-w), with the same spring as the "Så funkar det" tabs */
.lnav-ch { position: relative; }
.lnav-ch li { position: relative; z-index: 1; }
.lnav-ch::before {
  content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: 0;
  width: var(--pill-w, 0); transform: translateX(var(--pill-x, 0));
  border-radius: var(--r-pill); background: #1a120e; opacity: 0; pointer-events: none;
}
.lnav-ch.is-placed::before { opacity: 1; }
.lnav-ch.is-ready::before { transition: transform 440ms cubic-bezier(0.34, 1.22, 0.64, 1), width 440ms cubic-bezier(0.34, 1.22, 0.64, 1); }
.lnav-ch.is-placed a[aria-current="true"] { background: transparent; }
.lnav-ch a { transition: color 300ms var(--ease-std), background-color 200ms var(--ease-std); }
@media (prefers-reduced-motion: reduce) {
  .lnav-ch.is-ready::before { transition: transform 160ms linear, width 160ms linear; }
}
.lnav-demo, .site-head .btn-print { background: #1a120e; color: var(--snow); border-radius: var(--r-pill); }
/* the services menu: glass with a dense veil, so the page behind (sharp,
   bent at the rim) never competes with its text */
.nav-dd-panel {
  border-radius: var(--r-lg);
  --lg-flat: var(--liquid-sheen), rgb(var(--snow-rgb) / 0.9);
  --lg-veil-center: 0.86; --lg-veil-rim: 0.4;
  --lg-shadow: var(--liquid-depth);
}
.nav-dd-list a { border-radius: var(--r-md); }
.nav-dd-foot { border-top-color: rgb(58 36 24 / 0.12); }

/* buttons: dark pills */
.btn, .login { border-radius: var(--r-pill); }
@media (min-width: 561px) { .login { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; } }
.btn-print, .g-btn, .g-btn-ink, .g-btn-ox { background: #1a120e; color: var(--snow); }
/* dark pills are glass: a faint highlight along the top edge, like a lit rim */
.btn-print, .g-btn:where(:not(.is-dark .g-btn, .g-close-sec .g-btn)), .g-btn-ink, .g-btn-ox, .lnav-demo {
  background-image: linear-gradient(180deg, rgb(var(--snow-rgb) / 0.1), rgb(var(--snow-rgb) / 0) 55%);
  box-shadow: inset 0 1px 0 rgb(var(--snow-rgb) / 0.18);
}
.is-dark .g-btn:not(.g-btn-ink), .g-close-sec .g-btn:not(.g-btn-ink) { background: #d5c4ae; color: #1a120e; }

/* tickets stay receipts (owner decision 2026-10-31): the rail they hang from,
   white paper, the torn zigzag edge and the mono print. The paper is opaque,
   with only the glass sheen on top. They hang straight. */
.g-hangs { padding: 0; }
.hang > .ticket, .hang .ticket, .hang > .ticket-link { rotate: none !important; }
.ticket, .g-paper .ticket, .is-dark .ticket, .g-close-sec .ticket {
  background: var(--liquid-sheen), var(--paper); box-shadow: var(--liquid-edge);
}
.print .rule { border-top-color: rgb(58 36 24 / 0.18); }

/* cards inside panels: lighter glass, no blur of their own */
.kit-grid li, .g-hub-in li, .wm-sub, .wm, .g-hub-core, .faq details, .icons li {
  background: var(--liquid-sheen), var(--glass-card); color: var(--print); box-shadow: var(--liquid-edge), var(--lift-sm);
}
.related a { background: var(--liquid-sheen), var(--glass-card); color: var(--print); box-shadow: var(--liquid-edge); }
.is-dark .g-hub-in li, .is-dark .kit-grid li { background: var(--liquid-sheen-dark), rgb(213 196 174 / 0.1); color: var(--on-ox); box-shadow: var(--liquid-edge-dark), var(--lift-sm); }
.faq details, .faq details:last-child { border: 0; border-radius: var(--r-lg); padding: 0 20px; margin-bottom: 10px; }
.faq .answer { color: var(--print-2); }
.icons li { padding: 18px; border-radius: var(--r-lg); }
.related a { border-radius: var(--r-pill); }
.g-hub-lines path { stroke: rgb(107 74 46 / 0.5); }
.g-note {
  background: var(--liquid-sheen), var(--glass-text-bg); border-radius: var(--r-lg); box-shadow: var(--liquid-edge), var(--lift-sm);
}

/* showcase: devices on a sand stage, drawings framed, both above the glass */
.g-svc-pic, .ticket.g-svc .g-svc-pic { background: linear-gradient(180deg, rgb(213 196 174 / 0.85), rgb(213 196 174 / 0.4)); border-radius: var(--r-md); }
.pb-scene { border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px rgb(53 0 1 / 0.06), 0 22px 44px -24px rgb(58 36 24 / 0.45); }
.phone { box-shadow: inset 0 0 0 1.5px #4a4a46, inset 0 0 0 3px #1a120e, 0 26px 44px -16px rgb(58 36 24 / 0.55), 0 3px 8px rgb(58 36 24 / 0.25); }
/* the devices stand in the room with no box behind them (owner, 2026-10-31);
   on phones and tablets the strip is glass with a dense veil, because the
   story text scrolls under it (booqy.js tags it only at these widths) */
@media (min-width: 861px) { .tour.is-scrolly .show-devices { background: transparent; border-radius: 0; box-shadow: none; } }
@media (max-width: 860px) {
  .tour.is-scrolly .show-devices {
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    --lg-flat: var(--liquid-sheen), rgb(var(--snow-rgb) / 0.8); --lg-veil-center: 0.82; --lg-veil-rim: 0.4;
  }
}

/* chips: small rounded glass */
.g-ticks li { border-radius: var(--r-pill); }
/* the hero sits on the room and its colour blobs: its ticks print in espresso for AA */
.g-hero .g-ticks, .g-hero .g-ticks svg { color: var(--print); }
/* day tiles are boxes, not chips: a soft 14 px corner reads calmer than a pill */
.quick ol li > * { border-radius: var(--r-md); }

/* reduced transparency: solid off-white surfaces (the glass itself turns
   solid in "Liquid glass" below), tickets are paper as always */
@media (prefers-reduced-transparency: reduce) {
  body::before { background: var(--bg); }
  .ticket, .g-paper .ticket, .is-dark .ticket, .g-close-sec .ticket { background: var(--paper); }
  .field input, .field textarea, .field select, .tel-field-cc, .demo-change { --field-bg: var(--snow); --field-bg-focus: var(--snow); }
  .site-head .wrap::before, .lnav-in::before, .g-note, .faq details, .kit-grid li, .icons li, .wm, .wm-sub, .g-hub-core, .g-hub-in li, .related a, .choice:not([aria-checked="true"]), .g-switch, .g-play {
    background: var(--snow);
  }
}


/* hover: the element answers, the cursor stays the arrow. Only for a real
   mouse or trackpad, never on touch. Lifts use the translate property so
   they stack with the press scale and with transforms already in use. */
@media (hover: hover) and (pointer: fine) {
  .btn, .g-btn, .lnav-demo, .ticket-link, .related a, .kit-grid li, .icons li,
  .lnav-ch a, .nav-dd-btn, .nav-dd-list a, .login, .g-switch button, .g-play, .scene-tab, .scene-pause,
  .demo-change, .choice, .faq summary, .faq-more > summary, .show-btn, .g-link, .g-more, .g-after a, .foot-grid a, .foot-bottom a {
    transition-property: translate, scale, background-color, color, box-shadow, opacity, filter, text-decoration-color, transform;
    transition-duration: var(--t-hover); transition-timing-function: var(--ease-out);
  }
  /* dark pills, the Apple way: the button keeps its espresso and stays put;
     only its glass catches a little more light (owner, 2026-10-31) */
  .btn-print:hover, .g-btn:hover, .g-btn-ink:hover, .g-btn-ox:hover, .lnav-demo:hover {
    background-color: #1a120e;
    background-image: linear-gradient(180deg, rgb(var(--snow-rgb) / 0.2), rgb(var(--snow-rgb) / 0.04) 55%, rgb(var(--snow-rgb) / 0) 100%);
    translate: none;
    box-shadow: inset 0 1px 0 rgb(var(--snow-rgb) / 0.3), inset 0 0 0 1px rgb(var(--snow-rgb) / 0.08);
  }
  .is-dark .g-btn:not(.g-btn-ink):hover, .g-close-sec .g-btn:not(.g-btn-ink):hover, .btn-paper:hover {
    background: var(--snow); color: #1a120e; translate: none;
  }
  .btn[aria-busy="true"]:hover { translate: none; }
  /* glass cards that link: rise and catch more light */
  .ticket-link:hover { translate: 0 -3px; }
  .ticket-link:hover > .ticket { box-shadow: var(--liquid-edge), var(--lift); }
  .related a:hover { background: var(--liquid-sheen), rgb(var(--snow-rgb) / 0.9); box-shadow: var(--liquid-edge); }
  /* pills, tabs and small buttons: a warm tint */
  .lnav-ch a:not([aria-current="true"]):hover, .nav-dd-btn:hover, .nav-dd-list a:hover, .login:hover,
  .scene-tab:not([aria-selected="true"]):hover, .scene-pause:hover {
    background: rgb(58 36 24 / 0.08); color: var(--on-ox);
  }
  .g-switch button:not([aria-selected="true"]):hover { background: rgb(26 18 14 / 0.16); }
  .g-play:hover { background: #d5c4ae; }
  .demo-change:hover { background: var(--field-bg-focus); }
  .choice:not([aria-checked="true"]):hover { box-shadow: inset 0 0 0 1.5px var(--print); background: rgb(213 196 174 / 0.35); }
  /* questions and text links: the words darken, links get their underline */
  .faq summary:hover, .faq-more > summary:hover, .show-btn:hover { color: var(--accent); }
  .faq details:has(> summary:hover) { background: rgb(var(--snow-rgb) / 0.85); }
  .g-link:hover, .g-more:hover, .g-after a:hover, .foot-grid a:hover, .foot-bottom a:hover {
    text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; color: var(--accent);
  }
  /* the steps carousel: a side card comes forward a little */
  .js .g-panels > .g-steps > li[data-pos="l"]:hover, .js .g-panels > .g-steps > li[data-pos="r"]:hover { opacity: 0.75; filter: saturate(0.85); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .btn:hover, .g-btn:hover, .lnav-demo:hover, .ticket-link:hover, .related a:hover, .g-play:hover { translate: none; }
}

/* Shadows with real physics in the scroll story: each device rests on the
   table, so it casts a contact shadow (dark and tight where it touches) inside
   a wide, faint ambient one, instead of floating on a big drop shadow. The
   shadows stay on the floor: when a device steps forward and lifts, its
   shadow stays down, spreads, softens and fades, and tightens again as it
   lands. The phone's own ::before and ::after are its back plate and island,
   so its shadow is drawn by the stage (.show-rig::before) under its footprint. */
.show-rig .lid { box-shadow: inset 0 0 0 1.5px #4a4a46, 0 6px 10px -8px rgb(26 18 14 / 0.35); }
.show-phone { box-shadow: inset 0 0 0 1.5px #4a4a46, inset 0 0 0 3px #1a120e, 0 4px 8px -6px rgb(26 18 14 / 0.35); }
.laptop::after, .show-rig::before {
  content: ""; position: absolute; pointer-events: none;
  background:
    radial-gradient(closest-side, rgb(26 18 14 / 0.36), rgb(26 18 14 / 0.2) 40%, rgb(26 18 14 / 0.07) 72%, rgb(26 18 14 / 0) 100%) 50% 40% / 86% 60% no-repeat,
    radial-gradient(closest-side, rgb(58 36 24 / 0.18), rgb(58 36 24 / 0.07) 60%, rgb(58 36 24 / 0) 100%) 50% 50% / 100% 100% no-repeat;
  transition: translate 420ms var(--ease-move) 40ms, scale 420ms var(--ease-move) 40ms, opacity 420ms var(--ease-move) 40ms;
}
/* the laptop: under the base, which reaches a little past the lid either
   side. It is 16 % of the laptop's height, so the 1.5 % the laptop lifts is
   undone by moving the shadow down 9 % of itself. */
.laptop::after { left: -14%; right: -14%; top: 101%; height: 16%; }
.tour.focus-lap .laptop::after { translate: 0 9%; scale: 1.1 1.12; opacity: 0.74; }
/* the phone (right: 0, bottom: 0, 25 % wide, 75 % of the stage tall): the
   darkest band right along its bottom edge */
.show-rig::before {
  right: -3%; bottom: -6%; width: 31%; height: 10%;
  background:
    radial-gradient(closest-side, rgb(26 18 14 / 0.48), rgb(26 18 14 / 0.24) 40%, rgb(26 18 14 / 0.08) 72%, rgb(26 18 14 / 0) 100%) 50% 42% / 90% 66% no-repeat,
    radial-gradient(closest-side, rgb(58 36 24 / 0.22), rgb(58 36 24 / 0.08) 60%, rgb(58 36 24 / 0) 100%) 50% 50% / 100% 100% no-repeat;
}
.tour.focus-phone .show-rig::before { scale: 1.24 1.2; opacity: 0.55; }
@media (max-width: 560px) { .show-rig::before { width: 31%; } }
@media (prefers-reduced-motion: reduce) {
  .laptop::after, .show-rig::before { transition: none; }
}

/* --- Real device finishes: a silver aluminium MacBook (black bezel, notch,
   dark keys) and a black-titanium iPhone; only the screens carry Booqy's
   colours ---------------------------------------------------------------- */
.lid, .g-lap .lid {
  background: #0b0b0c;
  box-shadow: inset 0 0 0 1.5px #c9cbcf, inset 0 0 0 3px #0b0b0c, 0 28px 40px -20px rgb(26 18 14 / 0.4);
}
.lid::after { background: #0b0b0c; }
.deck, .g-lap .deck {
  background: linear-gradient(180deg, #e6e7e9, #c4c6ca);
  box-shadow: inset 0 -6px 0 #9fa2a7, inset 0 1px 0 #f6f6f7;
}
/* seen from the front: only the aluminium edge, no keys or trackpad */
.deck::before, .deck::after { display: none; }
.deck-lip { background: #9fa2a7; }
.phone {
  background: #1b1b1d;
  box-shadow: inset 0 0 0 1.5px #6e6e73, inset 0 0 0 3px #1b1b1d, 0 26px 44px -16px rgb(26 18 14 / 0.5), 0 3px 8px rgb(26 18 14 / 0.25);
}
.phone::before { background: #2c2c2e; }
.phone::after { background: #000000; }
/* the side devices in the carousel are dimmed, not see-through */
.js .g-panels > .g-steps > li[data-pos="l"], .js .g-panels > .g-steps > li[data-pos="r"] { opacity: 0.82; filter: saturate(0.8); }

/* --- Real screens: the laptops and phones show captures of the real Booqy
   admin, guest site and e-mailed receipt (site/assets/screens). The status
   bar, Dynamic Island and home indicator stay on top; the strip behind the
   status bar takes the colour of the app's top edge. Two sets: prod (the
   apps' main branches) by default and on booqy.se, dev (their dev branches)
   on dev.booqy.se and locally; the inline script in <head> sets data-env
   before first paint, so only one set is downloaded ------------------------ */
.lid-screen.is-shot { display: block; background: #eee7dc; }
/* the screenshot always fits the screen's width, so its right edge is never cut; a wider screen only trims the empty bottom of the app */
.lid-screen.is-shot > .scn { display: block; position: absolute; inset: 0; padding: 0; background-color: #eee7dc; background-repeat: no-repeat; background-position: left top; background-size: 100% auto; }
.phone-screen.is-shot { background: #350001; }
.phone-screen.is-shot.sb-mail { background: #f4f2ee; }
.phone-screen.is-shot > .ph-body > .scn { display: block; position: absolute; inset: 0; padding: 0; background-repeat: no-repeat; background-position: center top; background-size: cover; }
.phone-screen.is-shot.sb-wine::before { color: var(--snow); }
.phone-screen.is-shot.sb-wine::after { box-shadow: inset 0 0 0 0.45cqw var(--snow); background: linear-gradient(90deg, var(--snow) 0 70%, transparent 70%) 0.9cqw 0.9cqw / calc(100% - 1.8cqw) calc(100% - 1.8cqw) no-repeat; }
/* the guest site on dev has a floating glass header and no restaurant colour:
   Safari paints the status bar in its theme-color, with dark text */
:root[data-env="dev"] .phone-screen.is-shot.sb-wine { background: #f6f1ea; }
:root[data-env="dev"] .phone-screen.is-shot.sb-wine:not(:has(.scr.lock.on))::before { color: var(--print); }
:root[data-env="dev"] .phone-screen.is-shot.sb-wine:not(:has(.scr.lock.on))::after { box-shadow: inset 0 0 0 0.45cqw var(--print); background: linear-gradient(90deg, var(--print) 0 70%, transparent 70%) 0.9cqw 0.9cqw / calc(100% - 1.8cqw) calc(100% - 1.8cqw) no-repeat; }

.s-lap-bokningar { background-image: url("/assets/screens/prod/lap-bokningar.webp"); }
.s-lap-bokningar-ny { background-image: url("/assets/screens/prod/lap-bokningar-ny.webp"); }
.s-lap-catering { background-image: url("/assets/screens/prod/lap-catering.webp"); }
.s-lap-catering-signerad { background-image: url("/assets/screens/prod/lap-catering-signerad.webp"); }
.s-lap-koket { background-image: url("/assets/screens/prod/lap-koket.webp"); }
.s-lap-koket-klar { background-image: url("/assets/screens/prod/lap-koket-klar.webp"); }
.s-ph-bestall { background-image: url("/assets/screens/prod/ph-bestall.webp"); }
.s-ph-boka-klar { background-image: url("/assets/screens/prod/ph-boka-klar.webp"); }
.s-ph-boka-tid { background-image: url("/assets/screens/prod/ph-boka-tid.webp"); }
.s-ph-catering { background-image: url("/assets/screens/prod/ph-catering.webp"); }
.s-ph-catering-signerad { background-image: url("/assets/screens/prod/ph-catering-signerad.webp"); }
.s-ph-kvitto { background-image: url("/assets/screens/prod/ph-kvitto.webp"); }
:root[data-env="dev"] .s-lap-bokningar { background-image: url("/assets/screens/dev/lap-bokningar.webp"); }
:root[data-env="dev"] .s-lap-bokningar-ny { background-image: url("/assets/screens/dev/lap-bokningar-ny.webp"); }
:root[data-env="dev"] .s-lap-catering { background-image: url("/assets/screens/dev/lap-catering.webp"); }
:root[data-env="dev"] .s-lap-catering-signerad { background-image: url("/assets/screens/dev/lap-catering-signerad.webp"); }
:root[data-env="dev"] .s-lap-koket { background-image: url("/assets/screens/dev/lap-koket.webp"); }
:root[data-env="dev"] .s-lap-koket-klar { background-image: url("/assets/screens/dev/lap-koket-klar.webp"); }
:root[data-env="dev"] .s-ph-bestall { background-image: url("/assets/screens/dev/ph-bestall.webp"); }
:root[data-env="dev"] .s-ph-boka-klar { background-image: url("/assets/screens/dev/ph-boka-klar.webp"); }
:root[data-env="dev"] .s-ph-boka-tid { background-image: url("/assets/screens/dev/ph-boka-tid.webp"); }
:root[data-env="dev"] .s-ph-catering { background-image: url("/assets/screens/dev/ph-catering.webp"); }
:root[data-env="dev"] .s-ph-catering-signerad { background-image: url("/assets/screens/dev/ph-catering-signerad.webp"); }
:root[data-env="dev"] .s-ph-kvitto { background-image: url("/assets/screens/dev/ph-kvitto.webp"); }

/* --- The example switcher: a off-white glass track with the espresso pill, as
   on admin's switchers; the pause button is the same glass --------------- */
.g-switch {
  background: var(--liquid-sheen), var(--glass-card);
  box-shadow: var(--liquid-edge), inset 0 0 0 1px rgb(58 36 24 / 0.12);
}
.g-switch button { color: var(--print); }
.g-switch button[aria-selected="true"] { color: var(--snow); }
.g-pill, .g-switch button[aria-selected="true"]:not(.g-switch.is-placed button) { background: linear-gradient(180deg, #3a2418, #1a120e); }
.g-play {
  background: var(--liquid-sheen), var(--glass-card);
  box-shadow: var(--liquid-edge), inset 0 0 0 1px rgb(58 36 24 / 0.12);
}
@media (hover: hover) {
  .g-switch button:not([aria-selected="true"]):hover { background: rgb(58 36 24 / 0.06); }
  .g-play:hover { background: var(--snow); }
}

/* --- The SMS on the lock screen: a light iPhone lock screen (off-white, dark
   time and icons) with a off-white notification ------------------------------- */
.scr.lock { background: linear-gradient(180deg, #fbf8f3, #efe7dc); color: #1a120e; }
.lk-date { color: #4a4a46; }
.scr.lock .ios-note { background: rgb(var(--snow-rgb) / 0.92); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0.6em 1.4em -0.5em rgb(26 18 14 / 0.3), 0 0 0 1px rgb(58 36 24 / 0.06); }
.scr.lock::after { background: #1a120e; opacity: 0.8; }
.phone-screen:has(.scr.lock.on)::before { color: #1a120e; }
.phone-screen:has(.scr.lock.on)::after { box-shadow: inset 0 0 0 0.45cqw #1a120e; background: linear-gradient(90deg, #1a120e 0 70%, transparent 70%) 0.9cqw 0.9cqw / calc(100% - 1.8cqw) calc(100% - 1.8cqw) no-repeat; }

/* Phones: every control is at least 44 px to tap (header, chapter tabs, step
   buttons, day slips, links on their own line). */
@media (max-width: 640px) {
  .brand, .sound-toggle, .nav-dd-btn, .g-more, .actions .textlink { min-height: 44px; display: inline-flex; align-items: center; }
  .btn, .btn-small, .head-actions .btn, .g-switch button, .show-btn { min-height: 44px; }
  .g-play { width: 44px; height: 44px; }
  .quick ol { gap: 4px; }
  .choice { min-width: 44px; }
}

/* Touch: footer links and the breadcrumb link are 44 px to tap. Footer rows get
   the height; the breadcrumb grows its hit area only (negative margins keep the
   line where it was). Links inside running text stay inline. */
@media (max-width: 640px), (pointer: coarse) {
  .foot-grid h2 { margin-bottom: 4px; }
  .foot-grid ul { gap: 0; }
  .foot-grid li { display: flex; align-items: center; min-height: 44px; }
  .foot-grid li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px -8px; padding: 0 8px; }
}

/* --- Motion gates ------------------------------------------------------------
   Loops (the night notes, the floor plan, the marching dashes) only run while
   their section is on screen and the tab is visible (booqy.js sets .is-idle
   and html.is-hidden). */
.is-idle, .is-idle *, .is-idle *::before, .is-idle *::after,
.is-hidden body *, .is-hidden body *::before, .is-hidden body *::after { animation-play-state: paused !important; }
/* reduced motion: nothing moves or plays in; opacity changes stay short */
@media (prefers-reduced-motion: reduce) {
  .g-in, .g-rise, .reveal > .ticket, .reveal > .ticket-link > .ticket, .g-shot .tilt, .demo-step, .demo-done, .demo-done .stamp, .stamp-check path { animation: none !important; }
  .js .reveal:not(.is-in) { opacity: 1; }
}

/* --- Liquid glass (liquid-glass.js, same engine and tokens as @booqy/brand
   liquid-glass.css) -----------------------------------------------------------
   Real glass instead of blur (owner, 2026-11-29): each [data-glass] element
   bends the sharp backdrop like a thick convex lens, strongly at the rounded
   rim, not at all in the middle, with RGB fringes, a thin bright rim and a
   soft shadow. Modes on <html data-lg>: backdrop (Chrome, Edge, Android: a
   backdrop-filter url() lens over anything behind), mirror (Safari, iPhone,
   Firefox: a viewport-aligned copy of --wallpaper bent with filter: url();
   glass over scrolling content is flat tint there), off (reduced
   transparency: solid). booqy.js tags the surfaces (registry) and installs
   it. Every rule here has zero specificity (:where), so a surface's own
   tokens and colours always win; glass surfaces set --lg-* tokens, not
   background or box-shadow. No blur anywhere: soft shadows are shadows. */
:root {
  --lg-bezel: 30px; --lg-refract: 12px; --lg-chroma: 0.14; --lg-sat: 1.25;
  --lg-veil: #fdfaf6; --lg-veil-center: 0.6; --lg-veil-rim: 0.1;
  --lg-base: rgb(255 255 255 / 0.03);
  --lg-flat: rgb(253 250 246 / 0.72);
  --lg-solid: #fbf8f3;
  --lg-rim:
    inset 0 0 0 1px rgb(255 255 255 / 0.46),
    inset 0 1.5px 0 0 rgb(255 255 255 / 0.92),
    inset 0 -1px 0 0 rgb(255 255 255 / 0.3);
  --lg-chroma-rim:
    inset 2px 0 0 -1px rgb(255 70 70 / 0.24),
    inset -2px 0 0 -1px rgb(70 150 255 / 0.26);
  --lg-shadow: var(--liquid-depth);
  --lg-scrim: rgb(26 18 14 / 0.42);
}
/* variants: how far the rim bends and how much veil sits behind the text */
:where([data-glass='panel']) { --lg-bezel: 46px; --lg-refract: 19px; --lg-chroma: 0.15; --lg-veil-center: 0.62; --lg-veil-rim: 0.1; }
:where([data-glass='bar']) { --lg-bezel: 26px; --lg-refract: 10.5px; --lg-chroma: 0.15; --lg-veil-center: 0.74; --lg-veil-rim: 0.14; }
:where([data-glass='pop']) { --lg-bezel: 22px; --lg-refract: 9px; --lg-chroma: 0.14; --lg-veil-center: 0.82; --lg-veil-rim: 0.3; --lg-shadow: 0 12px 28px -14px rgb(26 18 14 / 0.45), 0 2px 6px -3px rgb(26 18 14 / 0.2); }
:where([data-glass='control']) { --lg-bezel: 16px; --lg-refract: 6.5px; --lg-chroma: 0.14; --lg-veil-center: 0.55; --lg-veil-rim: 0.12; --lg-shadow: 0 4px 10px -6px rgb(26 18 14 / 0.4), 0 1px 2px rgb(26 18 14 / 0.12); }
/* phones: the panels' padding is 28 px, so a slimmer rim keeps text off the bend */
@media (max-width: 767px) {
  :where([data-glass='panel']) { --lg-bezel: 30px; --lg-refract: 12.5px; }
}

:where([data-glass], .glass-layer, .g-sec > .wrap, .site-foot > .wrap, .tour, .nav-dd-panel) {
  isolation: isolate;
  background: var(--lg-flat);
  box-shadow: var(--lg-rim), var(--lg-chroma-rim), var(--lg-shadow);
}
/* Chromium: the lens bends the real backdrop (wallpaper or content) */
:where(html[data-lg='backdrop'] [data-glass]) {
  background: var(--lg-base);
  box-shadow: var(--lg-rim), var(--lg-shadow);
  -webkit-backdrop-filter: var(--lg-filter, saturate(1.2));
  backdrop-filter: var(--lg-filter, saturate(1.2));
}
/* sliced lens (big and tall panels): the pieces carry the filters; the
   element must not be the backdrop root of its own pieces */
:where(html[data-lg] [data-lg-shape='sliced']) { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Safari and Firefox over the wallpaper: a bent copy of it inside the element */
:where(html[data-lg='mirror'] [data-lg-el='mirror']) {
  background: var(--lg-base);
  box-shadow: var(--lg-rim), var(--lg-shadow);
}
.lg-lens, .lg-clip { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.lg-lens { z-index: -1; }
.lg-clip { overflow: hidden; contain: paint; }
.lg-lens--sliced { overflow: visible; }
.lg-p { position: absolute; pointer-events: none; }
/* --lg-kt/kb/kl/kr: K snapped so the seams land on whole device pixels
   (mirror mode, set by liquid-glass.js); K everywhere else */
.lg-p--tl, .lg-p--tr, .lg-p--bl, .lg-p--br { width: var(--lg-kl, var(--lg-k)); height: var(--lg-kt, var(--lg-k)); }
.lg-p--tr, .lg-p--br { width: var(--lg-kr, var(--lg-k)); }
.lg-p--bl, .lg-p--br { height: var(--lg-kb, var(--lg-k)); }
.lg-p--tl { left: 0; top: 0; border-radius: inherit; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.lg-p--tr { right: 0; top: 0; border-radius: inherit; border-top-left-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.lg-p--bl { left: 0; bottom: 0; border-radius: inherit; border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.lg-p--br { right: 0; bottom: 0; border-radius: inherit; border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; }
.lg-p--t, .lg-p--b { left: var(--lg-kl, var(--lg-k)); right: var(--lg-kr, var(--lg-k)); }
.lg-p--t { top: 0; height: var(--lg-kt, var(--lg-k)); }
.lg-p--b { bottom: 0; height: var(--lg-kb, var(--lg-k)); }
/* middle row: clamped to the visible band by liquid-glass.js */
.lg-p--l, .lg-p--r { top: var(--lg-y0, var(--lg-k)); bottom: var(--lg-y1, var(--lg-k)); }
.lg-p--l { left: 0; width: var(--lg-kl, var(--lg-k)); }
.lg-p--r { right: 0; width: var(--lg-kr, var(--lg-k)); }
.lg-p--c { left: var(--lg-kl, var(--lg-k)); right: var(--lg-kr, var(--lg-k)); top: var(--lg-kt, var(--lg-k)); bottom: var(--lg-kb, var(--lg-k)); }
.lg-p .lg-clip { border-radius: inherit; }
/* mirror pieces clip their filter (WebKit rounds filter output out to whole px) */
.lg-p--m { overflow: hidden; }
.lg-f { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.lg-wall {
  position: absolute; left: 0; top: 0;
  /* --lg-z: CSS zoom on an ancestor (wide screens), set by liquid-glass.js */
  width: calc(var(--lg-vw, 100vw) / var(--lg-z, 1)); height: calc(var(--lg-vh, 100lvh) / var(--lg-z, 1));
  background: var(--wallpaper);
  box-shadow: inset 0 0 0 100vmax var(--lg-wall-tint, transparent);
  /* no will-change or 3D transform: a composited child escapes the parent's
     SVG filter in WebKit and the lens paints nothing */
}
/* flat glass: over scrolling content in Safari, or turned flat by the frame
   governor on a slow GPU: tint, rim and a hint of RGB edge, no lens */
:where(html[data-lg] [data-glass][data-lg-el='flat']) {
  background: var(--lg-flat);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: var(--lg-rim), var(--lg-chroma-rim), var(--lg-shadow);
}
/* reduced transparency: solid material, same rim and shadow */
:where(html[data-lg='off'] [data-glass]) { background: var(--lg-solid); }
@media (prefers-reduced-transparency: reduce) {
  :where([data-glass], html[data-lg] [data-glass]) { background: var(--lg-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .lg-lens { display: none; }
}

/* The mouse pointer never changes anywhere on booqy.se (owner decision
   2026-10-31, made absolute 2026-11-28): the regular arrow on links,
   buttons, text, fields, disabled and busy states alike. The hovered
   element answers instead (see "hover: the element answers"). Last rule of
   the last stylesheet, same as customer-front-end src/booqy-look.css. */
html, html *, html *::before, html *::after { cursor: default !important; }
