/* hagawebb.com, the receipt build (SITE-SPEC.md, 2026-10-20).
   The token block is generated from brand-kit/tokens.json in the hagawebb repo;
   change a value there and run brand-kit/tokens.py. Everything below the block
   reads from a token. Components are prefixed (rc-, tp-) so a page section
   cannot inherit a component's styles by sharing a class name (SITE-SPEC §8). */

/* ================================================================ fonts */
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700; 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: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 700; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono-400-latin.woff2") format("woff2");
  font-weight: 400; 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: "DM Mono";
  src: url("/fonts/dm-mono-400-latin-ext.woff2") format("woff2");
  font-weight: 400; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono-500-latin.woff2") format("woff2");
  font-weight: 500; 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: "DM Mono";
  src: url("/fonts/dm-mono-500-latin-ext.woff2") format("woff2");
  font-weight: 500; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallback so the swap does not reflow the page. */
@font-face {
  font-family: "Familjen Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 94%; ascent-override: 98%; descent-override: 26%; line-gap-override: 0%;
}

/* =============================================================== tokens */
/* tokens:begin (generated by brand-kit/tokens.py from tokens.json, do not edit) */
:root {
  --night: #050607;
  --paper: #fbfaf7;
  --ink: #15161a;
  --grey: #55575f;
  --rule: #00000024;
  --cobalt: #2e2bd6;
  --cobalt-hi: #8d8bff;
  --font-display: "Familjen Grotesk", "Familjen Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --track-display: -0.045em;
  --t-min: 14px;
  --t-row: clamp(16px, 1.5vw, 20px);
  --tap: 44px;
  --tap-main: 52px;
  --tape: min(1100px, calc(100vw - 32px));
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url%28%23n%29'/%3E%3C/svg%3E");
  --total-thick: 10px;
  --total-thin: 4px;
  --total-thin-width: 66%;
  --total-gap: 6px;
  --tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 12' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 48,0 48,6 41,11 35,7 27,12 19,6 11,10 5,7 0,9'/%3E%3C/svg%3E");
  --tear-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 12' preserveAspectRatio='none'%3E%3Cpolygon transform='matrix%281 0 0 -1 0 12%29' points='0,0 48,0 48,6 41,11 35,7 27,12 19,6 11,10 5,7 0,9'/%3E%3C/svg%3E");
  --tear-h: 12px;
  --stamp-rotate: -7deg;
  --stamp-outer: 4px;
  --stamp-inner: 1.5px;
}
/* tokens:end */

/* One type scale for the whole site (Isak 2026-10-24: "standardize like the font and size of text etc. across the
   site as now its a mix of everything"; before it the CSS held ~55 different sizes). Every text size below reads
   one of these six; the only exceptions are the demo sites drawn inside the page (.ws-*, .wk-*), which are the
   client's look, and the printer and browser chrome. Reading glasses are the brief: nothing a visitor must read
   is under 16 px. Move into brand-kit/tokens.json with the next token change. */
:root {
  /* the display sizes follow the screen's height as well as its width, so a laptop (1280x720 to ~1900x1030) keeps a
     headline, a pinned stage or a client card inside one screen (Isak 2026-10-26: "its generally like the scaling or
     something on laptop that makes stuff like not be in view properly. site wide."); phones are width-bound anyway */
  --fs-d1: clamp(48px, min(7.4vw, 11.5vh), 112px);   /* page headline */
  --fs-d2: clamp(38px, min(5.4vw, 8vh), 76px);       /* section headline, the big numbers */
  --fs-d3: clamp(26px, min(2.8vw, 4.2vh), 38px);     /* card headline, punchlines, quotes */
  /* reading sizes follow the height too: at ~1900x915 the 23px rows ran the receipt and the ledger off the bottom
     (Isak 2026-10-26: "the issue is like the scaling or whatever to screen size, it goes too wide or something and
     then the elements go down off screen") */
  --fs-lead: clamp(19px, min(1.9vw, 2.6vh), 25px);  /* ledes, answers, totals */
  --t-read: clamp(17px, min(1.6vw, 2.2vh), 21px);   /* body and receipt rows */
  --fs-note: 17px;                      /* labels, captions, small print */
}
/* a wide laptop keeps the 1100px tape; only a big, tall screen gets the wide one and the bigger reading type */
@media (min-width: 1800px) and (min-height: 1200px) { :root { --tape: min(1440px, calc(100vw - 32px)); --t-read: 23px; --fs-note: 19px; } }

/* The week's demo site only: the client's look, never Hagawebb's (brand PLAYBOOK.md § 3, § 4). */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700; 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;
}

/* ================================================================= base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--t-read);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* display tracking eats the word spaces below ~30 px ("Dufårengratisdemo" on the price page, 2026-10-24) */
h3, h4 { letter-spacing: -0.012em; }
p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; }
/* a link in running text gets a taller hit area without moving the line (they were 21 px tall on a phone) */
:where(p, li, dd, td, figcaption) > :where(a:not([class])), :where(.rc-row) > span > :where(a:not([class])) { padding-block: 0.22em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
small { font-size: 15px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.on-night :focus-visible { outline-color: var(--cobalt-hi); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 16px;
  background: var(--paper); color: var(--ink); font-family: var(--font-mono);
}
.skip:focus { top: 12px; }
.mono { font-family: var(--font-mono); }

/* ============================================================= top bar */
.tp-bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 clamp(12px, 3vw, 28px);
  background: var(--night); color: var(--paper);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.tp-bar.is-hidden { transform: translateY(-100%); }
.tp-mark { display: flex; align-items: center; min-height: var(--tap); width: clamp(104px, 12vw, 132px); flex: none; }
.tp-mark svg { width: 100%; height: auto; }
/* the nav takes what the mark leaves and the demo button shrinks into it: with the venue in it ("Gratis demo för Café
   Linnéa") at max-width 46vw it was wider than a phone, and a phone then widened the page and zoomed it all out
   (360 wide read as 376 to 385, 390 as 421; phone pass 2026-10-26) */
.tp-nav { display: flex; flex: 1 1 0; justify-content: flex-end; align-items: center; gap: clamp(4px, 1.4vw, 14px); min-width: 0; }
.tp-nav > .tp-link { flex: none; }
.tp-link {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 8px;
  font-family: var(--font-mono); font-size: 16px; text-decoration: none; color: var(--paper);
  background: none; border: 0; white-space: nowrap;
}
/* underlined at rest, like every other link (consistency sweep 2026-10-26: the bar's links had no affordance until hover) */
.tp-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.tp-link:hover { text-decoration-thickness: 2px; }
.tp-cta {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px;
  background: var(--cobalt); color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 16px;
  text-decoration: none; white-space: nowrap; min-width: 0; max-width: 46vw; overflow: hidden; text-overflow: ellipsis;
}
.tp-cta { display: block; line-height: var(--tap); }
.tp-cta:hover { background: #2421b8; }
.tp-meter { display: none; margin-left: auto; margin-right: 8px; text-align: right; font-family: var(--font-mono); line-height: 1.2; text-decoration: none; color: var(--paper); }
.tp-meter small { display: block; font-size: 15px; color: #b4b6be; }
.tp-meter b { font-weight: 500; font-size: 19px; font-variant-numeric: tabular-nums; color: #fff; }
@media (min-width: 1100px) { .tp-meter:not([hidden]) { display: block; } }
@media (max-width: 340px) { .tp-mark { width: 72px; } .tp-nav .tp-link { display: none; } }
@media (max-width: 520px) { .tp-link--prices { display: none; } .tp-link, .tp-cta { font-size: 14px; } .tp-cta { padding: 0 12px; } }

/* ================================================================ tape */
/* The paper: one receipt tape on the night stage. The torn edges are two
   small strips, not a mask on the whole tape (a mask on a 20 000 px element
   is a compositing cost on a phone). */
.tp {
  position: relative; z-index: 5;
  width: var(--tape);
  margin: 84px auto 120px;
  background: var(--noise), var(--paper);
  color: var(--ink);
  /* at 200% zoom a phone is ~195 px wide: a long word or a no-break price
     must wrap rather than push the tape past the screen */
  overflow-wrap: anywhere;
}
.tp::before, .tp::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--tear-h);
  background: var(--noise), var(--paper);
}
.tp::before { bottom: 100%; -webkit-mask: var(--tear-up) bottom / 48px 100% repeat-x; mask: var(--tear-up) bottom / 48px 100% repeat-x; }
.tp::after { top: 100%; -webkit-mask: var(--tear) top / 48px 100% repeat-x; mask: var(--tear) top / 48px 100% repeat-x; }
.tp-in { padding-inline: clamp(18px, 4.5vw, 64px); }
.sec { padding-block: clamp(48px, min(8vw, 11vh), 104px); }
.sec + .sec, .rc-cut { border-top: 2px dashed var(--rule); }
.sec-h { font-size: var(--fs-d2); margin-bottom: 14px; }
.sec-sub { font-size: var(--fs-lead); color: var(--ink); max-width: 46ch; }

/* ======================================================= receipt pieces */
.rc-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1em;
  padding-block: 0.35em;
  font-family: var(--font-mono); font-size: var(--t-read); line-height: 1.4;
}
.rc-row > :last-child:not(:first-child) { text-align: right; }
.rc-row--sub { color: var(--grey); }
.rc-small { font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); }
.rc-center { text-align: center; }

/* The double total rule: a thick cobalt bar, a gap, a thinner bar at two thirds. */
.rc-total { position: relative; margin-top: 12px; padding-top: calc(var(--total-thick) + var(--total-gap) + var(--total-thin) + 12px); }
.rc-total::before, .rc-total::after { content: ""; position: absolute; left: 0; background: var(--cobalt); }
.rc-total::before { top: 0; width: 100%; height: var(--total-thick); }
.rc-total::after { top: calc(var(--total-thick) + var(--total-gap)); width: var(--total-thin-width); height: var(--total-thin); }
.rc-total > .rc-row { font-weight: 500; font-size: var(--fs-lead); }

/* Hagawebb's own hand: cobalt, never on client content. */
.rc-hand { color: var(--cobalt); }
.rc-owner { font-family: var(--font-mono); font-weight: 500; color: var(--cobalt); }
.on-night .rc-hand, .on-night .rc-owner { color: var(--cobalt-hi); }

.rc-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap-main); padding: 0 24px;
  background: var(--cobalt); color: #fff; border: 0;
  font-family: var(--font-mono); font-weight: 500; font-size: 18px; text-decoration: none;
}
.rc-btn:hover { background: #2421b8; }
.rc-btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.rc-btn--quiet:hover { background: var(--ink); color: var(--paper); }
.rc-link { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--cobalt); font-family: var(--font-mono); font-weight: 500; }

/* A slip: a short receipt lying on the tape (our stub, Kvitto på bygget). */
.rc-slip {
  position: relative; padding: 28px clamp(18px, 3vw, 32px) 32px;
  background: var(--noise), #fffefb; color: var(--ink);
  box-shadow: 0 1px 0 #0000000d, 0 18px 40px -22px #00000059;
}
.rc-slip::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--tear-h);
  background: #fffefb; -webkit-mask: var(--tear) top / 48px 100% repeat-x; mask: var(--tear) top / 48px 100% repeat-x;
}
.rc-slip-h { font-family: var(--font-mono); font-weight: 500; text-align: center; font-size: var(--fs-note); margin-bottom: 6px; }

/* Pen marks: Isak's hand, on the paper only. The paths are generated
   placeholders until his scans arrive (brand PLAYBOOK.md § 3, § 4); swap the SVG, keep the slot. */
.pen { position: absolute; max-width: none; pointer-events: none; overflow: visible; color: var(--cobalt); }
.pen path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; stroke-dasharray: var(--l, 1000); stroke-dashoffset: var(--l, 1000);
  transition: stroke-dashoffset var(--t, 0.6s) cubic-bezier(0.5, 0, 0.3, 1) var(--d, 0s); }
.pen.on path { stroke-dashoffset: 0; }

/* The stamp: double frame (the total rule, once more), raster ink as a mask. */
.stamp {
  position: absolute; width: min(300px, 70%); aspect-ratio: 400 / 170; color: var(--cobalt);
  rotate: var(--stamp-rotate); opacity: 0; scale: 1.7; pointer-events: none;
  -webkit-mask: url("/img/stamp-ink.png") center / 100% 100%; mask: url("/img/stamp-ink.png") center / 100% 100%;
}
.stamp svg { width: 100%; height: 100%; }
.stamp.is-hit { opacity: 0.92; scale: 1; transition: scale 0.26s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.1s linear; }
.is-shaking { animation: shake 0.26s steps(2) 0.2s; }
/* transform, not translate: the hosts (.ba-rc, .pp-paper) centre or lift themselves with `translate`, which the shake used to wipe for its 0.26 s (the Liselotte receipt jumped half its width right, Isak 2026-10-24) */
@keyframes shake { 0% { transform: translate(2px, 0); } 33% { transform: translate(-2px, 1px); } 66% { transform: translate(1px, -1px); } 100% { transform: none; } }

/* =============================================================== hero */
/* Grows from its right side so the 1.7x start stays on screen. */
.hr .stamp { right: 4%; top: 41%; bottom: auto; width: min(300px, 30%); transform-origin: 90% 60%; }
/* overflow-x clip: the owner line pops in at scale(1.4), wider than a phone for that moment, and a phone then sized
   the whole page wider and showed it zoomed out to ~94 % (360 read as 376 to 385; phone pass 2026-10-26) */
.hr { position: relative; overflow-x: clip; padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(36px, 6vw, 72px); }
.hr-store { text-align: center; font-family: var(--font-mono); font-size: var(--fs-note); }
.hr-meta { color: var(--grey); border-bottom: 2px dashed var(--rule); padding-bottom: 10px; }
.hr h1 { margin: clamp(16px, 2.2vw, 30px) 0 12px; font-size: var(--fs-d1); line-height: 0.96; max-width: 14ch; }
.hr-lede { font-size: var(--fs-lead); max-width: 38ch; margin-bottom: clamp(18px, 2.6vw, 30px); }
.hr-lab { display: block; font-family: var(--font-mono); font-weight: 500; font-size: var(--t-read); color: var(--ink); margin-bottom: 4px; }
.hr-venue-row { display: flex; align-items: center; gap: 10px; border-bottom: 2px dashed var(--rule); margin-bottom: 14px; }
.hr-venue-row svg { width: 34px; flex: none; color: var(--cobalt); }
.hr-venue {
  flex: 1; min-width: 0; width: 100%; padding: 4px 0 8px; border: 0; background: transparent; outline-offset: 6px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: var(--track-display);
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.25; color: var(--ink); caret-color: var(--cobalt);
}
.hr-own { margin-top: 18px; font-size: var(--fs-d3); display: flex; gap: 0.5em; flex-wrap: wrap; }
.motion .hr-own { opacity: 0; }
.motion .hr-own.is-in { opacity: 1; animation: own-in 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes own-in { from { opacity: 0; transform: scale(1.4); } }
@media (max-width: 760px) { .hr { padding-bottom: 104px; } .hr .stamp { top: auto; bottom: 14px; right: 6%; width: 190px; } }

/* ===================================================== finstilta */
/* Starts small (it is the fine print) and grows to reading size, then holds.
   Two columns, the term in medium weight, the answer in ink: it reads as a
   list of facts, not a wall of mono. */
.fn-label { font-size: var(--fs-d2); margin-bottom: 24px; }
.fn-print { max-width: 900px; }
.fn-row {
  display: grid; grid-template-columns: minmax(9em, 0.9fr) 1.6fr; gap: 6px 28px; align-items: baseline;
  padding-block: 0.55em; border-bottom: 1.5px dashed var(--rule);
  font-family: var(--font-mono); font-size: var(--fs-lead); line-height: 1.4;
}
.fn-row dt { font-weight: 500; }
.fn-row dd { margin: 0; color: var(--ink); }
.fn-row dd b { font-weight: 500; background: linear-gradient(transparent 62%, #2e2bd61f 62%); }
@media (max-width: 640px) { .fn-row { grid-template-columns: 1fr; gap: 2px; } .fn-row dt { color: var(--grey); font-size: var(--fs-note); } }
.pp-own .fn-row { font-size: var(--t-read); }
@media (min-width: 641px) { .pp-own .fn-row { grid-template-columns: minmax(8em, 0.7fr) 2fr; } }
.pp-own .fn-row:last-child { border-bottom: 0; }
/* each point gets a bold sub-heading over its text (Isak 2026-10-26: "on priser the din sida din doman body text should
   have like bold subsection headers etc. for easier parsing"); on a phone the label was small grey text */
.pg-prices .pp-own .fn-row { display: block; padding-block: 14px; }
.pg-prices .pp-own .fn-row dt { margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead); letter-spacing: -0.015em; color: var(--ink); }
[data-tape] .pp-own a { color: var(--cobalt); }
.fn-end { margin-top: 26px; font-family: var(--font-display); font-weight: 700; letter-spacing: var(--track-display); font-size: var(--fs-d3); color: var(--cobalt); }
.motion .fn-track { height: 210vh; }
.motion .fn-pin { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 72px 48px; }
.motion .fn-print { transform: scale(var(--s, 0.5)); transform-origin: 0 0; color: rgb(var(--c, 120) var(--c, 120) var(--c, 120)); }
.motion .fn-print .fn-row dd { color: inherit; }

/* ======================================================== the week */
/* Veckan (r42) + Året (r43): one browser window, the visitor's own site,
   built one day per scroll step. Mån is their content as raw HTML (browser
   defaults, no design yet); from Tis the demo's palette and type take over
   and the same site appears in a phone beside the computer, where it stays
   for the rest of the week. Fre opens the menu editor on that phone. One
   device set, one direction: nothing flips back. */
.wk-head { margin-bottom: 8px; }
.wk-win {
  --bg: #fff; --fg: #000; --ac: #0000ee;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--fg); border-radius: 12px;
  box-shadow: 0 34px 70px -34px #000b, 0 0 0 1px #0000001f;
  transition: background 0.35s ease, color 0.35s ease;
}
.wk-bar {
  flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: #e9e8e3; color: #3b3d44; font-family: var(--font-mono); font-size: 14px;
}
.wk-bar svg { width: 13px; }
.wk-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c9c7c0; }
.wk-bar > span { margin-left: 10px; padding: 4px 14px; background: #fff; border-radius: 99px; flex: 1; min-width: 0; max-width: 380px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: box-shadow 0.4s; }
.wk-bar > span svg { display: inline; vertical-align: -1px; }
@media (max-width: 420px) { .wk-bar { gap: 6px; padding: 0 10px; } .wk-bar i { width: 9px; height: 9px; } .wk-bar > span { margin-left: 4px; padding: 4px 10px; } }
.wk-site { flex: 1; min-height: 0; container-type: inline-size; position: relative; overflow: hidden; }
.ws { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto 1fr auto; gap: 3cqw 4cqw; min-height: 100%; padding: 2.4cqw 4cqw 3cqw; align-items: center; }
.ws-nav, .ws-raw { align-self: start; }
.ws-nav { grid-column: 1 / -1; display: flex; gap: 2.4cqw; align-items: baseline; font-size: clamp(13px, 1.5cqw, 17px); }
.ws-nav b { margin-right: auto; font-weight: 700; }
.ws-nav ul { display: flex; gap: 2.2cqw; }
.ws-nav u { text-decoration: none; opacity: 0.85; }
.ws-hero { padding-top: 4cqw; }
.ws-sign {
  margin: 0 0 1.4cqw; font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.02em; line-height: 0.95;
  font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 8cqw; overflow-wrap: anywhere;
  transition: font-size 0.7s cubic-bezier(0.3, 1.25, 0.5, 1);
}
.ws-tag { font-size: clamp(14px, 1.7cqw, 20px); margin-bottom: 2.2cqw; max-width: 30ch; opacity: 0.9; }
.ws-btn { display: inline-block; padding: 0.7em 1.4em; font-size: clamp(13px, 1.5cqw, 17px); font-weight: 700; border-radius: 99px; background: var(--ac); color: var(--on-ac, var(--bg)); }
.ws-menu { margin-top: 4cqw; padding: 2.4cqw 2.6cqw; border-radius: 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 22%, transparent); }
.ws-menu-h { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(16px, 2.2cqw, 26px); margin-bottom: 1cqw; }
.ws-menu li { display: flex; align-items: baseline; gap: 6px; font-size: clamp(13px, 1.55cqw, 18px); padding: 0.3em 0; }
.ws-menu li i { flex: 1; border-bottom: 1.5px dotted currentColor; opacity: 0.45; }
.ws-menu b { font-weight: 700; transition: background 0.3s; }
.ws-menu b.is-hot { background: var(--cobalt); color: #fff; padding: 0 0.3em; border-radius: 3px; }
.ws-edit { display: none; margin-top: 1.2cqw; font-family: var(--font-mono); font-size: clamp(13px, 1.4cqw, 16px); }
.ws-edit.is-ours { display: block; color: #fff; background: var(--cobalt); padding: 0.5em 0.7em; }
.ws-raw { grid-column: 1 / -1; font-size: clamp(12px, 1.35cqw, 15px); opacity: 0.8; }
@container (max-width: 560px) {
  .ws { grid-template-columns: 1fr; gap: 16px; padding: 14px 18px 22px; }
  .ws-nav ul { display: none; }
  .ws-nav { font-size: 15px; }
  .ws-hero { padding-top: 14px; }
  .ws-sign { font-size: 15cqw; margin-bottom: 10px; }
  .ws-tag { font-size: 15px; margin-bottom: 14px; }
  .ws-btn { font-size: 14px; }
  .ws-menu { margin-top: 0; padding: 12px 14px; }
  .ws-menu-h { font-size: 19px; margin-bottom: 6px; }
  .ws-menu li { font-size: 15px; }
  .ws-raw { font-size: 13px; }
}
/* Mån: their content as raw HTML. Browser defaults on purpose: Times, blue
   underlined links, bullets. Nothing is designed yet. */
.wk-win[data-step="0"] .ws { display: block; padding: 14px 18px; font-family: "Times New Roman", Times, serif; font-size: 17px; line-height: 1.3; }
.wk-win[data-step="0"] .ws-nav { display: block; font-size: 17px; }
.wk-win[data-step="0"] .ws-nav b { font-weight: 400; display: list-item; list-style: disc; margin-left: 40px; }
.wk-win[data-step="0"] .ws-nav ul { display: block; padding-left: 40px; list-style: disc; }
.wk-win[data-step="0"] .ws-nav u { text-decoration: underline; color: #0000ee; opacity: 1; }
.wk-win[data-step="0"] .ws-hero { padding: 0; }
.wk-win[data-step="0"] .ws-sign { font-family: "Times New Roman", Times, serif; font-weight: 700; font-size: 32px; letter-spacing: 0; margin: 21px 0 8px; font-variation-settings: normal; line-height: 1.15; transition: none; }
.wk-win[data-step="0"] .ws-tag { font-size: 17px; margin: 0 0 12px; opacity: 1; }
.wk-win[data-step="0"] .ws-btn { display: inline; padding: 0; background: none; color: #0000ee; text-decoration: underline; font-weight: 400; font-size: 17px; border-radius: 0; }
.wk-win[data-step="0"] .ws-menu { margin: 0; padding: 0; box-shadow: none; }
.wk-win[data-step="0"] .ws-menu-h { font-family: "Times New Roman", Times, serif; font-weight: 700; font-size: 24px; margin: 20px 0 6px; }
.wk-win[data-step="0"] .ws-menu ul { list-style: disc; padding-left: 40px; }
.wk-win[data-step="0"] .ws-menu li { display: list-item; font-size: 17px; padding: 0; }
.wk-win[data-step="0"] .ws-menu li i { display: none; }
.wk-win[data-step="0"] .ws-menu b { margin-left: 0.3em; }
.wk-win[data-step="0"] .ws-raw { font-size: 17px; opacity: 1; margin-top: 16px; }
/* Tor: the change applied: a bigger name, the darker ground (their sign). */
.wk-win:is([data-step="3"], [data-step="4"], [data-step="5"], [data-step="6"]) .ws-sign { font-size: 10.5cqw; }
@container (max-width: 560px) { .wk-win:is([data-step="3"], [data-step="4"], [data-step="5"], [data-step="6"]) .ws-sign { font-size: 18cqw; } }
/* Ons: their own words, stuck on the site. Tor: they peel off as the change lands. */
.wk-note {
  position: absolute; z-index: 3; max-width: 240px; padding: 14px 16px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; letter-spacing: -0.01em;
  background: #ffe48a; color: #2a2410; box-shadow: 0 12px 22px -12px #0007;
  opacity: 0; scale: 0.8; rotate: -4deg; pointer-events: none;
  transition: opacity 0.3s, scale 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), translate 0.6s, rotate 0.6s;
}
.wk-note--0 { left: 5%; top: 21%; }
.wk-note--1 { right: 6%; top: 15%; rotate: 3deg; background: #ffd0c2; }
.wk-win[data-step="2"] .wk-note { opacity: 1; scale: 1; }
.wk-win[data-step="2"] .wk-note--1 { transition-delay: 0.25s; }
.wk-win[data-step="3"] .wk-note { opacity: 0; translate: 60px -90px; rotate: 24deg; }
/* Lör: approved, the signature writes itself. */
.wk-ok { position: absolute; inset: 40px 0 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.wk-ok > div {
  max-width: calc(100% - 28px); padding: 26px 34px 22px; background: var(--noise), #fffefb; color: var(--ink); text-align: left;
  box-shadow: 0 26px 50px -20px #000a; rotate: -2deg; opacity: 0; translate: 0 30px; transition: opacity 0.35s, translate 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.wk-ok b { display: block; font-family: var(--font-display); font-size: clamp(38px, 4vw, 56px); letter-spacing: var(--track-display); color: var(--cobalt); line-height: 1; margin-bottom: 10px; }
.wk-ok p { font-family: var(--font-mono); font-size: 17px; }
.wk-sig { display: block; width: 230px; aspect-ratio: 418 / 120; margin-top: 10px; background: var(--ink); -webkit-mask: var(--sigmask); mask: var(--sigmask); -webkit-mask-composite: source-in; mask-composite: intersect; --w: -10%; }
.wk-win[data-step="5"] .wk-ok > div { opacity: 1; translate: 0 0; }
.wk-win[data-step="5"] .wk-sig { --w: 110%; transition: --w 1.3s cubic-bezier(0.3, 0.2, 0.35, 1) 0.1s; }
/* Sön: live and owned. The cobalt band rises: Ägare: <their name>. */
.wk-own {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: flex-start; gap: 0.6em; flex-wrap: wrap;
  padding: clamp(12px, 1.6vw, 20px) clamp(16px, 2.4vw, 30px); background: var(--cobalt); color: #fff;
  font-family: var(--font-mono); font-weight: 500; font-size: clamp(20px, 2.4vw, 34px); translate: 0 100%; transition: translate 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.wk-win[data-step="6"] .wk-own { translate: 0 0; }
.wk-win[data-step="6"] .wk-bar > span { box-shadow: inset 0 0 0 2px var(--cobalt); }
/* The phone: the same site, from Tis to Sön. */
.wk-phone {
  --bg: #f4ece1; --fg: #2a1a14; --ac: #b83d26;
  position: absolute; right: 0; bottom: 0; z-index: 6; --pw: clamp(200px, 19vw, 260px); width: auto; height: min(100%, calc(var(--pw) * 18.5 / 9)); aspect-ratio: 9 / 18.5;
  padding: 9px; border-radius: 34px; background: #111215; box-shadow: 0 30px 60px -24px #000c, inset 0 0 0 2px #2c2d33;
  opacity: 0; translate: 50px 30px; transition: opacity 0.4s, translate 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}
.wk-scr { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: var(--bg); color: var(--fg); transition: background 0.35s, color 0.35s; display: flex; flex-direction: column; }
.wk-scr > .wk-site { padding-top: 14px; }
.wk-pin:not([data-step="0"]) .wk-phone { opacity: 1; translate: 0 0; }
/* Fre: the menu editor on the phone (Året), the price changes on both screens */
.wk-ed {
  position: absolute; inset: 0; z-index: 2; padding: 26px 14px 16px; background: #fff; color: #15161a; font-family: var(--font-display);
  translate: 0 100%; transition: translate 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.wk-ed-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 18px; }
.wk-ed-h { flex-wrap: wrap; column-gap: 10px; }
.wk-ed-h b { white-space: nowrap; }
.wk-ed-h span { font-family: var(--font-mono); font-size: 13px; color: #55575f; }
.wk-ed li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 10px; margin-bottom: 6px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #d9d9de; font-size: 15px; }
.wk-ed li b { font-family: var(--font-mono); font-weight: 500; }
.wk-ed li:first-child { box-shadow: inset 0 0 0 2px var(--cobalt); }
.wk-ed-btn { display: block; margin-top: 14px; padding: 12px; text-align: center; border-radius: 99px; background: var(--cobalt); color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 15px; }
.wk-pin[data-step="4"] .wk-ed { translate: 0 0; }
/* the pinned stage */
.wk-cap { color: #fff; background: var(--cobalt); padding: 16px 20px 18px; box-shadow: 0 20px 40px -20px #000a; }
.wk-rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 10px; }
.wk-rail li { padding-top: 6px; border-top: 4px solid #ffffff4d; font-family: var(--font-mono); font-size: 16px; color: #ffffffcc; transition: border-color 0.3s, color 0.3s; }
.wk-rail li.is-on { border-top-color: #fff; color: #fff; }
.wk-rail li.is-now { font-weight: 500; }
.wk-line { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; min-height: 2.4em; }
.wk-static { display: grid; gap: 44px; margin-top: 24px; }
.wk-static h3 { font-size: var(--fs-d3); margin-bottom: 6px; }
.wk-static p { font-family: var(--font-mono); font-size: var(--t-read); margin-bottom: 14px; }
.wk-static .wk-win { aspect-ratio: 16 / 10; }
.wk-static .wk-own { translate: 0 0; }
.wk-static .wk-win[data-step="5"] .wk-sig, .wk-static .wk-sig { --w: 110%; }
.wk-static .wk-win[data-step="5"] .wk-ok > div { opacity: 1; translate: 0 0; }
.wk-live { display: none; }
.motion .wk-live { display: block; }
.motion .wk-static { display: none; }
.motion .wk-track { height: 780vh; }
.motion .wk-pin { position: sticky; top: 0; height: 100svh; padding-block: 70px 22px; display: flex; flex-direction: column; gap: 14px; }
.motion .wk-stage { position: relative; flex: 1; min-height: 0; max-height: 820px; }
.motion .wk-pin { justify-content: center; }
.motion .wk-stage .wk-win { position: absolute; inset: 0 0 0 0; }
@media (min-width: 900px) {
  /* the week uses the tape's full width; the day caption is a strip above the
     window (never over the site), the phone stands beside it, never on it */
  .motion .wk-pin { margin-inline: calc(-1 * clamp(18px, 4.5vw, 64px) + 20px); }
  .motion .wk-cap { order: -1; display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.2fr; gap: 28px; align-items: center; padding: 14px 22px; }
  .motion .wk-rail { margin: 0; }
  .motion .wk-line { min-height: 0; }
  .motion .wk-stage .wk-win { right: calc(clamp(200px, 19vw, 260px) + 18px); }
}
@media (max-width: 899px) {
  .wk-phone { display: none; }
  .wk-note { max-width: 170px; padding: 10px 12px; font-size: 15px; }
  .wk-ok > div { padding: 18px 20px; }
  .wk-sig { width: 180px; }
  .wk-line { min-height: 3.6em; }
}

/* ===================================================== client cards */
/* Stapled prints (r42): each card is the site, big, with the owner's own words
   printed under it. The staple sits top left, through the whole stack. */
/* the thrown card must not widen the phone page (it pushed the top bar 88 px off screen) */
.cd { overflow-x: clip; }
.cd-list { display: grid; gap: 56px; }
.cd-paper { position: relative; height: 100%; padding: clamp(12px, 1.6vw, 20px) clamp(12px, 1.6vw, 20px) clamp(18px, 2.6vw, 34px); background: #fffefb; box-shadow: 0 26px 50px -26px #0009, 0 0 0 1px #0000001a; }
.cd-shot { display: block; }
.cd-shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; box-shadow: 0 0 0 1px #00000014; }
.cd-cap { padding: clamp(14px, 1.8vw, 22px) clamp(4px, 1vw, 12px) 4px; }
/* the owner's words lead, the names follow small (Isak 2026-10-26: "the client cards have a quote thats very small and
   the owner names are very large, should be vice versa"; it was 20 px against 17 px mono on a phone) */
.cd-q blockquote { font-family: var(--font-display); font-weight: 700; font-size: calc(clamp(23px, min(2.3vw, 3.4vh), 32px) * var(--cd-q, 1)); line-height: 1.16; letter-spacing: -0.02em; }
.cd-q figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 15px; color: var(--grey); }
.cd-q figcaption b { font-weight: 500; color: var(--ink); }
.cd-q .nw { white-space: nowrap; }
.cd-where { margin-top: 10px; font-family: var(--font-mono); font-size: 15px; color: var(--grey); }
.cd-where b { font-weight: 500; color: var(--ink); }
.cd-open { font-size: var(--fs-note); }
.cd-meta { display: none; }
.cd-staple { position: absolute; z-index: 99; top: 14px; left: -8px; width: 62px; rotate: -45deg; transform-origin: center; filter: drop-shadow(0 2px 2px #0005); }
.motion .cd-track { height: 530vh; }  /* 4 swings + the last card's hold (CD_HOLD in js/site.js), ~90vh each */
.motion .cd-track.is-free { height: auto; }
.motion .cd-pin { position: sticky; top: 0; min-height: 100svh; padding-block: 80px 26px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.motion .cd-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; font-family: var(--font-mono); font-size: var(--fs-note); }
.motion .cd-meta .cd-hint { color: var(--grey); }
.motion .cd-list { display: grid; gap: 0; position: relative; margin-inline: auto; cursor: pointer; }
.motion .cd-card { grid-area: 1 / 1; transform-origin: 30px 0; }
/* a polaroid (PLAYBOOK § 4; Isak 2026-10-26: "i liked the way the client cards were square before like a polaroid
   photo"): a square-ish print, the capture on top, the owner's words in the wide bottom margin. It is as wide as the
   screen's height allows, so the whole print fits one screen while it is pinned (js/site.js fit() narrows it or
   steps the quote down if the words still run long). */
.motion .cd-list, .motion .cd-meta { width: min(100%, 700px, calc(100svh - 190px)); min-width: min(100%, 300px); }
@media (max-width: 760px) { .motion .cd-list { width: 100%; } }
/* a short laptop screen (1280x720): a little less air round the pin so the whole print and its words still fit */
@media (max-height: 760px) and (min-width: 761px) { .motion .cd-pin { padding-block: 74px 16px; gap: 10px; } }

/* ===================================================== before / after */
/* Förvandlingen (r28): her site today, wiped left to right by ours. Then the
   receipt for the build lands on it, and the stamp (Stämpeln, r42). */
.ba-view { display: grid; gap: 16px; }
.ba-view figure { position: relative; }
.ba-view img { width: 100%; box-shadow: 0 0 0 1px #0000001a; }
.ba-tag { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 16px; padding: 5px 12px; background: var(--ink); color: var(--paper); }
.ba-tag--a { background: var(--cobalt); color: #fff; }
.ba-line { display: none; }
@media (min-width: 760px) { .ba-view { grid-template-columns: 1fr 1fr; } }
.ba-lab { font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); margin-bottom: 18px; }
.ba-stage { position: relative; }
.ba-rc { width: min(560px, 100%); margin: 40px auto 0; }
.ba-rc-sub { text-align: center; font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); margin-bottom: 10px; }
.ba-rc-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 10px 0; border-bottom: 1.5px dashed var(--rule); font-family: var(--font-mono); font-size: var(--t-read); }
.ba-rc-row > :last-child { display: grid; justify-items: end; text-align: right; }
.ba-rc-row s { color: var(--grey); text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; }
.ba-rc-row b { font-weight: 500; }
.ba-rc .rc-total { margin-top: 16px; }
.ba-rc-own { font-size: var(--fs-lead); }
.motion .ba-track { height: 420vh; }
/* phone: the wipe is one animated step and the track is shorter, so before, after and the stamped receipt are each one
   swipe apart and every stop shows a finished picture, never a half-wipe (Isak 2026-10-27; a 1.7-screen gap between
   two stops snapped a normal swipe back) */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@media (pointer: coarse) { .motion .ba-track { height: 280vh; } }
.motion .ba-pin { position: sticky; top: 0; min-height: 100svh; padding-block: 72px 40px; display: flex; flex-direction: column; justify-content: center; }
.motion .ba-view { display: block; position: relative; overflow: hidden; width: min(100%, 1040px, calc((100svh - 250px) * 1.6)); aspect-ratio: 16 / 10; margin-inline: auto; box-shadow: 0 0 0 1px #0000001a; }
.motion .ba-view figure { position: absolute; inset: 0; }
.motion .ba-view img { height: 100%; object-fit: cover; object-position: top; box-shadow: none; }
.motion .ba-view .ba-tag { position: absolute; top: 12px; margin: 0; }
.motion .ba-before .ba-tag { right: 12px; }
.motion .ba-after .ba-tag { left: 12px; }
.motion .ba-after { clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); }
.motion .ba-line { display: block; position: absolute; top: 0; bottom: 0; left: calc(var(--p, 0) * 100%); width: 4px; margin-left: -2px; background: var(--cobalt); }
.motion .ba-line b { position: absolute; top: 16px; left: 8px; white-space: nowrap; padding: 5px 12px; background: var(--cobalt); color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 16px; }
.motion .ba-view.is-done .ba-line { opacity: 0; transition: opacity 0.3s; }
/* the Kvitto (Stämpeln, r42): the finished site scrolls up inside its frame
   until only its photo strip shows, and the receipt for the build prints
   centred below it, overlapping the strip; the stamp lands inside the receipt */
.motion .ba-view { --kv: 0.66; transition: translate 0.6s cubic-bezier(0.3, 0.9, 0.3, 1), clip-path 0.6s cubic-bezier(0.3, 0.9, 0.3, 1); clip-path: inset(0 0 0 0); }
/* a phone's wipe is one animated step: --p transitions too. It sat in a rule above this one, which cancelled it, so the
   after picture just appeared (Isak 2026-10-27: "There is now no animation on liselotte rebuild section") */
@media (pointer: coarse) { .motion .ba-view { transition: --p 0.8s cubic-bezier(0.6, 0, 0.2, 1), translate 0.6s cubic-bezier(0.3, 0.9, 0.3, 1), clip-path 0.6s cubic-bezier(0.3, 0.9, 0.3, 1); } }
.motion .ba-stage.is-kvitto .ba-view { translate: 0 calc(var(--kv) * -100%); clip-path: inset(calc(var(--kv) * 100%) 0 0 0); }
.motion .ba-rc { position: absolute; left: 0; right: 0; top: calc((1 - var(--kv, 0.66)) * 100% - 24px); z-index: 3; margin: 0 auto; width: min(560px, 86%); translate: 0 60px; opacity: 0; pointer-events: none; transition: translate 0.6s cubic-bezier(0.2, 1, 0.3, 1) 0.15s, opacity 0.35s 0.15s; }
/* centred by margin, not translate: the -50% translate animated in over 0.6 s when the scenes switched on, and the
   slip hung half off a phone, widening the page (phone pass 2026-10-26) */
.motion .ba-stage.is-kvitto .ba-rc { translate: 0 0; opacity: 1; pointer-events: auto; }
.motion .ba-rc { padding-bottom: 112px; }
.motion .ba-rc .ba-rc-row { padding: 8px 0; }
.motion .ba-stage.is-kvitto .ba-tag { opacity: 0; }
.ba-rc .stamp { left: auto; right: 22px; top: auto; bottom: 10px; width: min(210px, 50%); }
@media (max-width: 760px) {
  .motion .ba-view { width: 100%; aspect-ratio: auto; height: calc(100svh - 280px); --kv: 0.7; }
  .motion .ba-line b { top: 40%; }
  .motion .ba-view .ba-tag { top: auto; bottom: 12px; }
  .motion .ba-rc { width: 100%; top: calc((100svh - 280px) * 0.3 - 24px); }
  .motion .ba-stage.is-kvitto ~ .ba-lab, .motion .ba-pin:has(.is-kvitto) .ba-lab { visibility: hidden; }
  .ba-rc-row { padding: 6px 0; font-size: 17px; }
  .motion .ba-rc { padding: 16px 16px 84px; }
  .ba-rc-own { font-size: 19px; }
  .ba-rc .rc-total { margin-top: 10px; }
  .ba-rc .stamp { width: 168px; bottom: 10px; right: 14px; }
}

/* laptops: the site scrolls further up before the receipt prints, so the whole receipt and its stamp stay on screen
   (round 6: at 1366x768 the stamp hung off the bottom) */
@media (min-width: 761px) and (max-height: 900px) { .motion .ba-stage, .motion .ba-view { --kv: 0.8; } }

/* short phones: the receipt takes the whole stage, the site has already been seen */
@media (max-width: 760px) and (max-height: 760px) {
  .motion .ba-stage.is-kvitto .ba-view { opacity: 0; transition: opacity 0.3s; }
  .motion .ba-rc { top: 0; }
  .ba-rc-sub { margin-bottom: 4px; }
}

/* ============================================================== quote */
/* Isak's own line, set big and bold. The words ink in, then his signature
   writes itself (mask sweep over the scanned signature). */
@property --w { syntax: "<percentage>"; inherits: true; initial-value: 110%; }
/* declared on the signatures themselves: var(--w) resolves where --sigmask is declared, so on :root it froze at 110% */
.qt-sig, .wk-sig { --sigmask: url("/img/signature.png") left center / contain no-repeat, linear-gradient(90deg, #000 var(--w), transparent calc(var(--w) + 8%)); }
/* round 3: the quote's signature is the same scan dilated 1.5 px (magick -morphology Dilate Disk:1.5), bolder without a filter */
.qt-sig { --sigmask: url("/img/signature-bold.png") left center / contain no-repeat, linear-gradient(90deg, #000 var(--w), transparent calc(var(--w) + 8%)); }
.qt { padding-block: clamp(64px, 10vw, 140px); }
.qt-big { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-d2); line-height: 1; letter-spacing: var(--track-display); max-width: 21ch; text-wrap: balance; }
.qt-small { font-size: var(--fs-lead); max-width: 52ch; margin: 28px 0 30px; }
.qt-by { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
/* round 3 (Isak 2026-10-24: "i want the signature to be bolder, have some animation"): larger, in our cobalt hand,
   the scan dilated into a bolder stroke, and it writes itself slower, then settles with a small lift. */
.qt-sig { display: block; width: clamp(280px, 34vw, 480px); aspect-ratio: 418 / 120; background: var(--cobalt); -webkit-mask: var(--sigmask); mask: var(--sigmask); -webkit-mask-composite: source-in; mask-composite: intersect; }
.qt-sigwrap { display: block; }
.qt-who { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-read); }
.qt-who small { display: block; font-weight: 400; font-size: var(--fs-note); color: var(--grey); }
.motion .qt-q .w { opacity: 0.14; transition: opacity 0.5s ease; transition-delay: calc(var(--i) * 40ms); }
.motion .qt-q.is-in .w { opacity: 1; }
.motion .qt-sig { --w: -10%; }
.motion .qt-by.is-in .qt-sig { --w: 110%; transition: --w 2.4s cubic-bezier(0.45, 0.05, 0.4, 1); }
.motion .qt-sigwrap { transform-origin: left center; }
.motion .qt-by.is-in .qt-sigwrap { animation: sig-settle 0.7s cubic-bezier(0.2, 1, 0.3, 1) 2.2s both; }
@keyframes sig-settle { 40% { transform: scale(1.05) rotate(-1.5deg); } to { transform: none; } }
.motion .qt-who { opacity: 0; translate: 0 8px; transition: opacity 0.4s 0.6s, translate 0.4s 0.6s; }
.motion .qt-by.is-in .qt-who { opacity: 1; translate: 0 0; }

/* key words (round 3): a cobalt underline that draws itself once, when the line is on screen */
.kw { background: linear-gradient(var(--cobalt), var(--cobalt)) left 100% / 100% 0.14em no-repeat; padding-bottom: 0.06em; font-weight: 600; }
.motion .kw { background-size: 0% 0.14em; transition: background-size 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.35s; }
.motion .kw.is-in { background-size: 100% 0.14em; }

/* ========================================================= the money */
/* Den slutar inte (r42): our price stands still beside their bill, and the
   visitor scrolls through every month of it. Nothing on our side moves. */
.mn-slide { display: flex; align-items: center; gap: 16px; margin: 28px 0 6px; max-width: 680px; }
.mn-slide input { flex: 1; min-width: 0; accent-color: var(--ink); height: var(--tap); }
.mn-slide output { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-lead); }
.mn-basis { font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); margin-bottom: 30px; }
.mn-track { display: grid; gap: 40px; }
@media (min-width: 900px) { .mn-track { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); } }
.mn-ours-col { align-self: stretch; }
.mn-ours { position: sticky; top: 76px; }
.mn-ours-lab { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); }
.mn-once { font-size: var(--fs-d2); margin: 10px 0 4px; }
.mn-keep { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-note); color: var(--cobalt); margin-bottom: 14px; }
.mn-care small { display: block; font-size: 16px; color: var(--grey); }
.mn-ours .rc-total > .rc-row, .mn-with { font-size: var(--t-read); font-weight: 500; }
.mn-verdict { margin: 16px 0 6px; font-family: var(--font-mono); font-weight: 500; font-size: var(--t-read); color: var(--cobalt); }
.mn-own { position: relative; font-size: var(--fs-lead); }
/* "Ägare: du." reads as one line, the pen rings "du." (round 3: the "din!" scribble beside it was off the line) */
.mn-ours .rc-row.mn-own { justify-content: flex-start; column-gap: 0.85em; margin-top: 10px; }
.mn-ours .mn-own > .mn-you:last-child:not(:first-child) { position: relative; display: inline-block; margin-left: 0; }
.mn-you .pen { inset: -13px -13px; width: calc(100% + 26px); height: calc(100% + 26px); }
.mn-lab { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); }
.mn-theirs > .mn-lab { padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
/* the live counter (Isak 2026-10-24): the month the reader has scrolled to and their sum so far, at their own figure */
.mn-live { display: none; }
.motion .mn-live { position: sticky; top: 56px; z-index: 2; display: grid; gap: 2px; margin: 0 -6px; padding: 12px 18px 14px; background: var(--cobalt); color: #fff; box-shadow: 0 14px 30px -16px #000a; font-family: var(--font-mono); font-size: var(--fs-note); transition: top 0.3s cubic-bezier(0.2, 0.8, 0.3, 1); }
body:has(.tp-bar.is-hidden) .mn-live { top: 0; }
/* the sum is the point: display type, as big as a headline */
.motion .mn-live b { font-family: var(--font-display); font-weight: 700; font-size: min(var(--fs-d2), 10.5cqi); white-space: nowrap; letter-spacing: var(--track-display); line-height: 1; font-variant-numeric: tabular-nums; }
/* one line at any column width: "72 000 kr hittills" wrapped and hid the rows under it at 1440 */
.motion .mn-live { container-type: inline-size; opacity: 0; translate: 0 -10px; transition: top 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.5s ease, translate 0.5s ease; }
.motion .mn-live.is-on { opacity: 1; translate: 0 0; }
.mn-roll { position: relative; }
.mn-roll .rc-row { border-bottom: 1px dashed var(--rule); padding-block: 0.3em; }
.mn-yr { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 6px 0; border-bottom: 2px solid var(--ink); font-family: var(--font-mono); font-weight: 500; font-size: var(--t-read); }
.mn-yr span + span { font-weight: 400; color: var(--grey); }
.mn-roll > .mn-yr:first-child { margin-top: 6px; }
.mn-x { position: relative; }
.mn-x .pen { inset: -10px -14px; width: calc(100% + 28px); height: calc(100% + 20px); }
.mn-cross { padding: 8px 0 10px; font-family: var(--font-mono); font-weight: 500; font-size: var(--t-read); color: var(--cobalt); }
.mn-end { margin-top: 26px; }
.mn-tot { position: relative; display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-d2); line-height: 1.1; margin: 4px 0 6px; }
.mn-tot::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 5px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1); }
.mn-end.is-in .mn-tot::after, .no-motion .mn-tot::after { transform: scaleX(1); }
html:not(.motion) .mn-tot::after { transform: scaleX(1); }
.mn-endless { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-d3); letter-spacing: -0.03em; }
.mn-more { display: inline-flex; min-height: var(--tap); align-items: center; margin-top: 18px; }
@media (max-width: 899px) {
  .mn-ours { position: static; }
  /* a phone prints years 1 and 2 month by month, then one line a year: still ten years, three screens, not seven */
  .mn-roll .mn-fold { display: none; }
}
/* the sticky receipt is one screen at most: its rows and the big price step down on a short laptop screen, so the whole
   nota stays in view beside their bill (Isak 2026-10-26, his ~1900x915 window: the receipt ran off the bottom) */
@media (min-width: 900px) {
  .mn-ours { --t-read: clamp(16px, min(1.5vw, 1.95vh), 21px); --fs-lead: clamp(17px, min(1.7vw, 2.3vh), 25px); padding-block: clamp(16px, 2.6vh, 28px) clamp(18px, 3vh, 32px); }
  .mn-ours .rc-row { padding-block: 0.24em; }
  .mn-once { font-size: min(var(--fs-d2), 6.6vh); }
  .mn-keep { margin-bottom: 8px; }
  .mn-verdict { margin: 10px 0 4px; }
}
/* the phone bar keeps our price on screen while their bill scrolls */
.mn-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--cobalt); color: #fff;
  font-family: var(--font-mono); font-size: 16px; line-height: 1.35;
  translate: 0 100%; transition: translate 0.35s cubic-bezier(0.2, 1, 0.3, 1);
}
.mn-bar b { font-weight: 500; font-size: 19px; }
@media (max-width: 899px) { .motion .mn-bar { display: block; } body.is-in-bill .mn-bar { translate: 0 0; } }

/* =================================================== tear-off form */
.fm-cut { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 16px; color: var(--grey); margin-bottom: 18px; }
.fm-cut::before, .fm-cut::after { content: ""; flex: 1; border-top: 2px dashed var(--ink); opacity: 0.5; }
/* round 3 (Isak 2026-10-24: "the form should be larger or clearer ... like a better cta"): a headed card on its
   own paper, two big boxed fields, one wide button with an arrow */
.fm-stub { max-width: 860px; margin-inline: auto; display: grid; gap: 20px; padding: clamp(24px, 4vw, 52px); background: #fffefb; box-shadow: 0 30px 60px -34px #0007, inset 0 0 0 2px var(--ink); transition: transform 0.6s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.5s; }
.fm-h { font-size: var(--fs-d2); line-height: 1; }
.fm-sub { font-size: var(--fs-lead); max-width: 40ch; margin-top: -6px; }
.fm-fields { display: grid; gap: 18px; margin-top: 6px; }
@media (min-width: 760px) { .fm-fields { grid-template-columns: 1fr 1fr; } }
.fm-stub .fm-go { min-height: 68px; font-size: clamp(19px, 1.8vw, 23px); }
.fm-go::after { content: "→"; margin-left: 12px; transition: translate 0.2s; }
.fm-go:hover::after, .fm-go:focus-visible::after { translate: 4px 0; }
.fm-stub.is-torn { transform: translateY(40px) rotate(3deg); opacity: 0; }
.fm-field { display: grid; gap: 4px; }
.fm-field span { font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); }
.fm-field input, .fm-field textarea {
  width: 100%; min-height: 64px; padding: 10px 14px; border: 0; border-radius: 0; box-shadow: inset 0 0 0 2px var(--ink);
  background: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; caret-color: var(--cobalt);
}
.fm-field input:focus { outline: none; box-shadow: inset 0 0 0 3px var(--cobalt); }
.fm-field span { color: var(--ink); font-weight: 500; }
.fm-field input::placeholder { color: #9a9ca3; font-weight: 400; }
.fm-stub .rc-btn { width: 100%; }
.fm-next, .fm-ask, .fm-priv { font-family: var(--font-mono); font-size: var(--fs-note); max-width: 70ch; }
.fm-ask button { background: none; border: 0; padding: 0; min-height: var(--tap); color: var(--cobalt); font-family: var(--font-mono); font-weight: 500; text-decoration: underline; }
.fm-priv { color: var(--grey); }
.fm-status { font-family: var(--font-mono); font-size: var(--fs-note); min-height: 1.4em; }
.fm-status.is-err { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm-nota { max-width: 520px; margin: 0 auto; text-align: center; }
.fm-nota.is-in { animation: nota-in 0.6s cubic-bezier(0.2, 1, 0.3, 1) both; }
@keyframes nota-in { from { opacity: 0; transform: translateY(-40px) rotate(-3deg) scale(0.96); } }
.fm-paper { position: relative; filter: drop-shadow(0 22px 30px #0005); }
.fm-paper .stamp { right: 4%; top: 55%; }
.fm-nota figcaption { display: grid; gap: 8px; justify-items: center; margin-top: 22px; font-family: var(--font-mono); font-size: 16px; }

/* ================================================================ end */
.en { text-align: center; padding-bottom: clamp(56px, 8vw, 96px); }
.en .en-h { font-family: var(--font-display); font-size: var(--fs-d2); margin-bottom: 6px; }
.en p { font-family: var(--font-mono); font-size: var(--fs-note); }
.en .rc-small { margin-top: 18px; }

/* ============================================================= footer */
.ft { width: var(--tape); margin: 0 auto; padding: 24px 0 120px; color: #c9cad0; font-family: var(--font-mono); font-size: 16px; }
.ft-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.ft a { color: var(--paper); display: inline-flex; min-height: var(--tap); align-items: center; }
.ft-notice { color: var(--paper); margin-bottom: 14px; max-width: 70ch; }

/* ============================================================ printer */
.pr {
  position: fixed; left: 50%; bottom: 0; z-index: 20; translate: -50% 0;
  width: calc(var(--tape) + 28px); height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: linear-gradient(#2a2b31, #17181c); color: #8b8d96; border-radius: 8px 8px 0 0; box-shadow: 0 -1px 0 #ffffff14 inset, 0 -10px 30px #0008;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; transition: translate 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}
.pr::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; background: #050607; border-radius: 0 0 2px 2px; }
.pr i { width: 8px; height: 8px; border-radius: 50%; background: #39d07a; box-shadow: 0 0 8px #39d07a; }
.pr.is-away { translate: -50% 100%; box-shadow: none; }
@media (min-width: 1000px) { .pr { height: 24px; font-size: 14px; } }
.motion body.is-feeding .tp { animation: feed 1s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
@keyframes feed { from { transform: translateY(55vh); } }

/* ========================================================== Fråga Isak */
.fq {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(440px, 100vw);
  display: flex; flex-direction: column; padding-top: var(--tear-h);
  translate: 105% 0; transition: translate 0.4s cubic-bezier(0.2, 1, 0.3, 1); visibility: hidden;
}
.fq.is-open { translate: 0 0; visibility: visible; }
.fq::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--tear-h);
  background: var(--noise), var(--paper); -webkit-mask: var(--tear-up) bottom / 48px 100% repeat-x; mask: var(--tear-up) bottom / 48px 100% repeat-x;
}
.fq-in { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--noise), var(--paper); color: var(--ink); box-shadow: -20px 0 50px #0007; }
.fq-top { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 16px 18px 12px; border-bottom: 2px dashed var(--rule); }
.fq-top h2 { font-size: 26px; }
.fq-top p { font-family: var(--font-mono); font-size: 15px; color: var(--grey); margin-top: 4px; }
.fq-x { flex: none; width: var(--tap); height: var(--tap); border: 0; background: none; font-family: var(--font-mono); font-size: 26px; line-height: 1; }
.fq-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 17px; line-height: 1.45; }
.fq-m--u { color: var(--grey); padding-left: 1.2em; }
.fq-m--u::before { content: attr(data-you) ": "; }
.fq-m--rc { border-top: 2px dashed var(--rule); border-bottom: 2px dashed var(--rule); padding: 6px 0; }
.fq-m--rc .rc-row { font-size: 16px; padding-block: 2px; }
.fq-m a { color: var(--cobalt); }
.fq-sw { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: middle; }
.fq-sw b { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px #0002; }
.fq-dots { color: var(--grey); letter-spacing: 0.2em; }
.fq-dock { border-top: 2px dashed var(--rule); padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); }
.fq-chips { display: grid; gap: 2px; margin-bottom: 8px; }
.fq-chips button {
  display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 4px; border: 0; background: none; text-align: left;
  font-family: var(--font-mono); font-size: 16px; border-bottom: 1px dashed var(--rule);
}
.fq-chips button::before { content: "→"; color: var(--grey); }
.fq-chips button.is-go { color: var(--cobalt); font-weight: 500; }
.fq-chips button:hover { background: #0000000a; }
.fq-form { display: flex; gap: 8px; }
.fq-form textarea { flex: 1; min-height: var(--tap); max-height: 140px; resize: none; padding: 10px 2px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font-family: var(--font-mono); font-size: 17px; }
.fq-form button { flex: none; min-width: var(--tap); padding: 0 12px; border: 0; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 16px; }
@media (min-width: 1300px) {
  .tp, .ft { transition: translate 0.45s cubic-bezier(0.2, 1, 0.3, 1); }
  body.is-asking .tp, body.is-asking .ft { translate: -220px 0; }
}

/* ============================================================ snapping */
/* Phone only, and only inside the animated scenes (js snaps(): html.snapping is on between a scene's first and last
   stop). One swipe = one stop there; the rest of the page scrolls freely. */
.snap { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
@media (pointer: coarse) { html.motion.snapping { scroll-snap-type: y mandatory; } }

/* ========================================================= price page */
.pp-h1 { font-size: var(--fs-d1); margin: clamp(18px, 3vw, 36px) 0 12px; }
.pp-row { display: grid; gap: 24px; margin-top: 26px; align-items: start; }
/* phones: the three receipts stack, Grund, Standard, Premium; a sideways swipe
   hid Standard and Premium behind three dots (fresh-reviewer pass 2026-10-24) */
.pp-dots { display: none; }
.pp-rc { position: relative; }
.pp-slot { height: 14px; margin: 0 -8px; background: linear-gradient(#2a2b31, #17181c); border-radius: 6px; box-shadow: inset 0 -3px 0 #050607; }
.pp-paper {
  position: relative; margin: -4px 6px 0; padding: 24px 18px 26px;
  background: var(--noise), #fffefb; box-shadow: 0 18px 40px -24px #0008, 0 0 0 1px #00000014;
  transition: box-shadow 0.3s, translate 0.3s;
}
.motion .pp-paper { clip-path: inset(0 0 calc((1 - var(--print, 0)) * 100%) 0); }
.pp-paper::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--tear-h); background: #fffefb; -webkit-mask: var(--tear) top / 48px 100% repeat-x; mask: var(--tear) top / 48px 100% repeat-x; }
.pp-paper h2 { font-size: var(--fs-d3); }
.pp-price { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-lead); margin: 6px 0 14px; }
.pp-price small { color: var(--grey); font-weight: 400; }
.pp-lines .rc-row { display: block; padding-block: 8px; border-bottom: 1px dashed var(--rule); }
.pp-lines .rc-row > :first-child { display: block; font-size: 16px; color: var(--grey); }
.pp-lines .rc-row > :last-child { display: block; text-align: left; font-size: var(--t-read); font-weight: 500; }
/* the ladder: what this receipt has more of than the one below it */
.pp-lines .rc-row.is-up > :last-child { color: var(--cobalt); }
.pp-lines .rc-row.is-up > :last-child::before { content: "+ "; }
.pp-plus { min-height: 2.8em; margin: 6px 0 2px; font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--cobalt); }
.pp-all { margin-top: 12px; font-family: var(--font-mono); font-size: 16px; color: var(--grey); }
.pp-owner { margin: 14px 0 18px; font-size: 20px; }
.pp-paper .rc-total > .rc-row { font-size: var(--fs-note); }
.pp-choose { width: 100%; }
.pp-rc.is-match .pp-paper { box-shadow: 0 0 0 3px var(--ink), 0 26px 50px -24px #0009; translate: 0 -6px; }
.pp-rc.is-chosen .pp-choose { background: var(--ink); color: var(--paper); }
.pp-rc .stamp { left: 50%; top: 38%; width: 92%; translate: -50% 0; }
/* the receipts print as the page loads (js/site.js), no pinned scroll: the prices are on the first screen */
.motion .pp-paper { transition: clip-path 0.9s cubic-bezier(0.5, 0, 0.3, 1), box-shadow 0.3s, translate 0.3s; }
.pp-toggle { display: inline-flex; flex-wrap: wrap; gap: 0; margin: 18px 0 14px; box-shadow: inset 0 0 0 2px var(--ink); }
.pp-toggle button { min-height: var(--tap); padding: 0 16px; border: 0; background: none; font-family: var(--font-mono); font-size: 17px; }
.pp-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pp-note { font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); max-width: 64ch; margin-top: 12px; }
.pp-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 16px 0 10px; font-family: var(--font-mono); font-size: 15px; }
.pp-strip li { text-align: center; padding: 6px 0; box-shadow: inset 0 0 0 1px var(--rule); }
.pp-strip li.is-min { background: #0000000d; }
.pp-strip li:last-child { background: var(--cobalt); color: #fff; }
.pp-cal { display: grid; gap: 14px; margin: 20px 0 22px; }
.pp-cal-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 16px; }
.pp-cal ol { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.pp-cal li { height: 34px; display: grid; place-items: center; font-size: 15px; color: var(--grey); box-shadow: inset 0 0 0 1px var(--rule); }
.pp-cal li.is-in { background: var(--cobalt); color: #fff; box-shadow: none; }
.motion .pp-cal li.is-in { transform: scaleY(0.2); opacity: 0; transition: transform 0.4s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.2s; transition-delay: calc(var(--k, 0) * 60ms); }
.motion .pp-cal.is-in li.is-in { transform: none; opacity: 1; }
@media (max-width: 640px) { .pp-cal-row { grid-template-columns: 1fr auto; } .pp-cal ol { grid-column: 1 / -1; grid-row: 2; } .pp-cal li span { font-size: 0; } .pp-cal li { height: 22px; } }
.pp-care-after { font-family: var(--font-mono); font-size: var(--t-read); }
.pp-care-no { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-d3); letter-spacing: -0.02em; margin-top: 10px; }
.pp-steplist { display: grid; gap: 34px; margin-top: 30px; }
.pp-steplist li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.pp-n { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--track-display); color: var(--cobalt); font-size: var(--fs-d2); line-height: 0.85; min-width: 0.7em; }
.pp-steplist h3 { font-size: var(--fs-d3); margin-bottom: 8px; }
.pp-steplist p { font-size: var(--fs-lead); max-width: 34ch; }
.pp-faq-q { border-bottom: 1px dashed var(--rule); }
.pp-faq-q summary { min-height: var(--tap); display: flex; align-items: center; gap: 10px; padding: 8px 0; font-family: var(--font-mono); font-weight: 500; font-size: var(--t-read); cursor: pointer; list-style: none; }
.pp-faq-q summary::-webkit-details-marker { display: none; }
.pp-faq-q summary::before { content: "+"; width: 1em; color: var(--grey); }
.pp-faq-q[open] summary::before { content: "−"; }
.pp-faq-q p { padding: 0 0 14px 1.6em; max-width: 64ch; font-size: var(--t-read); }
.pp-ten .rc-row { font-size: var(--t-read); }

/* =========================================================== doc pages */
/* Catalog, legal and privacy: the same tape and type, plain, no motion.
   Every rule hangs off the tape ([data-tape]) or a prefixed class, so nothing
   reaches the top bar or the footer (the first build's `.doc a` turned them
   cobalt). Receipt pieces are the price page's: rc-slip, rc-row, rc-total. */
.ct-hero .pp-h1, .lg-hero h1 { font-size: var(--fs-d1); line-height: 0.96; margin: clamp(22px, 4vw, 44px) 0 16px; }
/* round 3 (Isak 2026-10-24: "the catalog page is very difficult to parse and read, same with foretagsinfo and
   integritetspolicy"): a numbered contents grid that fills the tape, numbered section heads, the catalog's lines
   as a ticked list in the reading face instead of wrapped mono, and on legal/privacy the heading in its own
   column beside the text from 1000 px, so the right of the tape is no longer empty. */
.ct-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; margin: 22px 0 14px; counter-reset: toc; }
.ct-toc li { counter-increment: toc; }
[data-tape] .ct-toc a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; height: 100%; min-height: 60px; padding: 10px 16px;
  background: #fffefb; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); font-family: var(--font-display); font-weight: 600; font-size: var(--t-read); line-height: 1.25; text-decoration: none; }
.ct-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-note); color: var(--cobalt); }
.ct-toc a::after { content: "↓"; color: var(--cobalt); transition: translate 0.2s; }
[data-tape] .ct-toc a:hover { box-shadow: inset 0 0 0 3px var(--cobalt); }
.ct-toc a:hover::after { translate: 0 3px; }
.pg-catalog main, .pg-legal main, .pg-privacy main { counter-reset: sec; }
.pg-catalog .ct, .pg-legal .lg, .pg-privacy .lg { counter-increment: sec; scroll-margin-top: 64px; }
.pg-catalog .ct-h::before, .pg-legal .lg-h::before, .pg-privacy .lg-h::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 6px; font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-note); letter-spacing: 0; color: var(--cobalt); }
.pg-catalog .ct-line > span { font-family: var(--font-display); }
.pg-catalog .ct-line { position: relative; padding-left: 1.5em; line-height: 1.35; }
.pg-catalog .ct-line::before { content: "+"; position: absolute; left: 0.1em; top: 0.3em; font-family: var(--font-mono); font-weight: 500; color: var(--cobalt); }
.pg-catalog .ct-slip > .rc-row:not(.ct-line) > :first-child { font-family: var(--font-display); }
.pg-catalog .ct-slip > .rc-row:not(.ct-line) > :last-child { font-weight: 500; }
.ct-h { font-size: var(--fs-d3); }  /* a document-page section heading is d3 (PLAYBOOK § 4) */
.ct-pkgs, .ct-slips { display: grid; gap: 40px; margin-top: 30px; align-items: start; }
.ct-pkgs + .ct-slips { margin-top: 44px; }
.ct-slips + .pp-note, .ct-pkgs + .pp-note { margin-top: 34px; }
.ct-pkg-h { font-size: var(--fs-d3); }
.ct-price { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-lead); margin: 6px 0 12px; }
.ct-price small { color: var(--grey); font-weight: 400; white-space: nowrap; }
.ct-slip > .rc-row, .ct-lines > .rc-row, .lg-facts > .rc-row { border-bottom: 1px dashed var(--rule); font-size: var(--t-read); }
/* a long label wraps whole words onto the next line instead of breaking a
   word (the tape's overflow-wrap:anywhere split "Drif t" at 390 px) */
.ct-hero .hr-meta, .lg-hero .hr-meta, .nf .hr-meta, .rc-slip > .rc-row, .rc-slip > .rc-total > .rc-row, .pp-paper .rc-total > .rc-row { flex-wrap: wrap; column-gap: 1em; row-gap: 0; }
.ct-hero .hr-meta > *, .lg-hero .hr-meta > *, .rc-slip > .rc-row > :first-child, .rc-slip > .rc-total > .rc-row > *, .pp-paper .rc-total > .rc-row > * { overflow-wrap: normal; }
.rc-slip > .rc-row > :last-child:not(:first-child) { margin-left: auto; overflow-wrap: anywhere; }
/* the money stub's package rows sit one level deeper ([data-m=rows]); same whole-word wrapping */
.mn-ours .rc-row { flex-wrap: wrap; column-gap: 1em; row-gap: 0; }
.mn-ours .rc-row > * { overflow-wrap: normal; }
.mn-ours .rc-row > :last-child:not(:first-child) { margin-left: auto; }
.ct-pkg .rc-total > .rc-row { font-size: var(--fs-note); }
.ct-note { font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); margin-top: 14px; max-width: 64ch; }
.ct-owner { margin-top: 14px; font-size: 20px; }
.ct-steps { margin-top: 28px; }
.ct-cta { margin-top: 22px; }
.lg-h { font-size: var(--fs-d3); margin-bottom: 20px; }
.lg-facts { max-width: 68ch; }
.lg-facts + .lg-body { margin-top: 40px; }
/* one label/value element on every document page (PLAYBOOK § 4, Isak 2026-10-26: "we use 2 different elements for same
   function in company info"): a row in a slip. A long value takes the row's full width under its label; the old
   bold-lead paragraph with a cobalt side bar is gone (its block <strong> stranded ": skatteverket.se" on a line) */
.lg-body > .rc-slip { margin-block: 22px; }
.lg-body > .rc-slip:first-child { margin-top: 0; }
.lg-body > .rc-slip:last-child { margin-bottom: 8px; }
.rc-slip > .rc-row--long { display: block; padding-block: 12px; }
.rc-slip > .rc-row--long > :first-child { display: block; font-weight: 500; }
/* a long value stays in the row's mono like every other receipt row (round 8 set it in the display face, so
   Integritet's slips were the only sans slips on the site; Isak 2026-10-26: "why is the font different on integrity page?") */
.rc-slip > .rc-row--long > :last-child:not(:first-child) { margin: 4px 0 0; text-align: left; overflow-wrap: break-word; line-height: 1.5; }
/* Integritet and Företagsinfo are reading pages: their slips use the same face, size and line height as the rest of the site's text
   (Familjen Grotesk, --t-read, 1.5), not the receipt mono (Isak 2026-10-26: "the integrity site still has weird font and size font
   compared to rest of site"). Real receipt slips elsewhere keep the mono. */
.lg-hero .hr-meta { font-family: var(--font-display); font-size: var(--t-read); line-height: 1.5; }
/* round 10b (Isak 2026-10-26 21:32: "STILL THE 01 AND 04 SECTIONS HAVE WEIRD FONTS"): section 01 is a .lg-facts slip and section 04 a .rc-ledger table, neither
   inside .lg-body, so the first rule missed them. Everything inside a slip or ledger on the legal pages now reads exactly like the body text; the table keeps its
   columns, grey header and rules, but no mono, no small size, no bold, no tracking. */
.doc:is(.pg-legal, .pg-privacy) :is(.rc-slip, .rc-ledger), .doc:is(.pg-legal, .pg-privacy) :is(.rc-slip, .rc-ledger) * { font-family: var(--font-display); font-size: var(--t-read); font-weight: 400; line-height: 1.5; letter-spacing: normal; text-transform: none; font-variant: normal; font-feature-settings: normal; }
.rc-row--long p + p, .rc-row--long p + ul { margin-top: 8px; }
.rc-row--long ul { margin-top: 6px; }
.lg-body { max-width: 68ch; }
/* reading width: ch is the width of "0", wider than an average letter, so 68ch ran 80 to 89 characters a line; 30em is about 68 (PLAYBOOK § 3) */
.lg-body > p, .lg-body > ul { max-width: 30em; margin-inline: auto; }
.lg-body p + p, .lg-body p + ul, .lg-body ul + p { margin-top: 12px; }
.lg-body li { position: relative; padding-left: 1.3em; margin: 6px 0; }
.lg-body li::before { content: ""; position: absolute; left: 0.2em; top: 0.62em; width: 6px; height: 6px; background: var(--ink); }
[data-tape] .lg-body a, [data-tape] .lg-facts a { color: var(--cobalt); }
[data-tape] .lg-facts a { display: inline-flex; align-items: center; min-height: var(--tap); }
/* a table of three or more columns: the ledger (PLAYBOOK § 4; Isak 2026-10-26: "the table in 04 i think can be
   prettier"). A slip, a ruled mono header, dashed rows; on a phone each row stacks with its cells labelled. */
.rc-ledger { margin-top: 24px; font-family: var(--font-mono); font-size: var(--fs-note); line-height: 1.4; }
.rc-ledger-head, .rc-ledger-row { display: grid; gap: 4px 22px; padding-block: 12px; }
.rc-ledger-head { padding-top: 0; color: var(--grey); border-bottom: 2px solid var(--ink); }
.rc-ledger-row + .rc-ledger-row { border-top: 1px dashed var(--rule); }
.rc-ledger-row > :first-child { font-weight: 500; font-size: var(--t-read); }
@media (min-width: 760px) { .rc-ledger-head, .rc-ledger-row { grid-template-columns: 10em minmax(0, 1fr) minmax(0, 1.5fr); } }
@media (max-width: 759px) {
  .rc-ledger-head { display: none; }
  .rc-ledger-row > :not(:first-child)::before { content: attr(data-label); display: block; color: var(--grey); }
  .rc-ledger-row > * + * { margin-top: 6px; }
}
.rc-ledger + .lg-body { margin-top: 28px; }
.hr-lede + .hr-lede { margin-top: 12px; }
.ar-cta { margin-top: 32px; }
.lg-body + .ar-cta .rc-btn { max-width: 100%; text-align: center; }
/* ============================================================ articles */
/* One template for every article (PLAYBOOK § 5; Isak 2026-10-26: "the php article is very not so human readable, it
   lacks images the title is too large and the formatting etc. is just hurrendous"): a d2 title, the lede and the
   byline, then one reading column with lead-size sub-headings, lists, figures and the footnote. */
.ar-head h1 { font-size: var(--fs-d2); line-height: 1.02; margin: clamp(22px, 4vw, 44px) auto 18px; max-width: 20ch; }
.ar-lede { font-size: var(--fs-lead); line-height: 1.4; max-width: 44ch; }
.ar-by { margin-top: 16px; font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); }
.ar-body { max-width: 28em; }  /* about 68 characters a line (PLAYBOOK § 3; 64ch ran 84 to 90) */
/* sub-headings read as headings: display weight at d3 size, not lead size beside the body text (Isak 2026-10-27: "On
   article php the subsection headers should be bold"; they were 700 but 19 px against 17 px text) */
.ar-body > h2 { font-size: var(--fs-d3); font-weight: 700; letter-spacing: var(--track-display, -0.02em); line-height: 1.1; margin: clamp(40px, 6vh, 60px) 0 14px; }
.ar-body > h2:first-child { margin-top: 0; }
.ar-body > p + p, .ar-body > p + ul, .ar-body > ul + p { margin-top: 14px; }
.ar-body li { position: relative; padding-left: 1.3em; margin: 6px 0; }
.ar-body li::before { content: ""; position: absolute; left: 0.2em; top: 0.62em; width: 6px; height: 6px; background: var(--ink); }
[data-tape] .ar-body a:not(.rc-btn), [data-tape] .ar-list a { color: var(--cobalt); }
.ar-src { font-size: var(--fs-note); color: var(--grey); }
.ar-body > .ar-cta { margin-top: 28px; text-align: center; }
.ar-fig { margin: 34px 0; }
.ar-fig figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); text-align: center; }
/* the figure for a client's site is the polaroid (PLAYBOOK § 4), smaller */
.ar-polaroid { max-width: 560px; margin-inline: auto; padding: 14px 14px 20px; background: #fffefb; box-shadow: 0 26px 50px -26px #0009, 0 0 0 1px #0000001a; rotate: -1deg; }
.ar-polaroid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; box-shadow: 0 0 0 1px #00000014; }
.ar-polaroid figcaption { margin-top: 14px; color: var(--ink); }
/* a drawn explanation is a receipt diagram: slips side by side, our verdict in cobalt */
.ar-diagram-slips { display: grid; gap: 30px; }
@media (min-width: 700px) { .ar-diagram-slips { grid-template-columns: 1fr 1fr; gap: 22px; } }
.ar-diagram .rc-slip { padding: 20px 20px 22px; }
.ar-diagram .rc-row { font-size: var(--fs-note); border-bottom: 1px dashed var(--rule); flex-wrap: wrap; column-gap: 1em; }
.ar-diagram .rc-row > :last-child { margin-left: auto; }
.ar-diagram figcaption { margin-top: 26px; }
/* on a laptop the two slips take the page column, wider than the reading column, so each row stays on one line */
@media (min-width: 1000px) { .ar-diagram { --dw: min(900px, calc(100vw - 160px)); width: var(--dw); margin-inline: calc((100% - var(--dw)) / 2); } }
/* the flow diagram (PLAYBOOK § 4): a track per slip, guest or stranger on the left, the server on the right. Its
   resting state is the end of the story (the stranger's step, the ring on the server that was hit); with
   html.motion js/site.js sets data-run 1 (the visit), 2 (the stranger), done, and the keyframes below play it. */
.fl-step { display: none; }
.fl-track { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; font-family: var(--font-mono); font-size: var(--fs-note); line-height: 1.25; }
.fl-node { position: relative; flex: none; overflow-wrap: normal; padding: 10px 12px; border: 1.5px solid var(--ink); background: #fffefb; text-align: center; }
.fl-srv { max-width: 10em; }
.fl-srv::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--cobalt); }
/* each swapped text (guest/stranger, the status line, the step) stacks its variants in one cell and only switches
   visibility, so the box is always as tall as its longest variant and nothing below moves between steps */
:is(.fl-who, .fl-say, .fl-step) { display: grid; justify-items: inherit; }
:is(.fl-who, .fl-say, .fl-step) > span { grid-area: 1 / 1; }
.fl-who > :first-child, .fl-say > :first-child { visibility: hidden; }
.fl-rail { position: relative; flex: 1; min-width: 36px; height: 18px; background: linear-gradient(90deg, var(--ink) 50%, transparent 0) 0 50% / 8px 1.5px repeat-x; }
.fl-dot, .fl-page { position: absolute; top: 50%; left: 0; opacity: 0; translate: 0 -50%; }
.fl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--cobalt); }
.fl-page { width: 18px; height: 22px; border: 1.5px solid var(--ink); background: #fffefb linear-gradient(var(--ink) 0 0) 3px 5px / 10px 1.5px no-repeat, linear-gradient(var(--ink) 0 0) 3px 10px / 7px 1.5px no-repeat; }
.fl-ring { position: absolute; inset: -9px -12px; width: calc(100% + 24px); height: calc(100% + 18px); max-width: none; overflow: visible; pointer-events: none; }
.fl-ring path { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linecap: round; }
.fl-say { margin-bottom: 8px; font-family: var(--font-mono); font-size: var(--fs-note); font-weight: 500; line-height: 1.3; }
.fl-again { display: none; }
.motion .fl-again { display: block; min-height: var(--tap); margin-top: 18px; text-align: center; }
.motion .fl-again + figcaption { margin-top: 6px; }
.motion .fl-replay { visibility: hidden; }
.motion [data-run="done"] .fl-replay { visibility: visible; }
/* a phone: the slip is about 280 px inside, so the nodes get tighter (the server name wraps to two lines) */
@media (max-width: 520px) { .fl-track { gap: 8px; font-size: 15px; } .fl-node { padding: 8px 9px; } .fl-srv { max-width: 7.5em; } .fl-rail { min-width: 24px; } }
.fl-replay { gap: 0.4em; border: 0; background: none; padding: 0 4px; font-size: var(--fs-note); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.fl-replay:hover { text-decoration-thickness: 2px; }
/* both steps are on screen from the start as a two-step header, the running one in ink with a cobalt bar under it:
   step 2 used to replace step 1 only ~4 s in, so it never showed at first (Isak 2026-10-27 19:09: "What is this
   subsection and it doesnt even show at first") */
.motion .fl-step { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-note); }
.motion .fl-step > span { grid-area: auto; padding: 8px 10px 10px; color: var(--grey); box-shadow: inset 0 -3px 0 var(--rule); transition: color 0.3s, box-shadow 0.3s; }
.motion :is(.ar-flow:not([data-run]), .ar-flow[data-run="1"]) .fl-step > :first-child, .motion .ar-flow:is([data-run="2"], [data-run="done"]) .fl-step > :last-child { color: var(--ink); box-shadow: inset 0 -3px 0 var(--cobalt); }
/* step 1, the visit: both get the guest's request; the PHP server cooks (the bar), ours sends the page at once */
.motion [data-run="1"] :is(.fl-who, .fl-say) > :first-child { visibility: visible; }
.motion [data-run="1"] :is(.fl-who, .fl-say) > :last-child { visibility: hidden; }
.motion [data-run="1"] .fl-ring { opacity: 0; }
.motion [data-run="1"] .fl-dot { animation: fl-go 0.8s ease-in forwards; }
.motion [data-run="1"] .fl-lane--a .fl-srv::after { animation: fl-cook 1.3s linear 0.8s forwards; }
.motion [data-run="1"] .fl-lane--a .fl-page { animation: fl-back 0.9s ease-out 2.1s forwards; }
.motion [data-run="1"] .fl-lane--b .fl-page { animation: fl-back 0.9s ease-out 0.8s forwards; }
.motion [data-run="1"] .fl-say { animation: fl-in 0.3s 0.2s backwards; }
/* step 2, the stranger: it hits the PHP server (the ring) and finds nothing to hit on ours (it falls back) */
.motion [data-run="2"] .fl-dot { background: var(--ink); border-radius: 0; }
/* its own keyframes name, so the dot restarts when step 1 turns into step 2 */
.motion [data-run="2"] .fl-lane--a .fl-dot { animation: fl-hit 0.8s ease-in forwards; }
.motion [data-run="2"] .fl-lane--b .fl-dot { animation: fl-miss 1.4s ease-in-out forwards; }
.motion [data-run="2"] .fl-ring path { stroke-dasharray: var(--l); animation: fl-draw 0.6s ease-out 0.8s backwards; }
.motion [data-run="2"] .fl-say > :last-child { animation: fl-in 0.3s 0.9s backwards; }
@keyframes fl-go { 0% { left: 0; opacity: 1; } 92% { left: calc(100% - 14px); opacity: 1; } 100% { left: calc(100% - 14px); opacity: 0; } }
@keyframes fl-hit { 0% { left: 0; opacity: 1; } 92% { left: calc(100% - 14px); opacity: 1; } 100% { left: calc(100% - 14px); opacity: 0; } }
@keyframes fl-back { 0% { left: calc(100% - 18px); opacity: 1; } 88% { left: 0; opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes fl-miss { 0% { left: 0; opacity: 1; } 55% { left: calc(100% - 14px); opacity: 1; } 80% { left: 60%; opacity: 1; } 100% { left: 45%; opacity: 0; } }
@keyframes fl-cook { from { width: 0; } to { width: 100%; } }
@keyframes fl-draw { from { stroke-dashoffset: var(--l); } }
@keyframes fl-in { from { opacity: 0; } }
.rc-note { color: var(--cobalt); font-weight: 500; }
/* the articles page: one slip per article */
.ar-list { list-style: none; display: grid; gap: 40px; max-width: 760px; }
.ar-item .hr-meta { font-size: var(--fs-note); color: var(--grey); border-bottom: 1px dashed var(--rule); }
.ar-item-h { font-size: var(--fs-d3); margin: 14px 0 10px; }
[data-tape] .ar-item-h a { color: var(--ink); text-decoration: none; }
[data-tape] .ar-item-h a:hover { text-decoration: underline; text-decoration-color: var(--cobalt); }
.ar-item > p { max-width: 60ch; }
.ar-item > .rc-link { margin-top: 6px; }
.nf { padding-block: 56px 96px; }
.nf h1 { font-size: var(--fs-d1); margin: clamp(22px, 4vw, 44px) 0 6px; }
.nf .rc-row > a { flex: none; }
.nf-other { margin-top: 26px; }
.nf-other .rc-row { border-bottom: 1px dashed var(--rule); flex-wrap: wrap; }

/* ====================================================== round 2: selling */
/* Isak 2026-10-24: the key selling points on the first screen, a clear button
   on every screen, a menu + event editor to try, a picker that ends in a
   package. Same tape, same type scale, cobalt is still only our hand. */
.hr-usp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 0 0 clamp(22px, 3vw, 34px); max-width: 760px; }
.hr-usp li { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: var(--fs-lead); line-height: 1.2; letter-spacing: -0.015em; }
.hr-usp li::before { content: ""; flex: none; width: 0.62em; height: 0.36em; border: solid var(--cobalt); border-width: 0 0 4px 4px; rotate: -45deg; translate: 0 -0.2em; }
@media (max-width: 420px) { .hr-usp { grid-template-columns: 1fr; } }
.hr-go { flex: none; min-height: var(--tap-main); padding: 0 18px; border: 0; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-weight: 500; font-size: 17px; cursor: pointer; }
.hr-go:hover { background: var(--cobalt); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(22px, 3vw, 34px); }
.cta-go { min-height: 60px; padding: 0 30px; font-size: 19px; }
.cta-go::after { content: "→"; margin-left: 12px; transition: translate 0.2s; }
.cta-go:hover::after { translate: 4px 0; }
.cta-alt { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--font-mono); font-weight: 500; font-size: 18px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.cta-alt:hover { color: var(--cobalt); }
.cta-note { flex-basis: 100%; font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); }
/* the band between sections: cobalt, one bold line, the buttons in reverse */
.cta { background: var(--cobalt); color: #fff; padding-block: clamp(44px, 7vw, 96px); }
.cta + .sec { border-top: 0; }
.cta-h { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--track-display); font-size: var(--fs-d2); line-height: 1; max-width: 16ch; text-wrap: balance; }
.cta .cta-go { background: #fff; color: var(--cobalt); }
.cta .cta-go:hover { background: var(--paper); }
.cta .cta-alt, .cta .cta-note { color: #fff; }
.cta .cta-note { opacity: 0.85; }
.cta :focus-visible { outline-color: #fff; }
/* the editor to try */
.ed-stage { display: grid; gap: 28px; margin-top: clamp(24px, 3vw, 40px); align-items: center; }
@media (min-width: 900px) { .ed-stage { grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); } }
/* round 3 (Isak 2026-10-24: "have the editor be like on mobile not this like weird aspect ratio thing"): a real
   phone, 9 by 19.5, with a status bar and the island, the same size on every screen */
.ed-phone { width: min(300px, 78vw); aspect-ratio: 9 / 19.5; margin-inline: auto; padding: 11px; border-radius: 46px; background: #111215; box-shadow: 0 30px 60px -26px #000c, inset 0 0 0 2px #2c2d33; }
.ed-scr { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 10px 14px 16px; border-radius: 36px; background: #fff; color: var(--ink); }
.ed-status { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 10px; margin-bottom: 10px; font-family: var(--font-mono); font-weight: 500; font-size: 14px; }
.ed-status i { width: 84px; height: 24px; border-radius: 99px; background: #111215; }
.ed-bat { width: 24px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--ink); background: linear-gradient(90deg, var(--ink) 70%, transparent 0) 2px 2px / calc(100% - 4px) calc(100% - 4px) no-repeat; }
.ed-app { display: grid; gap: 0; margin: 4px 2px 14px; line-height: 1.2; }
.ed-app b { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ed-app span { font-family: var(--font-mono); font-size: 14px; color: var(--grey); }
.ed-scr::after { content: ""; align-self: center; width: 40%; height: 5px; margin-top: auto; border-radius: 99px; background: var(--ink); opacity: 0.8; }
.ed-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 99px; background: #eeeef2; }
.ed-tabs button { min-height: var(--tap); border: 0; border-radius: 99px; background: none; font-family: var(--font-mono); font-weight: 500; font-size: 16px; }
.ed-tabs button[aria-selected="true"] { background: var(--cobalt); color: #fff; }
.ed-menu label { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; align-items: center; padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px #d9d9de; font-weight: 600; font-size: 17px; line-height: 1.2; }
.ed-menu input, .ed-f input { width: 100%; min-height: var(--tap); padding: 4px 8px; border: 0; border-bottom: 2px solid var(--cobalt); border-radius: 6px 6px 0 0; background: #f1f1ff; font-family: var(--font-mono); font-weight: 500; font-size: 18px; caret-color: var(--cobalt); }
.ed-menu input { text-align: right; }
.ed-f { display: grid; gap: 2px; margin-bottom: 12px; }
.ed-f span { font-family: var(--font-mono); font-size: 16px; color: var(--grey); }
.ed-save { display: block; width: 100%; min-height: var(--tap-main); margin-top: 12px; border: 0; border-radius: 99px; background: var(--cobalt); color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 17px; }
.ed-save:hover { background: #2421b8; }
/* the button sits at the foot of the screen, over the home bar, as in a real app: a fifth of the phone stood empty
   under it (ship plan, phone pass task A) */
.ed-scr .ed-save { margin-top: auto; }
.ed-scr::after { margin-top: 10px; }
.ed-saved { min-height: 1.5em; margin-top: 8px; text-align: center; font-family: var(--font-mono); font-weight: 500; font-size: 16px; color: var(--cobalt); }
.ed-site { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--bg); color: var(--fg); box-shadow: 0 34px 70px -34px #000b, 0 0 0 1px #0000001f; }
.ed-page { display: grid; gap: 18px; padding: clamp(18px, 3vw, 38px); }
@media (min-width: 640px) { .ed-page { grid-template-columns: 1fr 1fr; } .ed-name { grid-column: 1 / -1; } }
.ed-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.02em; line-height: 0.95; font-size: clamp(38px, 5vw, 68px); overflow-wrap: anywhere; }
.ed-card { padding: 16px 18px; border-radius: 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 22%, transparent); }
.ed-card-h { margin-bottom: 8px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 23px; }
.ed-card li { display: flex; align-items: baseline; gap: 6px; padding: 0.3em 0; font-size: 18px; }
.ed-card li i { flex: 1; border-bottom: 1.5px dotted currentColor; opacity: 0.45; }
.ed-card b { font-weight: 700; }
.ed-card p { font-size: 18px; }
.ed-ev-t b { font-size: 22px; }
.ed-note { margin-top: 24px; max-width: 52ch; font-size: var(--t-read); color: var(--ink); }
.is-hot { animation: hot 1.1s ease-out; }
@keyframes hot { 0%, 35% { box-shadow: 0 0 0 4px var(--cobalt); background-color: #2e2bd626; } }
/* the floating demo button */
.fab {
  position: fixed; right: 16px; bottom: calc(40px + env(safe-area-inset-bottom)); z-index: 35;
  display: inline-flex; align-items: center; min-height: 56px; max-width: calc(100vw - 32px); padding: 0 24px; border-radius: 99px;
  background: var(--cobalt); color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 17px; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 16px 36px -14px #000c, 0 0 0 2px #ffffff40;
  opacity: 0; translate: 0 24px; pointer-events: none; transition: opacity 0.25s, translate 0.35s cubic-bezier(0.2, 1, 0.3, 1);
}
.fab.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.fab:hover { background: #2421b8; }
/* Hitta det som passar */
.pk-grid { display: grid; gap: 30px; margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 900px) { .pk-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; } .pk-out { position: sticky; top: 76px; } }
.pk-q { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.pk-q legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: var(--fs-lead); letter-spacing: -0.015em; }
.pk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-opts button { min-height: var(--tap-main); padding: 10px 18px; border: 0; box-shadow: inset 0 0 0 2px var(--ink); background: #fffefb; font-weight: 600; font-size: 18px; line-height: 1.25; text-align: left; }
.pk-opts button:hover { box-shadow: inset 0 0 0 3px var(--cobalt); }
.pk-opts button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pk-lab { font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); }
.pk-name { margin: 2px 0 4px; font-weight: 700; letter-spacing: var(--track-display); font-size: var(--fs-d2); line-height: 1; }
.pk-plus { margin-bottom: 12px; font-weight: 600; font-size: 18px; color: var(--cobalt); }
.pk-out .rc-row { border-bottom: 1px dashed var(--rule); }
.pk-go { width: 100%; min-height: 60px; margin-top: 20px; font-size: 18px; text-align: center; }
.pk-month-no { margin-top: 12px; font-family: var(--font-mono); font-size: var(--fs-note); color: var(--grey); }
.pk-mprice { margin: 6px 0 12px; font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-lead); }

/* ============================================================== motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ============================================ round 4: price + catalog read */
/* Isak 2026-10-25: "the like sub receipts cards make it hard to understand and read when theyre like 2 columns etc.
   rather we make the page longer and that its clearer and with maybe illustrations or animations etc. or diagrams
   and the font is small and like codelike". One receipt per row at every width, a reading column, the reading
   face (Familjen Grotesk) for every line and note; DM Mono stays only for prices, the owner line and labels. */
.pp-row, .ct-pkgs, .ct-slips { grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); max-width: 820px; }
.pp-paper { padding: clamp(24px, 3.4vw, 40px) clamp(20px, 3.4vw, 40px) clamp(26px, 3.4vw, 40px); }
.pp-plus { min-height: 0; font-size: var(--fs-lead); line-height: 1.3; margin: 8px 0 4px; }
.pp-price, .ct-price { font-size: var(--fs-d3); }
.pp-lines .rc-row { font-family: var(--font-display); }
.pp-lines .rc-row > :first-child { font-size: var(--fs-note); }
.pp-lines .rc-row > :last-child { font-weight: 600; font-size: var(--fs-lead); }
@media (min-width: 640px) {
  .pp-lines .rc-row { display: grid; grid-template-columns: 11em 1fr; gap: 16px; align-items: baseline; padding-block: 12px; }
  .pp-lines .rc-row > :first-child { font-size: var(--t-read); }
}
.pp-all, .pg-prices .pp-note, .pg-catalog .pp-note, .ct-note { font-family: var(--font-display); font-size: var(--t-read); line-height: 1.45; color: #3d3f46; }
.pg-catalog .ct-line, .pg-catalog .ct-slip > .rc-row, .pg-prices .pp-own .fn-row, .pg-prices .pp-faq-q summary { font-family: var(--font-display); }
.pg-catalog .ct-line { font-size: var(--fs-lead); padding-block: 0.5em; }
.pg-catalog .ct-slip > .rc-row:not(.ct-line) { padding-block: 0.6em; }
.pg-catalog .ct-slip > .rc-row:not(.ct-line) > :last-child { font-weight: 600; }
.pg-catalog .rc-slip-h { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-d3); text-align: left; margin-bottom: 10px; }
.pg-prices .pp-own .fn-row dt { font-weight: 700; }
.pg-prices .pp-faq-q summary { font-weight: 600; font-size: var(--fs-lead); }
.pg-prices .pp-faq-q p { font-size: var(--fs-lead); }

/* the page count, drawn: one little page per page in the package, read from the ladder's "Sidor" value and
   shown with it (fresh reviewer 2026-10-25: unlabelled icons "read as broken glyphs") */
.pp-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 14px; }
.pp-lines .pp-pages { margin: 10px 0 2px; }
.pp-pages-pic { display: flex; flex-wrap: wrap; align-items: end; gap: 5px; }
.pp-pages-cap { font-family: var(--font-display); font-weight: 600; font-size: var(--t-read); }
.pp-pages i { position: relative; width: 20px; height: 26px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); clip-path: polygon(0 0, 66% 0, 100% 26%, 100% 100%, 0 100%); }
.pp-pages i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 10px; background: repeating-linear-gradient(#9a9ca3 0 2px, transparent 2px 4px); }
.pp-pages b { font-family: var(--font-display); font-size: 28px; line-height: 26px; color: var(--cobalt); }
.pp-pages.is-more i:nth-last-of-type(4) { opacity: 0.7; } .pp-pages.is-more i:nth-last-of-type(3) { opacity: 0.55; }
.pp-pages.is-more i:nth-last-of-type(2) { opacity: 0.4; } .pp-pages.is-more i:nth-last-of-type(1) { opacity: 0.25; }
.motion .pg-prices .pp-pages i { translate: 0 10px; opacity: 0; transition: translate 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.25s; transition-delay: calc(0.5s + var(--k) * 45ms); }
.motion .pg-prices [style*="--print: 1"] .pp-pages i { translate: 0 0; opacity: 1; }
.motion .pg-prices [style*="--print: 1"] .pp-pages.is-more i:nth-last-of-type(1) { opacity: 0.25; }
/* prices and the total line in the reading face too: the mono price "read as code" (same reviewer) */
.pp-price, .ct-price { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.pp-paper .rc-total > .rc-row, .ct-pkg .rc-total > .rc-row { font-family: var(--font-display); font-size: var(--t-read); justify-content: flex-start; gap: 0.4em; }

/* the steps as a timeline: one column, numbered stops on a dashed cobalt line, each stop drops in when the list comes on screen */
.pp-steplist { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 820px; }
.pp-steplist li { position: relative; gap: clamp(16px, 2.4vw, 28px); padding-bottom: clamp(28px, 3.6vw, 44px); }
.pp-steplist li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 62px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--cobalt) 0 7px, transparent 7px 13px); }
.pp-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cobalt); color: #fff; font-size: 28px; line-height: 1; min-width: 0; }
.pp-steplist h3 { margin: 10px 0 6px; }
.pp-steplist p { max-width: 52ch; }
.motion .pp-steplist li[data-reveal] { opacity: 0; translate: 0 16px; transition: opacity 0.45s ease, translate 0.45s cubic-bezier(0.2, 1, 0.3, 1); }
.motion .pp-steplist li[data-reveal]:nth-child(even) { transition-delay: 0.12s; }
.motion .pp-steplist li.is-in { opacity: 1; translate: 0 0; }

.pp-hero > .rc-small, .pg-prices .pp-cal-row, .pg-prices .pp-care-after { font-family: var(--font-display); font-size: var(--t-read); color: var(--ink); }
@media (max-width: 480px) { .pp-pages-pic { gap: 4px; } .pp-pages i { width: 18px; height: 24px; } }
.pp-price small { white-space: nowrap; }

/* round 5: the three packages side by side again on a wide screen, in the round-4 look (Isak 2026-10-25:
   "i like the look of the new packages as displayed but i liked the way they were side by side before");
   the add-on slips and the timeline stay one column, phones keep the stack */
@media (min-width: 960px) {
  .pp-row, .ct-pkgs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); max-width: none; align-items: stretch; }
  /* every row lines up across the three: name, tagline, price, pages, lines, total, owner, button (subgrid;
     the fresh-eyes pass on round 5 found the one-line Grund price put every row below out of step) */
  .pp-row, .ct-pkgs { row-gap: 0; }
  .pp-rc { grid-row: span 9; display: grid; grid-template-rows: subgrid; row-gap: 0; }
  .pp-paper { grid-row: span 8; display: grid; grid-template-rows: subgrid; row-gap: 0; padding-inline: clamp(18px, 1.8vw, 28px); }
  .pp-paper .pp-choose { align-self: end; }
  .ct-pkg { grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: 0; }
  .pp-pages-pic { gap: 4px; flex-wrap: nowrap; }
  .pp-pages i { width: 16px; height: 21px; }
  .pp-pages i::after { left: 3px; right: 3px; top: 8px; height: 8px; }
  .pp-pages b { font-size: 22px; line-height: 21px; }
  .pp-row .pp-lines .rc-row { display: block; padding-block: 9px; }
  .pp-row .pp-lines .rc-row > :first-child { display: block; font-size: var(--fs-note); color: var(--grey); }
  .pp-row .pp-lines .rc-row > :last-child { display: block; font-size: var(--t-read); }
  .pp-row .pp-plus { font-size: var(--t-read); }
  .pg-catalog .ct-pkgs .ct-line { font-size: var(--t-read); }
}
@media (min-width: 960px) { .pp-row .pp-all { font-size: var(--fs-note); } }

/* ======================================================== centred pages */
/* Priser, the catalog, the articles and (round 7) Integritet and Företagsinfo: one centred reading column with the
   headings centred on it, from laptop width up; the hard-left column left the right half of the tape empty (Isak
   2026-10-26: "maybe have the text and stuff like centralized as now its all the way to the left so its kinda akward
   to read", and later: "maybe we center the integritet and company info pages too like the catalog page"). */
@media (min-width: 1000px) {
  :is(.pg-prices, .pg-catalog, .pg-article, .pg-articles, .pg-legal, .pg-privacy) [data-tape] > .sec { padding-inline: max(clamp(18px, 4.5vw, 64px), calc((100% - 940px) / 2)); }
  :is(.pg-prices, .pg-catalog, .pg-article, .pg-articles, .pg-legal, .pg-privacy) [data-tape] > .sec > * { margin-inline: auto; }
  .pg-prices [data-tape] .pp-toggle { display: flex; width: fit-content; }
  :is(.pg-prices, .pg-catalog, .pg-article, .pg-articles, .pg-legal, .pg-privacy) [data-tape] :is(h1, .sec-h, .ct-h, .lg-h, .sec-sub, .hr-lede, .ar-lede, .ar-by, .sec > .rc-small, .sec > .pp-note, .pp-care-after, .pp-care-no, .sec > p:has(> .rc-link:only-child), .mn-basis, .ct-cta, .ar-cta) { text-align: center; margin-inline: auto; }
  :is(.pg-prices, .pg-catalog, .pg-article, .pg-articles) [data-tape] > .sec > .rc-link { display: block; width: fit-content; }
  :is(.pg-legal, .pg-privacy) .lg-body { max-width: 68ch; }
  /* the three package receipts take the tape's width, not the 940px reading column (Isak 2026-10-26: "on priser id
     like the package cards to be wider") */
  .pg-prices [data-tape] > .sec > .pp-track { --pk-w: calc(var(--tape) - 48px); width: var(--pk-w); max-width: none; margin-inline: calc((100% - var(--pk-w)) / 2); }
  .pg-prices .pp-row { max-width: none; column-gap: clamp(14px, 1.4vw, 22px); }
}
/* redeploy 2026-10-28: fresh ?v= token so every edge fetches this round's css/js (card hw-site-redeploy-1028) */
