/* The hero film, built in code: a tablet running the till and a card machine beside it, a sale
   every few seconds. It sits in the right-hand column of the hero, on the page's light background.
   The devices are laid out in percentages of the stage; the till inside the screen is sized in
   container units (1em = 1% of the screen width), so it scales with the device. */

/* The stage and the tablet */
.stage { position: relative; aspect-ratio: 1296 / 760; }
.device { position: absolute; border-radius: 3.6% / 5.2%; background: #232629; box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 28px 48px -24px rgba(11,12,12,.5), 0 0 0 1px rgba(11,12,12,.08);
  animation: devFloat 8s ease-in-out infinite; }
.device::before { /* the camera */ content: ''; position: absolute; top: .9%; left: 50%; width: .8%; aspect-ratio: 1; transform: translate(-50%, 0); border-radius: 50%; background: #0a0b0c; box-shadow: 0 0 0 1px #2f3336; }
.device.ipad { left: 0; top: 0; width: 90%; aspect-ratio: 1.559; padding: 2.2%; border-radius: 3% / 4.6%; background: #101214; }
@keyframes devFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.screen { width: 100%; height: 100%; border-radius: 1.4% / 2%; overflow: hidden; background: #F5F5EF; color: #1A1F1B; position: relative; container-type: inline-size; }
@media (max-width: 700px) {
  .stage { aspect-ratio: 1.559; margin-bottom: var(--pp-s5); }
  .device.ipad { width: 100%; }
}

/* ---- The till, in container units. 1em = 1% of the screen width. ----
   Class names in here must not match any in site.css (card, price and band have each leaked in before);
   prefix a new one if in doubt (t-cash, t-price, p-band).
   Every size below is measured from the Register's Sell screen on David's tablet
   (design/hero/reference/android-sell-2026-09-16.png, 2560 px wide, 16 September 2026),
   so the drawing keeps the app's own proportions. Colours are the Path build's. */
.till { position: absolute; inset: 0; font-size: 1cqw; font-family: var(--pp-font-body); display: flex; flex-direction: column; background: #F5F5EF; color: #1A1F1B; opacity: 1; transition: opacity .45s var(--pp-ease);
  --ink: #1A1F1B; --sub: #5C6660; --faint: #6E7872; --panel: #fff; --sunken: #F7F9F7; --chip: #F1F4F1; --line: #E3E8E4; --line2: #CFD6D1;
  --brand: #007E80; --brand-soft: #DDF6F6; --info: #2C6E8F; --info-soft: #E8F1F7;
  --tb: #B7791F; --tc: #2C6E8F; --td: #6E5A8E; --te: #5B6472; --tf: #276B5E; --tg: #94446A; --th: #5F7024; --ti: #3F4E9E; --tj: #7A6250; }
.till.done { opacity: 0; }
.till svg { display: inline-block; }
/* top bar: 4.57em tall, a hairline under it */
.till .tb { flex: none; height: 4.57em; background: var(--panel); border-bottom: .06em solid var(--line); display: flex; align-items: center; gap: 1.1em; padding: 0 1.45em; }
.till .burger { width: 2.93em; height: 2.93em; border-radius: .55em; background: var(--chip); display: grid; place-items: center; color: var(--ink); }
.till .burger svg { width: 1.25em; height: 1.25em; }
.till .mark { width: 2.5em; height: 2.5em; border-radius: .5em; background: var(--brand); color: #fff; display: grid; place-items: center; margin-left: -.1em; }
.till .mark b { font: 700 .9em/1 var(--pp-font-display); }
.till .biz { display: flex; flex-direction: column; line-height: 1.2; gap: .05em; }
.till .biz b { font: 600 1.2em/1.2 var(--pp-font-display); color: var(--ink); }
.till .biz small { font-size: .75em; color: var(--faint); }
.till .grow { flex: 1; }
.till .pill { height: 2.07em; padding: 0 .9em; border-radius: .45em; display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
.till .pill i { width: .32em; height: .32em; border-radius: 50%; background: currentColor; }
.till .pill span { font-size: .8em; font-weight: 500; }
.till .pill svg { width: .8em; height: .8em; }
.till .pill.ready { background: var(--brand-soft); color: var(--brand); }
.till .pill.sync { background: var(--info-soft); color: var(--info); }
.till .staff { height: 2.3em; padding: 0 .9em; border-radius: .45em; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: .5em; }
.till .staff svg { width: .85em; height: .85em; }
.till .staff span { font-size: .85em; font-weight: 600; white-space: nowrap; }
/* the grid side */
.till .body { flex: 1; display: flex; min-height: 0; }
.till .side { flex: 1; min-width: 0; padding: .78em .8em .8em .94em; display: flex; flex-direction: column; gap: .74em; }
.till .chips { display: flex; gap: .6em; align-items: center; min-width: 0; overflow: hidden; }
.till .search { flex: none; width: 15.6em; height: 2.3em; border-radius: .55em; background: var(--panel); display: flex; align-items: center; gap: .55em; padding: 0 .8em; color: var(--faint); box-shadow: 0 .04em .06em rgba(26,31,27,.08); }
.till .search svg { width: .85em; height: .85em; color: var(--sub); flex: none; }
.till .search span { font-size: .8em; white-space: nowrap; }
.till .chip { height: 2.3em; padding: 0 .9em; border-radius: .5em; background: var(--panel); color: var(--sub); display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; box-shadow: 0 .04em .06em rgba(26,31,27,.08); }
.till .chip i { width: .32em; height: .32em; border-radius: 50%; background: var(--t, var(--ink)); }
.till .chip span { font-size: .8em; font-weight: 600; }
.till .chip.on { background: var(--t, var(--ink)); color: #fff; box-shadow: none; }
.till .chip.on i { display: none; }
.till .chip.on span { font-weight: 700; }
.till .tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6em; align-content: start; }
@container (max-width: 520px) { .till .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.till .tile { position: relative; height: 7.8em; border-radius: .47em; padding: .7em .6em .55em; display: flex; flex-direction: column; text-align: left; background: var(--t); color: #fff; overflow: hidden; transition: transform .18s var(--pp-ease), filter .18s var(--pp-ease); }
.till .tile.pressed { transform: scale(.96); filter: brightness(.9); }
.till .tile .code { font: 700 .8em/1 var(--pp-font-display); color: rgba(255,255,255,.85); }
.till .tile .name { margin-top: auto; font-size: .8em; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.till .tile .row { display: flex; justify-content: space-between; align-items: baseline; gap: .4em; white-space: nowrap; }
.till .tile .t-price { font-size: .8em; font-weight: 700; font-variant-numeric: tabular-nums; }
.till .tile .vat { font-size: .6em; color: rgba(255,255,255,.85); }
.till .tile .flag { position: absolute; top: .8em; right: .8em; background: var(--panel); color: var(--t); border-radius: .45em; padding: .15em .5em; font-size: .55em; font-weight: 700; line-height: 1.4; }
/* Photo tiles, as the Register shows them: the photograph takes the top band, the colour bar under it carries the name, price and VAT hint, and what is left in stock sits top-right of the bar. */
.till .tile.has-photo { padding: 0; }
.till .tile .photo { flex: none; height: 4.65em; background-position: center; background-size: cover; background-repeat: no-repeat; }
.till .tile .bar { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: center; gap: .05em; padding: .3em .6em .35em; min-height: 0; }
.till .tile .bar .name { margin-top: 0; }
.till .tile .bar.has-stock .name { padding-right: 2.2em; }
.till .tile .stock { position: absolute; top: .55em; right: .8em; height: 1.6em; min-width: 1.6em; box-sizing: border-box; padding: 0 .45em; background: #fff; color: var(--ink); border-radius: .8em; font-size: .6em; font-weight: 700; line-height: 1.6em; text-align: center; font-variant-numeric: tabular-nums; }
.till .tile.open { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 .07em var(--line2); }
.till .tile.open .code { color: var(--sub); }
.till .tile.open .hint { font-size: .55em; color: var(--faint); }
/* the basket */
.till .basket { width: 31em; min-width: 24em; background: var(--panel); border-top-left-radius: .9em; box-shadow: -.1em 0 .4em rgba(26,31,27,.10); display: flex; flex-direction: column; padding: .94em; gap: .8em; }
.till .bh { display: flex; justify-content: space-between; align-items: center; gap: .6em; }
.till .bh b { font: 600 1em/1 var(--pp-font-display); color: var(--ink); white-space: nowrap; }
.till .seg { display: inline-flex; background: var(--chip); border-radius: .5em; padding: .16em; }
.till .seg span { height: 2.27em; display: inline-flex; align-items: center; padding: 0 .8em; border-radius: .4em; font-size: .7em; font-weight: 600; color: var(--sub); white-space: nowrap; }
.till .seg span.on { background: var(--ink); color: #fff; font-weight: 700; }
.till .lines { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.till .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); text-align: center; padding: 1em; }
.till .empty span { font-size: .75em; }
.till .lines.has .empty { display: none; }
.till .line { display: flex; align-items: center; gap: .6em; min-height: 2.2em; padding: .4em 0; animation: lineIn .35s var(--pp-ease); }
.till .line .q { width: 1.1em; height: 1.1em; border-radius: .3em; background: var(--chip); display: grid; place-items: center; font-size: .6em; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; }
.till .line .n { flex: 1; font-size: .75em; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.till .line .p { font-size: .75em; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes lineIn { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
.till .totals { background: var(--sunken); border-radius: .7em; padding: .7em .94em; display: flex; flex-direction: column; gap: .3em; }
.till .totals .sub { display: flex; justify-content: space-between; color: var(--sub); }
.till .totals .sub span { font-size: .65em; font-variant-numeric: tabular-nums; }
.till .totals .rule { height: 0; border-top: .08em dashed var(--line2); margin: .15em 0; }
.till .totals .tot { display: flex; justify-content: space-between; align-items: baseline; }
.till .totals .tot b { font: 700 1em/1 var(--pp-font-display); color: var(--ink); }
.till .totals .tot .amt { font-size: 1em; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; display: inline-block; }
.till .totals .vatline { font-size: .6em; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.till .amt.tick { animation: tick .35s var(--pp-ease); }
@keyframes tick { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.till .acts { display: flex; gap: .5em; }
.till .acts span { flex: 1; height: 2.35em; border-radius: .45em; background: var(--chip); display: grid; place-items: center; color: var(--sub); font-size: 1em; opacity: .45; transition: opacity .25s; }
.till .acts span b { font-size: .65em; font-weight: 700; }
.till .has-items .acts span { opacity: 1; }
.till .charge { height: 3.25em; border-radius: .55em; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: 0 .94em; opacity: .45; transition: opacity .25s, transform .18s var(--pp-ease); }
.till .charge.ready { opacity: 1; box-shadow: 0 .2em .5em rgba(0,126,128,.35); }
.till .charge.pressed { transform: scale(.97); }
.till .charge .label { font: 700 1em/1 var(--pp-font-display); }
.till .charge .right { display: inline-flex; align-items: center; gap: .5em; }
.till .charge .amt { font-size: 1em; font-weight: 700; font-variant-numeric: tabular-nums; }
.till .charge svg { width: .9em; height: .9em; }

/* The Charge sheet and the Payment taken sheet, as the Register draws them
   (design/hero/reference/android-charge-2026-09-16.png and android-payment-taken-2026-09-16.png). */
.till .pay { position: absolute; inset: 0; background: rgba(15,22,16,.45); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s var(--pp-ease); }
.till.charging .pay, .till.approved .pay { opacity: 1; }
.till .sheet { width: 33.2em; background: var(--panel); border-radius: .9em; overflow: hidden; box-shadow: 0 1.2em 2.4em rgba(0,0,0,.35); transform: translateY(.6em); transition: transform .3s var(--pp-ease); display: flex; flex-direction: column; }
.till.charging .sheet, .till.approved .sheet { transform: none; }
.till .sheet .x { position: absolute; top: 1.35em; right: 1.35em; width: 2.9em; height: 2.9em; border-radius: .6em; background: var(--chip); color: var(--ink); display: grid; place-items: center; }
.till .sheet .x svg { width: 1.1em; height: 1.1em; }
/* Charge */
.till .s-charge { display: none; position: relative; }
.till.charging .s-charge { display: block; }
.till .s-charge .head { padding: 1.35em 1.35em 0; }
.till .s-charge h2 { font: 600 1.3em/1.2 var(--pp-font-display); color: var(--ink); margin: 0; }
.till .s-charge .sub { font-size: .8em; color: var(--sub); margin-top: .2em; }
.till .s-charge .lab { font-size: .65em; font-weight: 700; letter-spacing: .08em; color: var(--sub); text-transform: uppercase; padding: 1.6em 1.35em .6em; }
.till .s-charge .opts { display: flex; gap: .6em; padding: 0 1.35em; }
.till .s-charge .opts span { flex: 1; height: 2.75em; border-radius: .55em; background: var(--chip); color: var(--ink); display: grid; place-items: center; font-size: 1em; }
.till .s-charge .opts span b { font-size: .85em; font-weight: 600; }
.till .s-charge .opts span.on { background: var(--ink); color: #fff; }
.till .s-charge .topay { display: flex; justify-content: space-between; align-items: baseline; padding: 1.2em 1.35em 1.2em; }
.till .s-charge .topay b { font: 600 1.1em/1 var(--pp-font-display); color: var(--ink); }
.till .s-charge .topay .amt { font: 700 1.7em/1 var(--pp-font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.till .s-charge .tender { display: flex; gap: .6em; padding: 1em 1.35em 1.35em; border-top: .06em solid var(--line); }
.till .s-charge .tender span { flex: 1; height: 3.1em; border-radius: .6em; background: var(--brand); color: #fff; display: grid; place-items: center; transition: transform .18s var(--pp-ease), filter .18s var(--pp-ease); }
.till .s-charge .tender span b { font: 700 1.1em/1 var(--pp-font-display); }
.till .s-charge .tender span.pressed { transform: scale(.97); filter: brightness(.85); }
/* Payment taken */
.till .s-paid { display: none; position: relative; }
.till.approved .s-paid { display: block; }
.till .s-paid .p-band { background: var(--brand); color: #fff; height: 4.2em; display: flex; align-items: center; gap: .7em; padding: 0 1.35em; }
.till .s-paid .p-band svg { width: 1.3em; height: 1.3em; }
.till .s-paid .p-band b { font: 700 1.2em/1 var(--pp-font-display); flex: 1; }
.till .s-paid .p-band .no { font-size: .8em; font-weight: 600; opacity: .9; margin-right: .6em; }
.till .s-paid .p-band .x { position: static; width: 2.2em; height: 2.2em; background: rgba(255,255,255,.18); color: #fff; }
.till .s-paid .rcpt { margin: 1.05em 1.2em 0; background: var(--sunken); border-radius: .6em; padding: .9em 1.1em 1em; }
.till .s-paid .rl { display: flex; gap: .8em; align-items: baseline; padding: .42em 0; }
.till .s-paid .rl .q { font-size: .7em; font-weight: 700; color: var(--sub); width: 1.6em; }
.till .s-paid .rl .n { flex: 1; font-size: .8em; color: var(--ink); }
.till .s-paid .rl .p { font-size: .8em; color: var(--ink); font-variant-numeric: tabular-nums; }
.till .s-paid .rule { border-top: .06em solid var(--line2); margin: .5em 0 .6em; }
.till .s-paid .tot { display: flex; justify-content: space-between; align-items: baseline; }
.till .s-paid .tot b { font: 700 1.15em/1 var(--pp-font-display); color: var(--ink); }
.till .s-paid .tot .amt { font: 700 1.4em/1 var(--pp-font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.till .s-paid .by { display: flex; justify-content: space-between; padding: .7em 0 0; }
.till .s-paid .by span { font-size: .75em; color: var(--ink); } .till .s-paid .by span:first-child { font-weight: 700; }
.till .s-paid .rcpts { display: flex; gap: .6em; padding: 1.1em 1.2em 1.2em; margin-top: 1em; border-top: .06em solid var(--line); }
.till .s-paid .rcpts span { flex: 1; height: 3.05em; border-radius: .6em; display: grid; place-items: center; }
.till .s-paid .rcpts span b { font: 700 1em/1 var(--pp-font-display); }
.till .s-paid .rcpts .none { background: var(--panel); box-shadow: inset 0 0 0 .07em var(--line2); color: var(--ink); }
.till .s-paid .rcpts .email { background: var(--info); color: #fff; }
.till .s-paid .rcpts .print { background: var(--brand); color: #fff; }
