/* SIZL product UI, recreated. Shared by all landing variants.
   Mirrors the real app: off-white canvas, white rows, Input Mono for numbers and codes. */
.ui {
  --ui-bg: oklch(0.975 0.006 85);
  --ui-card: #fff;
  --ui-line: oklch(0.915 0.01 85);
  --ui-ink: oklch(0.22 0.008 60);
  --ui-mute: oklch(0.52 0.01 70);
  --ui-wire: oklch(0.84 0.02 85);
  --ui-wire-hot: oklch(0.55 0.05 70);
  --ui-loss: oklch(0.8 0.11 60);
  --ui-loss-bg: oklch(0.975 0.035 85);
  --ui-loss-line: oklch(0.9 0.07 85);
  --ui-rm-bg: oklch(0.96 0.025 275);
  --ui-rm: oklch(0.47 0.16 275);
  --ui-sp-bg: oklch(0.96 0.045 85);
  --ui-sp: oklch(0.5 0.11 65);
  --ui-link: oklch(0.53 0.19 262);
  --ui-accent: #8EA0FF;
  --ui-ok: oklch(0.6 0.15 145);
  --ui-r: 14px;
  font-family: "Suisse Intl", system-ui, sans-serif;
  color: var(--ui-ink);
  font-size: 14px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
.ui *, .ui *::before, .ui *::after { box-sizing: border-box; }
.ui[data-ui] { container-type: inline-size; }
.ui .code { font-family: "Input Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--ui-mute); letter-spacing: -0.01em; }
.ui img { display: block; }

.ui-thumb { width: 36px; height: 36px; border-radius: 9px; overflow: hidden; flex: none; background: var(--ui-bg); display: grid; place-items: center; }
.ui-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ui-badge { width: 36px; height: 36px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.ui-badge--rm { background: var(--ui-rm-bg); color: var(--ui-rm); }
.ui-badge--sp { background: var(--ui-sp-bg); color: var(--ui-sp); }
.ui-row__txt { min-width: 0; flex: 1; }
.ui-row__name { font-size: 13.5px; font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Wires draw-in (shared) ─────────────────────── */
.ui [data-draw] path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ui.is-in [data-draw] path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1), stroke .25s, opacity .25s; }
.ui.is-in [data-draw] path:nth-child(2) { transition-delay: .08s; }
.ui.is-in [data-draw] path:nth-child(3) { transition-delay: .16s; }
.ui.is-in [data-draw] path:nth-child(4) { transition-delay: .24s; }
.ui.is-in [data-draw] path:nth-child(5) { transition-delay: .32s; }
.ui.is-in [data-draw] path:nth-child(6) { transition-delay: .4s; }
.ui.is-in [data-draw] path:nth-child(7) { transition-delay: .48s; }

/* ── Menu board ─────────────────────────────────── */

/* ── Cost breakdown ─────────────────────────────── */
.ui-cost { background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 20px; overflow: hidden; }
.ui-cost__row { display: grid; grid-template-columns: minmax(0, 1fr) 54px 64px minmax(0, .9fr); gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--ui-line); }
.ui-cost__row--head { border-top: 0; font-size: 11.5px; color: var(--ui-mute); padding-block: 10px 9px; }
.ui-cost__ing { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ui-cost__ing .ui-thumb, .ui-cost__ing .ui-badge { width: 32px; height: 32px; font-size: 11px; }
.ui-cost__num { font: 12.5px "Input Mono", monospace; text-align: right; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ui-cost__src { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 12px; }
.ui-cost__src > span { min-width: 0; }
.ui-cost__src b { display: block; font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-cost__src small { display: block; color: var(--ui-mute); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-cost__ico { width: 24px; height: 24px; border-radius: 7px; background: var(--ui-bg); border: 1px solid var(--ui-line); flex: none; display: grid; place-items: center; }
.ui-cost__ico svg { width: 12px; height: 12px; stroke: var(--ui-mute); fill: none; stroke-width: 1.6; }
.ui-cost__ico--dough { background: oklch(0.93 0.05 70); border-color: oklch(0.86 0.07 70); overflow: hidden; }
.ui-cost__ico--dough img { width: 22px; height: auto; margin-top: 4px; }
.ui-cost__dash { color: var(--ui-mute); }
.ui-cost__row.is-scan { background: linear-gradient(90deg, transparent, oklch(0.96 0.05 75), transparent) 0 0 / 50% 100% no-repeat; animation: ui-scan 0.9s linear infinite; }
@keyframes ui-scan { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.ui-cost__row.is-found .ui-cost__num, .ui-cost__row.is-found .ui-cost__src { animation: ui-pop .5s cubic-bezier(.22,1,.36,1); }
@keyframes ui-pop { from { opacity: 0; transform: translateY(4px); filter: blur(3px); } }
.ui-cost__total { display: grid; grid-template-columns: minmax(0, 1fr) 54px 64px minmax(0, .9fr); gap: 12px; padding: 12px 16px; border-top: 1px solid var(--ui-line); font-weight: 600; align-items: center; }
.ui-cost__total .ui-cost__num { font-size: 14px; }
.ui-cost__act { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; justify-self: start; font-size: 12px; font-weight: 500; padding: 5px 10px 5px 5px; border-radius: 99px; background: var(--ui-ink); color: #fff; transition: transform .2s, opacity .2s; white-space: nowrap; }
.ui-cost__act img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: oklch(0.9 0.06 70); }
.ui-cost__act:active { transform: scale(.97); }
.ui-cost__act:focus-visible { outline: 2px solid var(--ui-link); outline-offset: 2px; }
.ui-cost__act[disabled] { opacity: .5; cursor: default; }
@container (max-width: 520px) {
  .ui-cost__row, .ui-cost__total { grid-template-columns: minmax(0,1fr) 44px 58px; padding-inline: 12px; }
  .ui-cost__row > :nth-child(4) { display: none; }
  .ui-cost__total > :nth-child(4) { grid-column: 1 / -1; }
  .ui-cost .code { display: none; }
}
/* Narrow cards: the value drops to its own line instead of breaking mid-phrase */

@media (prefers-reduced-motion: reduce) {
  .ui *, .ui.is-in [data-draw] path { transition-duration: .01ms !important; animation: none !important; transition-delay: 0s !important; }
  .ui [data-draw] path { stroke-dashoffset: 0; }
}
