/* The demo receipts: one per language, each laid out like the real receipts of
   its country. Every business, address and number on them is invented.

   Used twice: by demo-receipts.html, from which the PNGs in
   marketing/demo_receipts are captured, and by the homepage's hero, which
   loads the same markup. Everything is scoped under .rcpt so it cannot leak
   into either page. Sizes are the printed ones; the hero scales to fit. */

.rcpt, .rcpt * { box-sizing: content-box; }
.rcpt { position: relative; width: 384px; background: #fbfaf6; color: #151515; padding: 26px 22px 34px; font-family: Consolas, "Courier New", ui-monospace, Menlo, monospace; font-size: 15px; line-height: 1.45; text-align: left; letter-spacing: normal; }
.rcpt .c { text-align: center; }
.rcpt .b { font-weight: 700; }
.rcpt .big { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.rcpt .xl { font-size: 18px; font-weight: 700; }
.rcpt .sm { font-size: 13px; }
.rcpt .row { display: flex; justify-content: space-between; gap: 10px; }
.rcpt .row > span:first-child { white-space: pre; }
.rcpt .hr { border-top: 1.5px dashed #555; margin: 10px 0; }
.rcpt .dhr { border-top: 3px double #444; margin: 8px 0; }
.rcpt .gap-s { height: 8px; }
/* Name, quantity, amount: CJK text is not fixed-width, so columns, not spaces. */
.rcpt .cols { display: grid; grid-template-columns: 1fr 64px 90px; }
.rcpt .cols span:nth-child(2) { text-align: center; }
.rcpt .cols span:nth-child(3) { text-align: right; }
.rcpt .barcode { height: 54px; margin: 12px 8px 0; background: repeating-linear-gradient(90deg, #151515 0 3px, transparent 3px 5px, #151515 5px 6px, transparent 6px 9px, #151515 9px 13px, transparent 13px 14px, #151515 14px 15px, transparent 15px 19px); }

/* Brazil: a supermarket NFC-e. Small type, one line per item plus one for
   quantity and price, as the Epson printers at the tills lay it out. */
.rcpt.br { width: 404px; font-size: 12.5px; line-height: 1.42; }
.rcpt .qr { display: block; margin: 10px auto 4px; image-rendering: pixelated; }

/* Hong Kong: a cha chaan teng docket. The shop's badge and a reversed name
   banner, big table and order numbers, two decimals on everything, and the
   Octopus slip at the foot. */
.rcpt.hk { font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "MingLiU", sans-serif; font-size: 15px; }
.rcpt .hk-logo { display: block; width: 62px; height: 62px; margin: 0 auto 8px; }
.rcpt .hk-name { background: #151515; color: #fbfaf6; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: .5em; padding: 6px 0 6px .5em; border-radius: 4px; }
.rcpt .hk-en { text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 13px; letter-spacing: .32em; margin: 7px 0 2px; padding-left: .32em; }
.rcpt .hk-en-rule { border-top: 1px solid #151515; border-bottom: 1px solid #151515; height: 2px; margin: 0 60px 8px; }
.rcpt .hk-big { font-family: Consolas, ui-monospace, monospace; font-size: 26px; font-weight: 400; margin-left: 6px; }
.rcpt .hk-total { font-size: 22px; font-weight: 700; margin-top: 8px; justify-content: flex-end; gap: 14px; }
.rcpt .hk-total-in { display: inline-flex; gap: 14px; }

/* Japan: a konbini receipt. Gothic type, full-width katakana, 軽 marks on
   reduced-rate food, and the total printed double size. */
.rcpt.jp { font-family: "MS Gothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", monospace; font-size: 15px; line-height: 1.5; }
.rcpt .jp-logo { display: flex; align-items: center; justify-content: center; gap: 14px; font-family: "Yu Gothic", "Meiryo", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; font-weight: 800; font-size: 50px; line-height: 1; letter-spacing: .06em; margin: 4px 0 14px; }
.rcpt .jp-logo-in { display: inline-flex; align-items: center; gap: 14px; }
.rcpt .jp-mark { display: inline-flex; flex: none; width: 66px; height: 58px; border-radius: 14px; background: #151515; color: #fbfaf6; align-items: center; justify-content: center; font-family: Arial, sans-serif; font-weight: 900; font-size: 36px; letter-spacing: -.02em; }
.rcpt .jp-title { text-align: center; font-size: 19px; border: 1.5px solid #333; width: 170px; margin: 10px auto; padding: 2px 0; }
.rcpt .jp-hr { border-top: 1.5px dashed #555; margin: 8px 0; }
.rcpt .jp-total { font-size: 25px; font-weight: 700; margin: 4px 0; }
.rcpt .jp-pay { font-size: 18px; font-weight: 700; margin-top: 6px; }

/* Vietnam: a restaurant bill. A plain sans, the items in a ruled table, dots
   for thousands, and the total repeated in words. */
.rcpt.vn { font-family: Arial, "Helvetica Neue", "Segoe UI", sans-serif; font-size: 14px; line-height: 1.4; }
.rcpt .vn-name { text-align: center; font-weight: 800; font-size: 24px; letter-spacing: .01em; margin: 2px 0 2px; }
.rcpt .vn-title { text-align: center; font-weight: 800; font-size: 19px; margin: 10px 0 0; }
.rcpt .vn-table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13.5px; }
.rcpt .vn-table th, .rcpt .vn-table td { border: 1px solid #222; padding: 3px 5px; vertical-align: top; }
.rcpt .vn-table th { font-weight: 700; text-align: center; }
.rcpt .vn-table td.n { text-align: right; white-space: nowrap; }
.rcpt .vn-table td.q { text-align: center; }
.rcpt .vn-big { font-size: 20px; font-weight: 800; margin-top: 2px; }
.rcpt .vn-words { font-style: italic; font-size: 12.5px; }

/* Spain: the TPV layout. One typewriter face throughout; four columns, names
   cut to the printer's width, double rules, and the totals printed
   double-height. */
.rcpt .es4 { display: grid; grid-template-columns: 34px 1fr 62px 70px; column-gap: 4px; }
.rcpt .es4 span:first-child { text-align: right; padding-right: 6px; }
.rcpt .es4 span:nth-child(3), .rcpt .es4 span:nth-child(4) { text-align: right; }
.rcpt .es4.mod span:nth-child(2) { padding-left: 14px; }
.rcpt .shop-es { font-size: 25px; font-weight: 700; letter-spacing: .03em; line-height: 1.2; margin-bottom: 4px; }
.rcpt .tall { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 19px; transform: scaleY(1.6); transform-origin: 0 50%; margin: 14px 0; }
.rcpt .tall span:last-child { font-size: 22px; }

/* Germany: a car-hire return slip in the American desk layout. A boxed
   wordmark, three columns (the charge, its amount, and the tax code A for
   19 % that German tills print beside each line), extras declined in words. */
.rcpt .de-logo { display: flex; justify-content: center; margin: 2px 0 4px; }
.rcpt .de-logo span { background: #151515; color: #fbfaf6; font-family: "Arial Black", Arial, sans-serif; font-weight: 900; font-style: italic; font-size: 34px; letter-spacing: .04em; line-height: 1; padding: 8px 20px 8px 16px; border-radius: 0 18px 0 18px; }
.rcpt .de-tag { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .42em; padding-left: .42em; margin-bottom: 6px; }
.rcpt .de3 { display: grid; grid-template-columns: 1fr 78px 18px; padding-left: 10px; }
.rcpt .de3 span:nth-child(2) { text-align: right; }
.rcpt .de3 span:nth-child(3) { text-align: right; }
.rcpt .de3 .x { grid-column: 2 / 4; text-align: right; }
.rcpt.de > .b { margin-top: 6px; }

/* Finland: a Helsinki till. The name letter-spaced across the top,
   quantities on their own line under the item, and the VAT table last. */
.rcpt .fi-name { text-align: center; font-size: 24px; letter-spacing: .32em; padding-left: .32em; margin: 4px 0 8px; }
.rcpt .fi-q { padding-left: 120px; }
.rcpt .fi-sum { font-weight: 700; font-size: 17px; }
.rcpt .fi-vat { display: grid; grid-template-columns: 62px 1fr 80px 1fr; text-align: right; font-size: 14px; }
.rcpt .fi-vat span:first-child { text-align: left; }

/* France: a Paris bakery till. The name in tall condensed capitals, the
   items in five columns with a VAT code on each, and TOTAL TTC printed large
   above the VAT table. */
.rcpt .fr-name { text-align: center; font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-stretch: condensed; font-weight: 700; font-size: 25px; letter-spacing: .01em; transform: scaleY(1.45); margin: 10px 0 14px; }
.rcpt .fr-hr { border-top: 1.5px solid #333; margin: 8px 0; }
.rcpt .fr5 { display: grid; grid-template-columns: 30px 1fr 48px 62px 18px; column-gap: 4px; }
.rcpt .fr5 span:nth-child(3), .rcpt .fr5 span:nth-child(4), .rcpt .fr5 span:nth-child(5) { text-align: right; }
.rcpt .fr-total { display: flex; justify-content: space-between; font-size: 27px; font-weight: 700; letter-spacing: -.02em; transform: scaleY(1.3); margin: 12px 0 10px; }
.rcpt .fr4 { display: grid; grid-template-columns: 1fr 64px 56px 64px; text-align: right; }
.rcpt .fr4 span:first-child { text-align: left; }

/* Korea: an H&B store's card slip. Gothic type, the chain's name pre-printed
   faintly down the paper (mint, as the chains print their own colours), each
   item on two lines, and 결제금액 printed large. */
.rcpt.kr { font-family: "GulimChe", "Gulim", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-size: 14px; line-height: 1.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300'%3E%3Ctext x='200' y='200' text-anchor='middle' font-family='Arial Black,Arial,sans-serif' font-weight='900' font-size='50' letter-spacing='8' fill='%2334b58a' fill-opacity='.2'%3EMINT DAY%3C/text%3E%3C/svg%3E");
  background-repeat: repeat-y; background-position: center 0; background-size: 100% auto; }
.rcpt .kr-logo { text-align: center; font-family: "Arial Black", Arial, sans-serif; font-weight: 900; font-size: 30px; letter-spacing: .14em; line-height: 1.1; margin: 4px 0 6px; }
/* The trailing letter-space is balanced on the left, so the store box sits even. */
.rcpt .kr-logo span { padding-left: .14em; }
.rcpt .kr-name { text-align: center; font-weight: 700; font-size: 18px; margin-bottom: 2px; }
.rcpt .kr-title { text-align: center; font-weight: 700; font-size: 16px; }
.rcpt .kr-item { display: flex; justify-content: space-between; gap: 8px; }
.rcpt .kr-item span:first-child { white-space: nowrap; }
.rcpt .kr4 { display: grid; grid-template-columns: 1fr 62px 34px 70px; }
.rcpt .kr4 span:nth-child(2), .rcpt .kr4 span:nth-child(4) { text-align: right; }
.rcpt .kr4 span:nth-child(3) { text-align: center; }
.rcpt .kr-tax { display: flex; justify-content: flex-end; gap: 36px; }
.rcpt .kr-tax span:last-child { min-width: 80px; text-align: right; }
.rcpt .kr-total { font-size: 21px; font-weight: 700; margin-top: 4px; }

/* Turkey: a café's adisyon. A plain sans, the logo beside ADİSYON FİŞİ,
   labels right-aligned against their colons, the table number large, orders
   in bold, the totals large and right-aligned, and the share table ruled. */
.rcpt.tr { font-family: Tahoma, Verdana, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
.rcpt .tr-top { display: flex; justify-content: space-between; align-items: flex-start; margin: 2px 0 14px; }
.rcpt .tr-logo { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; font-size: 33px; line-height: 1.15; color: #333; }
.rcpt .tr-logo small { display: block; font-family: Tahoma, Verdana, sans-serif; font-size: 10px; letter-spacing: .32em; color: #555; margin: 2px 0 0 4px; }
.rcpt .tr-title { text-align: right; font-weight: 700; font-size: 26px; line-height: 1.12; letter-spacing: .02em; }
.rcpt .tr-kv { display: grid; grid-template-columns: 118px 1fr; column-gap: 6px; }
.rcpt .tr-kv > span:first-child { text-align: right; font-weight: 700; }
.rcpt .tr-masa { align-items: baseline; font-weight: 700; }
.rcpt .tr-masa b { font-size: 26px; }
.rcpt .tr-head { display: flex; justify-content: flex-end; gap: 30px; font-weight: 700; border-bottom: 1.5px solid #333; margin-top: 10px; padding-bottom: 2px; margin-bottom: 4px; }
.rcpt .tr3 { display: grid; grid-template-columns: 32px 1fr 80px; font-weight: 700; }
.rcpt .tr3 span:first-child { text-align: center; }
.rcpt .tr3 span:last-child { text-align: right; }
.rcpt .tr-sums { border-top: 1.5px solid #333; margin-top: 6px; padding-top: 6px; }
.rcpt .tr-sum { display: flex; justify-content: flex-end; gap: 16px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.rcpt .tr-sum-in { display: inline-flex; gap: 16px; }
.rcpt .tr-sum .v { min-width: 98px; text-align: right; }
.rcpt .tr-garson { border-top: 1.5px solid #333; margin-top: 10px; padding-top: 4px; font-weight: 700; font-style: italic; font-size: 13px; }
.rcpt .tr-share-h { font-weight: 700; font-size: 16px; margin-top: 2px; }
.rcpt .tr-share { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; text-align: center; }
.rcpt .tr-share td { border: 1px solid #555; border-left: 3px double #555; border-right: 3px double #555; padding: 6px 2px; }

/* Russia: an online till's receipt (54-ФЗ). One monospace face, each item on
   two lines (its name, then quantity × price, VAT rate and amount), КАССОВЫЙ
   ЧЕК and ИТОГ printed large, the fiscal data and the tax QR code last. */
.rcpt.ru { font-size: 14px; line-height: 1.45; }
.rcpt .ru-title { text-align: center; font-weight: 700; font-size: 23px; letter-spacing: .04em; margin: 8px 0 0; }
.rcpt .ru3 { display: grid; grid-template-columns: 1fr 74px 86px; padding-left: 18px; }
.rcpt .ru3 span:last-child { text-align: right; }
.rcpt .ru-total { font-size: 27px; font-weight: 700; line-height: 1.25; margin: 2px 0 6px; }

/* Saudi Arabia: a Gulf restaurant till's bill. Right to left; the till's
   monospace for digits, a plain sans for the Arabic; the header centred with
   the table number large, rows of = round the column heads, three columns
   (count, description, cost), and the grand total reversed out of a bar. */
.rcpt.sa { direction: rtl; text-align: right; font-family: Consolas, Tahoma, "Segoe UI", "Noto Sans Arabic", monospace; font-size: 15px; line-height: 1.6; }
.rcpt .sa-name { font-weight: 700; font-size: 22px; line-height: 1.4; }
.rcpt .sa-table { font-weight: 700; font-size: 26px; line-height: 1.3; margin: 4px 0 2px; }
.rcpt .sa-eq { height: 2px; border-top: 1.5px dashed #333; border-bottom: 1.5px dashed #333; margin: 6px 0; }
.rcpt .sa3 { display: grid; grid-template-columns: 52px 1fr 72px; }
.rcpt .sa3 span:first-child { text-align: center; }
.rcpt .sa3 span:last-child { text-align: left; }
.rcpt .sa-bar { background: #151515; color: #fbfaf6; font-size: 21px; font-weight: 700; padding: 2px 8px; margin: 6px 0 0; }

/* Italy: a trattoria's preconto. Arial, the boxed reminder to ask for an
   invoice, the table number large, four columns (quantity, description, unit
   price, amount) under a dotted rule, and TOTALE printed large. */
.rcpt.it { font-family: Arial, "Helvetica Neue", "Segoe UI", sans-serif; font-size: 14.5px; line-height: 1.5; }
.rcpt .it-name { text-align: center; font-weight: 700; font-size: 22px; letter-spacing: .03em; margin-bottom: 2px; }
.rcpt .it-box { border: 1.5px solid #333; text-align: center; font-weight: 700; font-size: 18px; line-height: 1.3; padding: 6px 4px; margin: 12px 4px 12px; }
.rcpt .it-pre { align-items: baseline; }
.rcpt .it-pre span:first-child { font-size: 17px; font-weight: 700; }
.rcpt .it-tav { align-items: baseline; margin-bottom: 6px; }
.rcpt .it-tav b { font-size: 30px; }
.rcpt .it4 { display: grid; grid-template-columns: 28px 1fr 64px 66px; }
.rcpt .it4 span:nth-child(3), .rcpt .it4 span:nth-child(4) { text-align: right; }
.rcpt .it-head { border-bottom: 1.5px dotted #333; padding-bottom: 2px; margin-bottom: 6px; font-size: 13.5px; }
.rcpt .it-sub { font-size: 17px; margin-top: 30px; padding-top: 4px; border-top: 1.5px solid #333; }
.rcpt .it-total { font-size: 22px; font-weight: 700; margin-top: 2px; }

/* Poland: a taximeter's fiscal receipt. Monospace, the driver's details,
   PARAGON FISKALNY, the fee and tariff lines with their tax letter, the ride's
   times, and SUMA PLN printed large over the fiscal footer and its logo. */
.rcpt.pl { font-size: 14px; line-height: 1.45; }
.rcpt .pl-title { text-align: center; font-weight: 700; font-size: 17px; letter-spacing: .08em; margin: 8px 0; }
.rcpt .pl-rate { padding-left: 12px; font-size: 13px; }
.rcpt .pl-kv { display: grid; grid-template-columns: 1fr 188px; }
.rcpt .pl-sum { font-size: 26px; font-weight: 700; line-height: 1.25; margin: 2px 0; }
.rcpt .pl-fisc { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; }
.rcpt .pl-logo { display: inline-block; border: 2px solid #151515; border-radius: 3px; font-family: Arial, sans-serif; font-weight: 900; font-size: 11px; line-height: 1; padding: 2px 3px; }

/* Hungary: a ticket office's card slip. Monospace, the slip's own lines in
   capitals, the journey in mixed case with prices star-filled as railway
   tickets print them, and ÖSSZEG over the reminder to keep the slip. */
.rcpt.hu { font-size: 14px; line-height: 1.45; }
.rcpt .hu-st { font-weight: 700; font-size: 17px; line-height: 1.3; }
.rcpt .hu3 { display: grid; grid-template-columns: 62px 1fr 98px; }
.rcpt .hu3 span:last-child { text-align: right; }
.rcpt .hu-sale { font-weight: 700; margin: 8px 0 6px; }
.rcpt .hu-sum { font-size: 18px; font-weight: 700; }
