/* ============================================================================
   UI overlays on photos (28.10): the .lu layer, shared by the landing (index.html: «Починай саме тут»,
   «Отримай більше») and the tariffs page (help/billing.html). Moved here from landing.css.
   Drawn in the Figma card frame 470 × 320 px and scaled to the photo as a whole: the photo box sets
   container-type: inline-size; .lu__art scales by tan(atan2(100cqw, 470px)). So px here = Figma px.
   Texts are ordinary page text, so server/i18n.py translates them (www/i18n/<lang>.json).
   Colours come from the page tokens (--y, --cream, --stone, --mute: landing.css and ui.css).
   ========================================================================== */

.lu { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lu__art {
  --lu-sh: 0 12px 32px rgba(0, 0, 0, .14);
  position: absolute;
  left: 0;
  top: 0;
  width: 470px;
  height: 320px;
  transform-origin: 0 0;
  transform: scale(tan(atan2(100cqw, 470px)));
  font-family: "Onest", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left;
  color: #000;
}
/* Safari / iPhone не завжди рахує формулу вище (на телефоні накладок не було видно), тому main.js сам міряє
   ширину фото й ставить --lu-k = ширина / 470; формула лишається для сторінки без скриптів. */
.lu[style*="--lu-k"] .lu__art { transform: scale(var(--lu-k)); }
.lu__art b { font-weight: 700; }
.lu__art svg { display: block; flex: none; }
.lu__art .lu-k { font-weight: 900; }
.lu-m { font-weight: 500; }
.lu-10 { font-size: 10px; } .lu-11 { font-size: 11px; } .lu-12 { font-size: 12px; } .lu-13 { font-size: 13px; }
.lu-14 { font-size: 14px; } .lu-15 { font-size: 15px; } .lu-16 { font-size: 16px; } .lu-17 { font-size: 17px; }
.lu-18 { font-size: 18px; }
.lu-mute { color: #8c8c7b; }
.lu-text { line-height: 1.35; }
.lu-l13 { line-height: 1.3; }
.lu-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lu-row { display: flex; align-items: center; }
.lu-grow { flex: 1 1 auto; min-width: 0; }

/* floating pieces: the plate, the small pill-shaped chip, the tilted square with an icon */
.lu-plate {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--lu-sh);
}
.lu-plate--s94 { transform: scale(.9412); transform-origin: 0 0; }
.lu-plate--cream { background: var(--cream); }
.lu-g4 { gap: 4px; } .lu-g6 { gap: 6px; } .lu-g8 { gap: 8px; } .lu-g10 { gap: 10px; }
.lu-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 50px;
  background: #fff;
  box-shadow: var(--lu-sh);
  font-weight: 500;
  white-space: nowrap;
}
.lu-chip--dark { background: #000; color: #fff; }
.lu-chip--y { background: var(--y, #ff0); }
.lu-sq {
  position: absolute;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: var(--lu-sh);
}
.lu-sq--y { background: var(--y); }
.lu-sq--stone { background: var(--stone); }
.lu-sq--cream { background: var(--cream); }
.lu-sq--dark { background: #000; color: #fff; }
.lu-pill {
  display: inline-flex;
  align-self: flex-start;
  flex: none;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lu-row .lu-pill, .lu-bk .lu-pill { align-self: center; }
/* yellow always carries black (owner's rule: no white on yellow), also inside a dark row */
.lu-pill--y { background: var(--y); color: #000; }
.lu-pill--dark { background: #000; color: #fff; }
.lu-pill--line { box-shadow: inset 0 0 0 1px #000; }
.lu-dot { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; }
.lu-dot--y { background: var(--y); color: #000; }
.lu-dot--dark { background: #000; color: #fff; }
.lu-dot--cream { background: var(--cream); color: var(--mute); font-size: 9.24px; }
.lu-dot--ava { width: 32px; height: 32px; background: var(--stone); }
.lu-dot--dark32 { width: 32px; height: 32px; background: #000; color: #fff; }

/* 1 · the booking step «Оберіть час» */
.lu-days { display: flex; gap: 6px; }
.lu-day {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  border-radius: 14px;
  background: var(--cream);
  color: var(--mute);
}
.lu-day b { color: #000; }
.lu-day.is-on, .lu-day.is-on b { background: #000; color: #fff; }
.lu-times { display: grid; grid-template-columns: repeat(3, 62px); gap: 6px; }
.lu-slot { display: grid; place-items: center; height: 18px; border-radius: 50px; font-size: 13px; font-weight: 500; }
.lu-slot--free { background: #fff; box-shadow: inset 0 0 0 1px var(--stone); }
.lu-slot--on { background: #000; color: #fff; }
.lu-slot--busy { background: var(--cream); color: var(--mute); text-decoration: line-through; }
/* 2 · the owner's bookings */
.lu-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lu-bk { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--cream); }
.lu-bk--plain { background: none; }
/* 4 · the guide sold and sent */
.lu-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--cream); }
.lu-file { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff; }
/* 5 · the course lessons */
.lu-track { display: block; height: 6px; border-radius: 6px; background: var(--stone); overflow: hidden; }
.lu-track i { display: block; width: 60%; height: 100%; border-radius: 6px; background: #000; }
.lu-ls { display: flex; align-items: center; gap: 10px; font-weight: 500; white-space: nowrap; }
.lu-ls .lu-12 { overflow: hidden; text-overflow: ellipsis; }
.lu-ls--now .lu-12 { font-weight: 700; }
.lu-ls--next .lu-12 { color: var(--mute); }
/* 6 · the course price */
.lu-field { display: flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 50px; box-shadow: inset 0 0 0 1px var(--stone); }
.lu-price { font-size: 26px; font-weight: 900; letter-spacing: -.04em; }
.lu-switch { display: flex; flex: none; justify-content: flex-end; align-items: center; width: 34px; height: 20px; padding: 3px; border-radius: 10px; background: #000; }
.lu-switch i { width: 14px; height: 14px; border-radius: 50%; background: #fff; }

/* «Отримай більше»: the site window, colour swatches, the «Aa» / D* squares, the old logo canvas */
.lu-win { padding: 0; gap: 0; overflow: hidden; }
.lu-win__bar { display: flex; gap: 5px; padding: 8px 12px; background: var(--cream); }
.lu-win__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--stone); }
.lu-win__body { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.lu-win__text { width: 128px; flex: none; }
.lu-win__brand { font-size: 9px; font-weight: 500; letter-spacing: .2em; color: var(--mute); }
.lu-win__h { line-height: 1.05; }
.lu-win__img { display: block; flex: none; width: 96px; height: 104px; border-radius: 12px; object-fit: cover; }
.lu-sw { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.lu-aa { font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
/* the logo card keeps the old drawing (owner 28.10): the 16.10 canvas with the hatched D* sketch, at .82 */
.lu-lg { position: absolute; display: block; width: 233.7px; height: 215.25px; }

/* tariffs (help/billing.html, Figma 43:225): the heading being edited, a class row, the webinar note */
.lu-edit { display: flex; align-items: flex-end; gap: 2px; padding: 6px 8px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--y); }
.lu-edit .lu-win__h { width: 100px; }
.lu-edit i { flex: none; width: 1.5px; height: 18px; background: #000; }

/* «Сайт із продажу інфопродукту» на /pricing (Figma 43:243 → UI 80:228, власник 30.10: тариф про продаж курсів — «Мої продукти» з продажами
   замість розкладу занять): велике число продажів і стовпчики за місяці, останній — чорний */
.lu-big { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.lu-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.lu-bars i { flex: none; width: 16.5px; border-radius: 4px; background: var(--stone); }
.lu-bars i:last-child { background: #000; }
