/* GENERATED by web/tools/bundle-lp.mjs — edit web/shared/lp/*.css, not this file. */
/* ── tokens.css (shared with the rest of the web) ─────────────────────────────── */
/* «الورق الحي» — the living-print token set.
   The app is light-only, and so is the web. There is no dark mapping here.
   Palette, type ladder and geometry are quoted from the Flutter theme
   (sanad_colors.dart, sanad_type.dart) and from landing/DESIGN.md v3. */

:root {
  color-scheme: light;

  /* ── the app's palette, verbatim ───────────────────────────────────── */
  --desk: #f1efe9;
  --teak-hi: #fdfcf9;
  --paper: #ffffff;
  --paper-lift: #f7f2ea;
  --paper-sunken: #f0ede5;
  --ink: #201d18;
  --ink-muted: #6e675c;
  --ink-line: rgba(32, 29, 24, .10);
  --stamp-ink: #5a4e3c;
  --ink-deep: #241f19;
  --outline: #ddd7ca;
  --sea: #2e7d64;
  --sea-text: #276a55;
  --seal: #a6402f;
  --amber: #b98a2f;
  --amber-text: #806018;
  --brass: #c99a3c;
  --brass-text: #8a6524;
  --disc-mark: #fdfcf9;
  --ring: .72;
  --ring-label: .85;
  --umbra: rgba(32, 29, 24, .18);

  /* ── the app's type ────────────────────────────────────────────────── */
  --display: 'Fraunces', 'IBM Plex Sans Arabic', serif;
  --body: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --t-floor: 11px;
  --t-data: 12px;
  --t-caption: 13px;
  --t-label: 14px;
  --t-body: 15px;
  --t-body-lg: 16px;
  --t-heading: 20px;
  --t-title: 24px;
  --t-display: 34px;
  --t-hero: 58px;

  /* ── geometry ──────────────────────────────────────────────────────── */
  --r-card: 6px;
  --r-action: 12px;
  --r-switch: 4px;
  --r-well: 10px;
  --r-pill: 999px;
  --shadow-card: 0 8px 22px -10px rgba(32, 29, 24, .10);
  --shadow-float: 0 -12px 30px -12px var(--umbra);
  --shadow-deep: 0 24px 60px -28px rgba(32, 29, 24, .32);
  --gut: clamp(14px, 1.5vw, 22px);
  --pad: clamp(18px, 3vw, 40px);
  --sect: clamp(42px, 5.4vw, 72px);
  --masthead: 62px;
  --dock: 90px;
  --cartbar: 76px;

  /* ── motion: one vocabulary, two surfaces ─────────────────────────── */
  --t-press: 120ms;
  --t-switch: 200ms;
  --t-sheet: 280ms;
  --t-settle: 420ms;
  --t-success: 480ms;
  --t-count: 1100ms;
  --t-inhale: 2400ms;
  --ease-press: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.2, 1.2, .3, 1);
  --ease-settle: cubic-bezier(.16, 1, .3, 1);
  --ease-stamp: cubic-bezier(.6, 0, .9, .3);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);

  /* ── layers ────────────────────────────────────────────────────────── */
  --z-masthead: 30;
  --z-dock: 40;
  --z-sheet: 60;
  --z-toast: 70;
}

/* ── type.css ─────────────────────────────── */
/* ── type ────────────────────────────────────────────────────────────────────
   Two faces, and they argue with each other on purpose: Amiri is the book's
   hand — naskh, calligraphic, the face the receipt is printed in; IBM Plex
   Sans Arabic is the instrument — the face of the numbers and the controls.
   A page about putting a ledger inside a machine should show both.
   ─────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Amiri';
  src: url('../fonts/Amiri-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --lp-display: 'Amiri', 'IBM Plex Sans Arabic', serif;
  --lp-text: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --lp-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --lp-hero: clamp(54px, 12.6vw, 176px);
  --lp-d1: clamp(34px, 5.2vw, 72px);
  --lp-d2: clamp(26px, 3.4vw, 44px);
  --lp-d3: clamp(20px, 2.2vw, 28px);
  --lp-lede: clamp(17px, 1.5vw, 21px);
  --lp-body: 15.5px;
  --lp-small: 13px;
  --lp-micro: 11.5px;

  --lp-lh-hero: .92;
  --lp-lh-tight: 1.16;
  --lp-lh-body: 1.78;
}

.lp-display {
  font-family: var(--lp-display);
  font-weight: 400;
  line-height: var(--lp-lh-hero);
  letter-spacing: 0;
  /* naskh sets its own word space; at 176px the default gap reads as a hole */
  word-spacing: -.055em;
  /* room for the descenders of ج ح خ ع and the maddah */
  padding-block: .08em .16em;
}

.lp-d1 { font-family: var(--lp-display); font-size: var(--lp-d1); line-height: var(--lp-lh-tight); }
.lp-d2 { font-family: var(--lp-display); font-size: var(--lp-d2); line-height: 1.24; }
.lp-d3 { font-family: var(--lp-text); font-size: var(--lp-d3); font-weight: 600; line-height: 1.35; }

.lp-lede {
  font-family: var(--lp-text);
  font-size: var(--lp-lede);
  line-height: 1.66;
  color: var(--ink-muted);
  max-width: 34ch;
}

.lp-body { font-family: var(--lp-text); font-size: var(--lp-body); line-height: var(--lp-lh-body); }
.lp-small { font-size: var(--lp-small); line-height: 1.7; }
.lp-micro { font-size: var(--lp-micro); line-height: 1.6; }

.lp-mono {
  font-family: var(--lp-mono);
  font-size: var(--lp-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* a number is never a quote: it is the loudest thing on the line */
.lp-num {
  font-family: var(--lp-text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -.01em;
}

.lp-figure {
  font-family: var(--lp-text);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* Arabic is never letter-spaced and never letter-animated. Latin labels are. */
[lang='ar'] .lp-mono { letter-spacing: 0; text-transform: none; }

.lp-rule { height: 1px; background: var(--ink-line); border: 0; }

/* ── the details that make it read as authored ─────────────────────────────
   Selection in the house sea; balanced line breaks on the display sizes so a
   heading never leaves one orphan word on its last line. Tracking stays at 0
   everywhere: Amiri is a connected script, and letter-spacing breaks the
   joins — the size-specific tracking rule stops at the door. */
::selection {
  background: color-mix(in srgb, var(--sea) 18%, transparent);
  color: var(--ink);
}

.lp-d1, .lp-d2, .lp-d3, .lp-instrument__big, .lp-figure, .lp-lede {
  text-wrap: balance;
}

.lp-body, .lp-small { text-wrap: pretty; }

/* ── layout.css ─────────────────────────────── */
/* ── layout ──────────────────────────────────────────────────────────────────
   One column, one rail, one thread. The rail carries the folio number; the
   thread is the page's single continuous mark and it lives in the same rail,
   so every section is literally attached to the same line.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --lp-rail: 96px;
  --lp-gut: clamp(18px, 3.4vw, 48px);
  --lp-sect: clamp(76px, 9vw, 148px);
  --lp-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--lp-text);
  font-size: var(--lp-body);
  line-height: var(--lp-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.lp-skip {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--ink); color: var(--desk); padding: 10px 16px; z-index: 99;
}
.lp-skip:focus { inset-inline-start: 12px; top: 12px; }

.lp-mast {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 12px var(--lp-gut);
  background: color-mix(in srgb, var(--desk) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-block-end: 1px solid transparent;
}
.lp-mast.stuck { border-block-end-color: var(--ink-line); }
.lp-mast__brand { display: flex; align-items: center; gap: 9px; font-family: var(--lp-display); font-size: 24px; text-decoration: none; }
.lp-mast__brand svg { width: 26px; height: 26px; }
.lp-mast__serial { margin-inline-start: auto; color: var(--ink-muted); }
.lp-mast__nav { display: flex; gap: 18px; }
.lp-mast__nav a { text-decoration: none; color: var(--ink-muted); font-size: 13px; }
.lp-mast__nav a:hover, .lp-mast__nav a:focus-visible { color: var(--ink); }
@media (max-width: 720px) { .lp-mast__nav { display: none; } }

/* the folio you are reading, and how far through the book you are.
   The rule is the thread's progress, mirrored where the eye already sits. */
.lp-mast__now {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-inline-start: 10px;
  opacity: 0;
  transition: opacity 150ms var(--ease-out);
}
.lp-mast__now.on { opacity: 1; }
.lp-mast__rule {
  position: absolute;
  inset-inline: 0; inset-block-end: -1px;
  height: 1px;
  background: var(--sea);
  opacity: .5;
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
}
[dir='ltr'] .lp-mast__rule { transform-origin: left center; }
@media (max-width: 720px) { .lp-mast__now { display: none; } }

main { position: relative; }

.lp-wrap {
  max-width: var(--lp-max);
  margin-inline: auto;
  padding-inline: var(--lp-gut);
}

/* the rail + the body. In RTL the rail is on the right, the way a ledger's
   folio numbers sit on the outer edge. */
.lp-folio {
  position: relative;
  display: grid;
  grid-template-columns: var(--lp-rail) minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 44px);
  padding-block: var(--lp-sect);
  /* the masthead is sticky: an anchor jump must not park a heading under it */
  scroll-margin-block-start: 84px;
}

.lp-rail {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  padding-block-start: 6px;
}

.lp-n {
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--desk);
  padding: 3px 5px;
  position: relative; z-index: 2;
  /* the thread runs behind the folio mark: a halo keeps the numeral clean */
  box-shadow: 0 0 0 7px var(--desk);
}

.lp-k {
  /* horizontal, not rotated: vertical labels are the agency-portfolio tell,
     and a folio name set sideways reads as decoration rather than a heading */
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-muted);
  text-align: center;
  background: var(--desk);
  padding: 4px 2px;
  max-width: 100%;
  position: relative; z-index: 2;
  box-shadow: 0 0 0 7px var(--desk);
}

.lp-body { min-width: 0; }

.lp-head { display: grid; gap: 14px; max-width: 44ch; }
.lp-head .lp-lede { max-width: 46ch; }

.lp-kick {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-muted);
}
.lp-kick::before {
  content: ''; width: 22px; height: 1px; background: var(--seal);
}

/* ── the thread ──────────────────────────────────────────────────────────────
   one 1px ink line, drawn by scroll from the first receipt to the XBRL file */
.lp-thread {
  position: absolute;
  inset-block: 0;
  /* centred in the rail, in the writing direction */
  inset-inline-start: calc(max(var(--lp-gut), (100vw - var(--lp-max)) / 2 + var(--lp-gut)) + var(--lp-rail) / 2 - .5px);
  width: 1px;
  /* no guide line: the ink must appear out of nothing, or the bead looks like
     it is sliding along a rule that was always there */
  background: transparent;
  pointer-events: none;
  /* the bead rides the drawing head, so it must not be clipped */
  overflow: visible;
  /* the bead's travel is expressed in cqh inside this box, which is how a
     scroll timeline can move it without JS reading the height */
  container-type: size;
}
.lp-thread > i {
  display: block; width: 100%; height: 100%;
  /* the ink cools as the book advances; the red belongs to the bead alone, so
     the line never reads as a loss */
  background: linear-gradient(to bottom, var(--sea), var(--ink) 72%);
  transform-origin: top center;
  transform: scaleY(0);
  will-change: transform;
}
/* the head of the line: one seal dot, one transform, written from the same
   rAF as the line itself — never through a CSS variable, which would recalc
   the subtree on every scroll frame */
.lp-thread__bead {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 0;
  width: 7px; height: 7px;
  margin-inline-start: -3.5px;
  border-radius: 50%;
  background: var(--seal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--seal) 16%, transparent);
  transform: translateY(0);
  opacity: 0;
  will-change: transform;
}
.lp-node {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--desk); border: 1px solid var(--ink-muted);
  inset-inline-start: -3px;
}
.lp-node.on { background: var(--sea); border-color: var(--sea); }

@media (max-width: 860px) {
  :root { --lp-rail: 34px; }
  .lp-folio { grid-template-columns: var(--lp-rail) minmax(0, 1fr); gap: 12px; }
  /* the margin is too narrow for a word: keep the folio number, move the
     thread to the page edge so it never runs through the numeral */
  .lp-k { display: none; }
  .lp-thread { inset-inline-start: auto; inset-inline-end: 5px; }
}

/* ── the hero: the whole type is the poster ───────────────────────────────── */
.lp-cover {
  padding-block: clamp(34px, 7vw, 96px) var(--lp-sect);
}
.lp-cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.lp-cover h1 { margin: 0; }
.lp-cover__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }
.lp-cover__meta { margin-block-start: 18px; color: var(--ink-muted); }

@media (max-width: 900px) {
  .lp-cover__grid { grid-template-columns: minmax(0, 1fr); }
}

.lp-cols { display: grid; gap: clamp(18px, 2.4vw, 34px); }
.lp-cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 780px) {
  .lp-cols.two, .lp-cols.three { grid-template-columns: minmax(0, 1fr); }
}

.lp-stack { display: grid; gap: 14px; }
.lp-stack.tight { gap: 8px; }

/* ── components.css ─────────────────────────────── */
/* ── components ──────────────────────────────────────────────────────────────
   Four shapes, borrowed from the app so the page and the product agree:
   the paper sheet (voucher), the phone plate, the stamp, and the line.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── the paper sheet ──────────────────────────────────────────────────────── */
.lp-sheet {
  background: var(--paper);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow: var(--shadow-card);
}
.lp-sheet--lift { background: var(--paper-lift); }
.lp-sheet--holes { position: relative; }
.lp-sheet--holes::before {
  content: ''; position: absolute; inset-inline-start: -5px; inset-block: 16px;
  width: 10px;
  background:
    radial-gradient(circle at 5px 5px, var(--desk) 4px, transparent 4.4px) 0 0/10px 20px repeat-y;
  pointer-events: none;
}

.lp-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-block: 9px;
  border-block-end: 1px solid var(--ink-line);
}
.lp-row:last-child { border-block-end: 0; }
.lp-row__k { color: var(--ink-muted); font-size: 14px; }
.lp-row__v { font-variant-numeric: tabular-nums; font-weight: 600; }
.lp-row--big .lp-row__v { font-size: 20px; }
.lp-row__sub { display: block; font-size: 11.5px; color: var(--ink-muted); font-weight: 400; }

/* ── the action ───────────────────────────────────────────────────────────── */
.lp-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-action);
  background: var(--ink); color: var(--desk);
  font-family: var(--lp-text); font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-press), background-color var(--t-switch) var(--ease-out);
}
.lp-act:hover { background: var(--ink-deep); }
.lp-act:active { transform: scale(.98); }
.lp-act--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--outline);
}
.lp-act--ghost:hover { background: var(--paper); }
.lp-act:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }

/* ── the stamp: never marks a selection, only a verdict ───────────────────── */
.lp-stamp {
  display: inline-block;
  max-width: 100%;
  padding: 5px 11px 4px;
  border: 1.4px solid var(--stamp-ink);
  border-radius: 3px;
  color: var(--stamp-ink);
  font-size: 12.5px; font-weight: 600;
  transform: rotate(-2.2deg);
  background: color-mix(in srgb, var(--seal) 4%, transparent);
}
.lp-stamp--seal { border-color: var(--seal); color: var(--seal); }
.lp-stamp--sea { border-color: var(--sea); color: var(--sea-text); background: color-mix(in srgb, var(--sea) 6%, transparent); }
.lp-stamp--brass { border-color: var(--brass); color: var(--brass-text); }

/* ── the instrument: one big figure with its ceiling ──────────────────────── */
.lp-instrument {
  background: var(--paper);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-card);
  position: relative;
}
.lp-instrument__serial { color: var(--ink-muted); }
.lp-instrument__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-block-end: 4px; }
.lp-instrument__big { font-size: clamp(46px, 7vw, 88px); font-weight: 600; line-height: .98; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lp-instrument__unit { font-size: .38em; font-weight: 500; color: var(--ink-muted); margin-inline-start: .12em; }

.lp-meter { position: relative; height: 12px; margin-block: 18px 10px; background: var(--paper-sunken); border-radius: 2px; overflow: hidden; }
.lp-meter > i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v, 0%); background: var(--ink); transform-origin: right center; }
.lp-meter > b { position: absolute; inset-block: -3px; inset-inline-start: var(--mark, 60%); width: 1.5px; background: var(--seal); }
.lp-meter__heel { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }

/* ── the plate: a real screen, in a phone's shape ─────────────────────────── */
.lp-shot {
  margin: 0;
  width: 100%;
  max-width: 320px;
  justify-self: center;
}
.lp-shot__frame {
  position: relative;
  border-radius: 26px;
  padding: 7px;
  background: #17150f;
  box-shadow: 0 22px 48px -26px rgba(32, 29, 24, .55), 0 2px 0 0 rgba(255,255,255,.12) inset;
}
.lp-shot__frame img {
  border-radius: 20px;
  /* let the capture set its own height: the plates are 3:5 and 9:20, and a
     fixed box crops the wider ones */
  width: 100%;
  height: auto;
  display: block;
}
.lp-shot figcaption {
  margin-block-start: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
}

/* ── the flow: a sale crossing four books ─────────────────────────────────── */
.lp-flow { display: grid; gap: 0; margin-block-start: 26px; }
.lp-flow__step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding-block: 16px;
  border-block-end: 1px solid var(--ink-line);
}
.lp-flow__n { font-family: var(--lp-mono); font-size: 12px; color: var(--ink-muted); padding-block-start: 3px; }
.lp-flow__t { font-weight: 600; }
.lp-flow__d { color: var(--ink-muted); font-size: 14px; }

/* ── the index: the specimen sheet of every capability ────────────────────── */
.lp-index {
  columns: 3;
  column-gap: clamp(22px, 3vw, 48px);
  margin-block-start: 30px;
}
.lp-index__group { break-inside: avoid; margin-block-end: 26px; }
/* one divider between clusters, never a rule under every row: 43 hairlines is
   the laziest possible list */
.lp-index__group + .lp-index__group {
  border-block-start: 1px solid var(--ink-line);
  padding-block-start: 22px;
}
.lp-index__lead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-block-end: 12px;
}
.lp-index__lead b {
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lp-index__lead span { font-size: 12px; color: var(--ink-muted); }
.lp-index__h {
  font-size: 12.5px; font-weight: 600; color: var(--seal);
  padding-block-end: 7px; margin-block-end: 9px;
  border-block-end: 1px solid var(--ink-line);
}
.lp-index ul { list-style: none; margin: 0; padding: 0; }
.lp-index li {
  font-size: 13.5px; line-height: 1.5;
  padding-block: 4.5px;
  color: var(--ink);
}
.lp-index li span { color: var(--ink-muted); font-size: 12px; }
@media (max-width: 900px) { .lp-index { columns: 2; } }
@media (max-width: 600px) { .lp-index { columns: 1; } }

/* ── the object-led band: one screen, centred, with its facts under it ───────
   A third layout family, so the page never runs three side-by-side splits in
   a row. The plate keeps its own proportions; only the column is fixed. */
.lp-object {
  display: grid;
  justify-items: center;
  gap: clamp(20px, 3vw, 34px);
  margin-block-start: clamp(26px, 3.4vw, 44px);
}
.lp-object__figure { max-width: 320px; }
.lp-object__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(22px, 5vw, 64px);
  text-align: center;
}
.lp-object__facts > div { display: grid; gap: 4px; }
.lp-object__facts b {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lp-object__facts span { font-size: 12.5px; color: var(--ink-muted); }

/* ── the ledger band: a wide sheet with a small plate set into it ───────────
   A two-column inset rather than a float: the rows are flex, and a float does
   not lay out beside a flex box. */
.lp-ledger {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
  margin-block-start: clamp(26px, 3.4vw, 44px);
  padding-block: clamp(18px, 2.4vw, 30px);
  border-block: 1px solid var(--ink-line);
}
.lp-ledger__inset { width: 100%; margin: 0; }
.lp-ledger__inset .lp-shot__frame img { border-radius: 16px; }
.lp-ledger__body { min-width: 0; }
.lp-ledger__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 11px;
}
.lp-ledger__row b { font-size: clamp(20px, 2.2vw, 27px); font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-ledger__row span { color: var(--ink-muted); font-size: 14px; }
.lp-ledger p { margin: 0; }

@media (max-width: 780px) {
  .lp-ledger { grid-template-columns: minmax(0, 1fr); }
  .lp-ledger__inset { max-width: 220px; }
}

/* ── the strip: rows, one divider above the group, no card containers ─────── */
.lp-strip {
  margin-block-start: clamp(24px, 3vw, 38px);
  border-block-start: 1px solid var(--ink-line);
}
.lp-strip__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 15px;
}
.lp-strip__row + .lp-strip__row { border-block-start: 1px dotted color-mix(in srgb, var(--ink) 10%, transparent); }
.lp-strip__row b { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-strip__row span { color: var(--ink-muted); font-size: 14px; }

@media (max-width: 640px) {
  .lp-ledger__inset { float: none; width: 100%; max-width: 240px; margin: 0 auto 18px; }
}
/* ── the demo phone ───────────────────────────────────────────────────────── */
.lp-phone {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #22201b, #14120e 55%);
  box-shadow:
    0 40px 90px -40px rgba(32, 29, 24, .62),
    0 0 0 1px rgba(255, 255, 255, .08) inset,
    0 2px 3px rgba(255, 255, 255, .16) inset;
}
.lp-phone__screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: var(--desk);
  aspect-ratio: 390 / 844;
}
.lp-phone__notch {
  position: absolute; inset-block-start: 9px; inset-inline: 0; margin-inline: auto;
  width: 84px; height: 22px; border-radius: 999px;
  background: #14120e; z-index: 5;
}
.lp-phone__stage {
  position: absolute;
  inset-block-start: 0; inset-inline-start: 0;
  width: 390px; height: 844px;
  transform-origin: top left;
  transform: scale(var(--k, .8));
}
[dir='rtl'] .lp-phone__stage { transform-origin: top right; }

.lp-steps {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  margin-block-start: 18px;
}
.lp-steps button {
  appearance: none;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--lp-text); font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--t-switch) var(--ease-out), border-color var(--t-switch) var(--ease-out), background-color var(--t-switch) var(--ease-out);
}
.lp-steps button:hover { color: var(--ink); border-color: var(--ink-muted); }
.lp-steps button[aria-current='step'] {
  color: var(--desk); background: var(--ink); border-color: var(--ink);
}
.lp-steps button:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

/* ── the replica's own furniture, drawn at 390 × 844 ──────────────────────── */
.dm {
  position: relative;
  width: 390px; height: 844px;
  background: var(--desk);
  font-family: var(--lp-text);
  color: var(--ink);
  overflow: hidden;
  user-select: none;
}
.dm__status {
  height: 46px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 22px 6px; font-size: 12px; color: var(--ink-muted);
}
.dm__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 18px 12px;
  font-size: 18px; font-weight: 600;
}
.dm__bar .dm__back { margin-inline-start: auto; font-size: 20px; color: var(--ink-muted); }
.dm__till {
  margin: 0 14px 12px;
  background: var(--paper); border: 1px solid var(--ink-line); border-radius: 6px;
  padding: 12px 14px; font-size: 12px; color: var(--ink-muted);
}
.dm__till b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; margin-block-start: 3px; }

.dm__tabs { display: flex; gap: 4px; margin: 0 14px 12px; }
.dm__tab { flex: 1; text-align: center; font-size: 12px; padding: 9px 0; color: var(--ink-muted); border: 1px solid var(--ink-line); border-radius: 4px; background: transparent; }
.dm__tab.on { background: var(--paper); color: var(--ink); font-weight: 600; }

.dm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 14px; }
.dm__item {
  background: var(--paper); border: 1px solid var(--ink-line); border-radius: 6px;
  padding: 14px 12px; min-height: 74px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  position: relative;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.dm__item.picked { border-color: var(--sea); box-shadow: 0 0 0 1px var(--sea) inset; }
.dm__item b { font-size: 15px; font-weight: 600; }
.dm__item i { font-style: normal; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.dm__qty {
  position: absolute; inset-block-start: 8px; inset-inline-start: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--sea); color: var(--sea);
  font-size: 12px; display: grid; place-items: center;
  opacity: 0; transform: scale(.6);
  transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-spring);
}
.dm__item.picked .dm__qty { opacity: 1; transform: scale(1); }

.dm__cart {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  background: var(--paper-lift);
  border-block-start: 1px dashed var(--outline);
  padding: 12px 16px 20px;
  transform: translateY(calc(100% - 66px));
  transition: transform 300ms var(--ease-settle);
}
.dm__cart.open { transform: translateY(0); }
.dm__cart__handle { width: 44px; height: 4px; border-radius: 2px; background: var(--outline); margin: 0 auto 10px; }
.dm__cart__line { display: flex; justify-content: space-between; font-size: 13px; padding-block: 5px; }
.dm__cart__line span:last-child { font-variant-numeric: tabular-nums; }
.dm__cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-block-start: 10px; font-size: 13px; color: var(--ink-muted); }
.dm__cart__total b { font-size: 26px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dm__close {
  margin-block-start: 12px; width: 100%; height: 52px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--desk); font-family: var(--lp-text); font-size: 16px; font-weight: 600;
}

.dm__sheet {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  background: var(--paper); border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-float);
  padding: 20px 18px 22px;
  transform: translateY(100%);
}
.dm__sheet.on { transform: translateY(0); }
.dm__sheet__t { font-size: 17px; font-weight: 600; margin-block-end: 14px; }
.dm__pay { display: flex; gap: 8px; margin-block-end: 16px; }
.dm__pay span { flex: 1; text-align: center; padding: 11px 0; border: 1px solid var(--outline); border-radius: 10px; font-size: 13px; }
.dm__pay span.on { border-color: var(--ink); background: var(--paper-sunken); font-weight: 600; }
.dm__change { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-muted); margin-block-end: 14px; }
.dm__change b { color: var(--ink); font-variant-numeric: tabular-nums; }

.dm__receipt {
  position: absolute; inset-inline: 18px; inset-block-start: 96px;
  background: var(--paper); border: 1px solid var(--ink-line);
  padding: 18px 16px;
  font-family: var(--lp-mono);
  font-size: 11.5px;
  border-radius: 2px;
  transform: translateY(14px); opacity: 0;
}
.dm__receipt.on { transform: translateY(0); opacity: 1; }
.dm__receipt h4 { font-family: var(--lp-display); font-size: 20px; margin: 0 0 4px; text-align: center; letter-spacing: 0; }
.dm__receipt p { margin: 0; color: var(--ink-muted); text-align: center; }
.dm__receipt hr { border: 0; border-block-start: 1px dashed var(--outline); margin: 10px 0; }
.dm__receipt .r { display: flex; justify-content: space-between; padding-block: 3px; }
.dm__receipt .r.t { font-weight: 700; font-size: 12.5px; }

.dm__rail { position: absolute; inset: 0; background: var(--desk); padding: 0 0 0 0; transition: opacity 200ms var(--ease-out); }
.dm__rail.off { opacity: 0; pointer-events: none; }
.dm__ticket {
  margin: 12px 14px; background: var(--paper); border: 1px solid var(--ink-line);
  border-radius: 6px; padding: 14px;
  transform: translateY(12px); opacity: 0;
}
.dm__ticket.on { transform: none; opacity: 1; }
.dm__ticket__h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.dm__ticket__h em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--brass-text); border: 1px solid var(--brass); border-radius: 999px; padding: 3px 9px; }
.dm__ticket ul { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13.5px; }
.dm__ticket li { display: flex; gap: 8px; padding-block: 3px; }
.dm__ticket li span:first-child { color: var(--ink-muted); }

.dm__cursor { position: absolute; z-index: 9; width: 18px; height: 24px; pointer-events: none; }

.dm__fade { transition: opacity 220ms var(--ease-out); }
.dm__fade.off { opacity: 0; }

/* ── the closing ──────────────────────────────────────────────────────────── */
.lp-close {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(22px, 4vw, 60px);
  align-items: start;
}
@media (max-width: 860px) { .lp-close { grid-template-columns: minmax(0, 1fr); } }

.lp-colophon {
  margin-block-start: var(--lp-sect);
  padding-block: 34px 56px;
  border-block-start: 1px solid var(--ink-line);
  display: grid; gap: 8px;
  color: var(--ink-muted);
  font-size: 12.5px;
  text-align: center;
}
.lp-colophon svg { width: 30px; height: 30px; margin-inline: auto; color: var(--ink); }

@media print {
  .lp-mast, .lp-thread, .lp-steps, .lp-act { display: none !important; }
}

/* ── motion.css ─────────────────────────────── */
/* ── motion ──────────────────────────────────────────────────────────────────
   The doctrine (docs/motion-doctrine.md) outranks the awwwards playbooks here:
   nothing hidden at rest, transform and opacity only, one choreography per
   view, Arabic animated by word and never by letter, reduced motion is the
   finished state — not a faster animation.
   ─────────────────────────────────────────────────────────────────────────── */

@keyframes lp-word-rise { from { transform: translateY(115%); } to { transform: translateY(0); } }
@keyframes lp-soft-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lp-stamp-land {
  0%   { opacity: 0; transform: scale(1.7) rotate(-11deg); }
  62%  { opacity: 1; transform: scale(.96) rotate(-1.4deg); }
  100% { opacity: 1; transform: scale(1) rotate(-2.2deg); }
}
@keyframes lp-rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lp-meter-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lp-receipt-line { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── the thread runs on a scroll timeline, not a scroll listener ────────────
   `window.addEventListener('scroll')` is banned by the taste skill and is the
   wrong tool anyway: the browser can drive these transforms off the main
   thread, so scrolling stays cheap even while the page is loading.
   Browsers without scroll timelines get the finished line, never a blank one. */
@keyframes lp-thread-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lp-bead-run {
  0%   { transform: translateY(0); opacity: 0; }
  2%   { opacity: 1; }
  98%  { opacity: 1; }
  100% { transform: translateY(100cqh); opacity: 0; }
}
@keyframes lp-rule-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lp-node-on {
  0%, 10%   { transform: scale(1); background-color: var(--desk); border-color: var(--ink-muted); }
  16%       { transform: scale(1.55); background-color: var(--sea); border-color: var(--sea); }
  24%, 100% { transform: scale(1); background-color: var(--sea); border-color: var(--sea); }
}

@supports (animation-timeline: scroll()) {
  html.js .lp-thread > i {
    animation: lp-thread-draw linear both;
    animation-timeline: scroll(root block);
  }
  html.js .lp-thread__bead {
    animation: lp-bead-run linear both;
    animation-timeline: scroll(root block);
  }
  html.js .lp-mast__rule {
    animation: lp-rule-grow linear both;
    animation-timeline: scroll(root block);
  }
  html.js .lp-node {
    animation: lp-node-on linear both;
    animation-timeline: scroll(root block);
  }
}

@supports not (animation-timeline: scroll()) {
  html.js .lp-thread > i { transform: scaleY(1); }
  html.js .lp-node { background-color: var(--sea); border-color: var(--sea); }
  html.js .lp-mast__rule { transform: scaleX(1); }
  html.js .lp-thread__bead { display: none; }
}

/* the plate is uncovered, not faded: a paper curtain that collapses upward.
   transform only, so it costs the compositor and nothing else. */
html.js .lp-shot__frame { position: relative; }
html.js .lp-shot__frame::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 20px;
  background: var(--desk);
  transform: scaleY(1);
  transform-origin: top center;
  transition: transform 700ms var(--ease-settle);
  pointer-events: none;
}
html.js .lp-shot__frame.is-in::after { transform: scaleY(0); }

/* the index is read once: its three groups ink in on a 40ms ladder */
html.js [data-index-group] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 420ms var(--ease-out) var(--d, 0ms),
    transform 420ms var(--ease-out) var(--d, 0ms);
}
html.js [data-index-group].is-in { opacity: 1; transform: none; }

/* the receipt prints its lines when the step arrives */
html.js .dm__receipt.on [data-print] { animation: lp-receipt-line 260ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }

/* the phone's step change is a soft cut, driven from lp.js with WAAPI */
.dm__receipt [data-print] { will-change: opacity, transform; }

/* the CTA leans toward the pointer; the press is the house 120ms */
@media (hover: hover) and (pointer: fine) {
  [data-magnetic] { transition: transform 200ms var(--ease-spring); }
  [data-magnetic].is-pulling { transition: transform 90ms linear; }
}

/* the split title: one span per word, masked so the words rise out of the line */
.lp-split { display: block; }
.lp-split .lp-line { display: block; overflow: hidden; padding-block: .06em; }
.lp-split .lp-w { display: inline-block; will-change: transform; }
html.js .lp-split .lp-w { animation: lp-word-rise 760ms var(--ease-settle) both; animation-delay: calc(var(--i, 0) * 52ms + var(--d, 0ms)); }

/* soft entrances for the supporting copy */
html.js [data-fade] { animation: lp-soft-in 520ms var(--ease-out) both; animation-delay: var(--d, 0ms); }

/* stamps land; they never fade */
html.js [data-stamp] { animation: lp-stamp-land 480ms var(--ease-stamp) both; animation-delay: var(--d, 0ms); }

/* rules draw from the start edge */
html.js [data-rule] { transform-origin: right center; animation: lp-rule-draw 520ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
[dir='ltr'] html.js [data-rule] { transform-origin: left center; }

html.js [data-meter] > i { transform-origin: right center; animation: lp-meter-draw 900ms var(--ease-settle) both; animation-delay: 380ms; }
[dir='ltr'] html.js [data-meter] > i { transform-origin: left center; }

/* scroll-driven: the browser does the work, no JS in the scroll path */
@supports (animation-timeline: view()) {
  html.js [data-scroll-rise] {
    animation: lp-soft-in linear both;
    animation-timeline: view();
    animation-range: entry 4% cover 26%;
  }
  html.js [data-scroll-stamp] {
    animation: lp-stamp-land linear both;
    animation-timeline: view();
    animation-range: entry 14% cover 34%;
  }
  html.js [data-scroll-rule] {
    animation: lp-rule-draw linear both;
    animation-timeline: view();
    animation-range: entry 6% cover 20%;
  }
}

/* the phone's own choreography is driven by one clock in lp.js; these are the
   only transitions it is allowed, and they settle rather than animate */
.dm__sheet, .dm__cart, .dm__receipt, .dm__ticket { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  html.js .lp-split .lp-w,
  html.js [data-fade],
  html.js [data-stamp],
  html.js [data-rule],
  html.js [data-meter] > i,
  html.js [data-scroll-rise],
  html.js [data-scroll-stamp],
  html.js [data-scroll-rule],
  html.js .dm__receipt.on [data-print] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  /* the reduced state is the finished book: every plate uncovered, every
     group inked in, the thread whole. Motion is removed, the content is not. */
  html.js .lp-thread > i { transform: scaleY(1); }
  .lp-thread__bead { opacity: 0; }
  html.js .lp-node { background-color: var(--sea) !important; border-color: var(--sea) !important; transform: none !important; animation: none !important; }
  html.js .lp-shot__frame::after { transform: scaleY(0); }
  html.js [data-index-group] { opacity: 1; transform: none; transition: none; }
  .lp-mast__rule { transform: scaleX(1); }
  .lp-phone__stage, .lp-mast__now { transition: opacity 150ms linear; }
  .dm *, .dm *::before, .dm *::after { transition: none !important; animation: none !important; }
}
