/* The real app on the page, and the pieces a visitor can press.

   The back office is shown as it is: pictures of its own pages, taken from a
   made-up restaurant and a made-up shop (README, "The pictures of the back
   office"), each in a browser's frame. The till's pieces drawn in mock.css
   answer a tap the way the till does: a router to unplug, a table to seat, a
   kitchen ticket to bump, a bill to split. js/play.js makes them move. */

/* ---- a page of the back office, in a browser's frame ---- */

.webapp {
  container-type: inline-size; overflow: hidden; margin: 0 auto; max-width: 1140px;
  border-radius: clamp(8px, 1.2vw, 14px); background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 40, 26, 0.1), 0 40px 80px -30px rgba(16, 44, 24, 0.45), 0 18px 30px -18px rgba(16, 44, 24, 0.3);
}
.webapp-bar { display: flex; align-items: center; gap: 0.6cqw; padding: 0.9cqw 1.3cqw; background: #eef1ee; border-bottom: 1px solid #e0e4e0; }
.webapp-bar i { width: 1cqw; height: 1cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #cfd5cf; }
.webapp-bar span { margin: 0 auto; padding: 0.35cqw 3.2cqw; border-radius: 1cqw; background: #fff; font-family: var(--mono); font-size: clamp(9px, 1.05cqw, 13px); color: #6b756d; transform: translateX(-2cqw); }
/* the page's own paper shows while the picture arrives */
.webapp img { display: block; width: 100%; height: auto; background: #f4f1e9; transition: opacity 0.25s var(--ease); }
.webapp img.is-turning { opacity: 0.35; }

/* ---- the hero: the back office behind, the till in front of its corner ---- */

.stage--hero { padding-left: clamp(14px, 4.6vw, 72px); padding-right: clamp(14px, 4.6vw, 72px); }
.hero-duo { position: relative; padding-bottom: 12.5%; }
.hero-duo .webapp { width: 82%; margin: 0; }
.hero-duo .tablet { position: absolute; z-index: 1; right: 0; bottom: 0; width: 61%; margin: 0; }
/* a narrow window: one under the other */
@media (max-width: 760px) {
  .hero-duo { padding-bottom: 0; }
  .hero-duo .webapp { width: 100%; margin-bottom: 14px; }
  .hero-duo .tablet { position: relative; right: auto; bottom: auto; width: 100%; }
}
/* a phone: the tablet is shown larger and runs off the side of its stage, as before (mock.css) */
@media (max-width: 620px) {
  .hero-duo .tablet { width: 190%; }
}

/* ---- the back office's pages, a tab each ---- */

.stage--office { padding-bottom: clamp(14px, 3vw, 40px); }
.tour-tabs {
  margin: 0 auto clamp(14px, 2vw, 26px); width: fit-content; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px;
  border-radius: 26px; background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 6px 18px -8px rgba(60, 90, 66, 0.35);
}
.tour-tabs button {
  height: 40px; padding: 0 clamp(12px, 1.7vw, 20px); border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-2); transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.tour-tabs button:hover { color: var(--ink); }
.tour-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tour-tabs button:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.tour-says { margin: clamp(14px, 1.8vw, 24px) auto 0; max-width: 64ch; min-height: 3.1em; text-align: center; font-size: clamp(15px, 1.2vw, 17.5px); color: var(--ink-2); }

/* ---- "try it": the line under a piece that answers a tap ---- */

.v-try { margin: 1em 0.3em 0; font-family: var(--mono); font-size: 0.74em; line-height: 1.4; color: var(--t-text3); }
.v-try--light { grid-column: 1 / -1; margin-top: 0.2em; text-align: center; color: #5d6b61; }
.till.piece button, .till.piece [role="button"] { -webkit-tap-highlight-color: transparent; }
.till.piece button:focus-visible, .till.piece [role="button"]:focus-visible { outline: 0.14em solid var(--t-greentext); outline-offset: 0.14em; }

/* ---- when the line drops: the router and the sale ---- */

.line-keys { display: flex; flex-wrap: wrap; gap: 8px; }
.line-keys button { height: 42px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; transition: transform 0.2s var(--out), background-color 0.2s var(--ease); }
.line-keys button:active { transform: scale(0.97); }
.line-keys button:focus-visible { outline: 2px solid #7be3ae; outline-offset: 2px; }
.line-plug { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--forest); }
.line-plug i { width: 9px; height: 9px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.22); }
.line-plug[aria-pressed="true"] i { background: #ff7a70; box-shadow: 0 0 0 4px rgba(255, 122, 112, 0.22); }
.line-sale { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.line-sale:hover { background: rgba(255, 255, 255, 0.16); }
.line-rows { display: grid; gap: 8px; }
.night-log em.sent { background: rgba(18, 183, 106, 0.18); color: #7be3ae; }
.night-log p.is-new { animation: line-in 0.4s var(--out); }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } }
.line-hint { margin: 2px 4px 0; font-family: var(--mono); font-size: 12px; line-height: 1.45; color: #8fa596; }

/* ---- front of house: a table is a key ---- */

button.v-plot { width: 100%; padding: 0; border: 0; border-radius: 1em; background: none; color: inherit; font: inherit; cursor: pointer; }
button.v-plot .tb { transition: transform 0.25s var(--out), background-color 0.25s var(--ease); }
button.v-plot:hover .tb { transform: translateY(-0.12em); }
button.v-plot:active .tb { transform: scale(0.96); }
.v-booking button { margin-left: auto; padding: 0.7em 1em; border: 0; border-radius: 0.7em; background: var(--t-violet); color: #fff; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.v-booking.is-seated { background: var(--t-greenwash); color: var(--t-greentext); }
.v-booking.is-seated button { display: none; }

/* ---- the kitchen: lines to tick, a ticket to bump and to recall ---- */

.t-tk [role="button"] { cursor: pointer; }
.t-tk footer:has(button) { padding: 0; }
.t-tk footer button { box-sizing: border-box; display: block; width: 100%; padding: 0.75em; border: 0; border-radius: inherit; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.t-tk footer button:hover { background: var(--t-stroke2); }
.tk-gone { display: grid; justify-items: center; gap: 0.5em; padding: 2.6em 1.2em; text-align: center; }
.tk-gone[hidden] { display: none; }
.tk-gone b { font-size: 1.05em; }
.tk-gone span { font-size: 0.86em; color: var(--t-text2); }
.tk-gone button { margin-top: 0.5em; padding: 0.7em 1.6em; border: 0; border-radius: 0.75em; background: var(--t-key); color: var(--t-text); font: inherit; font-weight: 700; cursor: pointer; }
.t-tk.is-gone header { background: var(--t-key); color: var(--t-text3); }
.t-tk.is-gone header span { color: var(--t-text3); }

/* ---- payment: guests, how a share is paid, and the charge ---- */

.v-count { display: flex; align-items: center; gap: 0.6em; margin: 0 0 0.8em; font-size: 0.9em; color: var(--t-text2); }
.v-count span { margin-right: auto; }
.v-count b { min-width: 1.6em; text-align: center; font-size: 1.15em; color: var(--t-text); }
.v-count button { width: 2.2em; height: 2.2em; border: 0; border-radius: 0.7em; background: var(--t-key); color: var(--t-text); font: inherit; font-size: 1.05em; font-weight: 700; line-height: 1; cursor: pointer; }
.v-count button:disabled { opacity: 0.35; cursor: default; }
.v-types button { padding: 0.75em 0; border: 0; border-radius: 0.8em; background: var(--t-key); text-align: center; font: inherit; font-size: 0.9em; font-weight: 600; color: var(--t-text2); cursor: pointer; }
.v-types button.is-on { background: var(--t-text); color: var(--t-header); }
button.v-charge { display: block; width: 100%; border: 0; font: inherit; font-weight: 800; cursor: pointer; transition: transform 0.2s var(--out); }
button.v-charge:active { transform: scale(0.98); }
button.v-charge.is-done { background: var(--t-key); color: var(--t-text); }
.v-shares li.is-new { animation: line-in 0.35s var(--out); }

/* ---- ordering from the table: the guest's phone, and the till that answers ---- */

.qr-play { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); gap: clamp(12px, 2.2vw, 30px); align-items: center; }
.phone {
  container-type: inline-size; justify-self: center; width: 100%; max-width: 270px;
  padding: 3.2%; border-radius: 13% / 6.4%; background: #0a0b0d;
  box-shadow: inset 0 0 0 1px #30343b, 0 40px 70px -34px rgba(16, 44, 24, 0.6), 0 20px 34px -22px rgba(16, 44, 24, 0.45);
}
/* the page a table's code opens: the guest page's own paper, ink and green */
.phone-screen {
  position: relative; display: flex; flex-direction: column; overflow: hidden; aspect-ratio: 9 / 17;
  border-radius: 10% / 5%; background: #fafaf6; color: #17201a; font-size: 4.6cqw; line-height: 1.3;
}
.g-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6em; padding: 1.5em 1.1em 0.8em; }
.g-head b { font-size: 1.12em; font-weight: 800; letter-spacing: -0.02em; }
.g-head span { padding: 0.25em 0.7em; border-radius: 99px; background: #e4eee5; color: #2c5c2f; font-size: 0.8em; font-weight: 700; white-space: nowrap; }
.g-menu { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 0.9em 0.9em; }
.g-menu[hidden], .g-state[hidden] { display: none; }
.g-search { margin: 0 0 0.8em; padding: 0.65em 0.9em; border-radius: 0.8em; background: #fff; box-shadow: inset 0 0 0 1px #e3e7de; color: #667068; font-size: 0.86em; }
.g-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6em; }
.g-tile {
  position: relative; display: grid; align-content: end; gap: 0.15em; min-height: 5.4em; padding: 0.7em; border: 0; border-radius: 0.9em;
  background: color-mix(in srgb, var(--c) 22%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 36%, #fff);
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform 0.2s var(--out);
}
.g-tile::before { content: ""; position: absolute; left: 0.7em; top: 0.7em; width: 1.5em; height: 1.5em; border-radius: 0.45em; background: var(--c); }
.g-tile:active { transform: scale(0.96); }
.g-tile:focus-visible, .g-send:focus-visible, .g-state button:focus-visible { outline: 2px solid #3f8443; outline-offset: 2px; }
.g-tile b { font-size: 0.9em; font-weight: 700; line-height: 1.2; }
.g-tile i { font-style: normal; font-size: 0.8em; color: #4a554d; }
.g-tile em { position: absolute; right: 0.6em; top: 0.6em; min-width: 1.7em; height: 1.7em; display: none; place-items: center; border-radius: 99px; background: #17201a; color: #fff; font-style: normal; font-size: 0.8em; font-weight: 800; }
.g-tile.is-in em { display: grid; }
.g-note { margin: auto 0 0.6em; padding-top: 0.8em; font-size: 0.74em; line-height: 1.35; color: #667068; text-align: center; }
.g-send { padding: 0.95em 0.8em; border: 0; border-radius: 0.9em; background: #3f8443; color: #fff; font: inherit; font-size: 0.95em; font-weight: 800; cursor: pointer; }
.g-send:disabled { background: #dfe4dc; color: #8b948d; cursor: default; }
.g-state { flex: 1; display: grid; align-content: center; justify-items: center; gap: 0.5em; padding: 1.4em; text-align: center; }
.g-state i { width: 3.2em; height: 3.2em; border-radius: 50%; background: #e4eee5; box-shadow: inset 0 0 0 0.35em #fafaf6, 0 0 0 0.2em #e4eee5; }
.g-state.is-wait i { animation: g-wait 1.4s ease-in-out infinite; }
.g-state.is-yes i { background: #3f8443; }
.g-state.is-no i { background: #d9a520; }
@keyframes g-wait { 50% { transform: scale(0.82); opacity: 0.6; } }
.g-state b { font-size: 1.25em; font-weight: 800; letter-spacing: -0.02em; }
.g-state span { font-size: 0.86em; color: #4a554d; }
.g-state button { margin-top: 0.8em; padding: 0.8em 1.2em; border: 0; border-radius: 0.9em; background: #17201a; color: #fff; font: inherit; font-size: 0.88em; font-weight: 700; cursor: pointer; }
.g-state button[hidden] { display: none; }

.till.piece.qr-till { --u: 5.6; }
.qr-sheet { padding: 1.3em; border-radius: 1.4em; background: var(--t-bg); box-shadow: 0 2.4em 3.6em -2em rgba(16, 44, 24, 0.6); }
.qr-sheet h6 { margin-bottom: 0.9em; }
.qr-none, .qr-done { margin: 0; padding: 1.1em; border-radius: 0.9em; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-stroke); font-size: 0.9em; line-height: 1.4; color: var(--t-text2); }
.qr-done { background: var(--t-greenwash); box-shadow: none; color: var(--t-greentext); }
.qr-done.is-no { background: #3a2a08; color: var(--t-ambertext); }
.qr-none[hidden], .qr-done[hidden], .qr-order[hidden] { display: none; }
.qr-order { overflow: hidden; border-radius: 1em; background: var(--t-panel); box-shadow: inset 0 0 0 0.12em var(--t-green); animation: line-in 0.4s var(--out); }
.qr-order header { display: grid; grid-template-columns: 1fr auto; gap: 0 0.6em; padding: 0.8em 1em; background: var(--t-greenwash); }
.qr-order header b { font-size: 1.1em; }
.qr-order header span { grid-column: 1; font-size: 0.78em; color: var(--t-greentext); }
.qr-order header em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 800; }
.qr-order ul { margin: 0; padding: 0.3em 1em; list-style: none; }
.qr-order li { display: grid; grid-template-columns: 1.4em 1fr auto; gap: 0.5em; padding: 0.55em 0; border-bottom: 1px solid var(--t-row); font-size: 0.95em; font-weight: 600; }
.qr-order li:last-child { border-bottom: 0; }
.qr-order li i { font-style: normal; color: var(--t-greentext); font-weight: 800; }
.qr-order li em { font-style: normal; color: var(--t-text2); font-weight: 500; }
.qr-keys { display: grid; grid-template-columns: 1fr 2fr; gap: 0.5em; padding: 0.3em 0.8em 0.8em; }
.qr-keys button { padding: 0.85em 0.5em; border: 0; border-radius: 0.8em; font: inherit; font-weight: 800; cursor: pointer; }
.qr-keys [data-decline] { background: #3a1c1e; color: #ff8a8e; }
.qr-keys [data-accept] { background: var(--t-go); color: var(--t-goink); }
@media (max-width: 620px) {
  .qr-play { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 250px; }
  .till.piece.qr-till { --u: 4.2; }
}
/* on a phone the pieces are drawn small: what is pressed keeps a finger's height */
@media (max-width: 620px) {
  .v-count button { min-width: 40px; min-height: 40px; }
  .v-types button, .t-tk footer button, .tk-gone button, .v-booking button, button.v-charge, .qr-keys button, .g-state button { min-height: 40px; }
  .t-tk li[role="button"] { min-height: 40px; align-items: center; }
  .g-send { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .g-state.is-wait i, .qr-order { animation: none; } .g-tile { transition: none; } }

@media (prefers-reduced-motion: reduce) {
  .night-log p.is-new, .v-shares li.is-new { animation: none; }
  .webapp img, button.v-plot .tb, .line-keys button, button.v-charge { transition: none; }
}

/* ---- the site in pages: Home, Product, Features, Pricing ---- */

/* the page a visitor is on, in the bar */
.nav-links a.is-page { color: var(--leaf-deep); }
/* the head of a page that is not the home page: the same switch and headline, nothing under it */
.hero--page .hero-copy h1 { font-size: clamp(34px, 4.6vw, 66px); }
/* what such a page ends on: one thing to do next */
.feature-end { padding: clamp(96px, 12.5vw, 196px) var(--gutter) 0; }
.feature-end .hero-cta { margin-top: clamp(22px, 2.6vw, 34px); }

/* the home page's list of what the till does: a card for each, which goes to it */
.index { padding: clamp(96px, 12.5vw, 196px) var(--gutter) 0; }
/* four to a row, and a last row that is not full stands in the middle */
.index-grid { --n: 4; --gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.index-card {
  position: relative; flex: 0 1 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); min-width: 0;
  display: grid; align-content: start; gap: 8px; padding: 24px 60px 26px 24px; border-radius: 22px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -30px rgba(40, 70, 48, 0.45);
  color: var(--ink); text-decoration: none; transition: transform 0.3s var(--out), box-shadow 0.3s var(--ease);
}
.index-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #cfd8cc, 0 26px 50px -30px rgba(40, 70, 48, 0.6); }
.index-card:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }
.index-card > .ico { width: 26px; height: 26px; color: var(--leaf-deep); }
.index-card b { margin-top: 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.index-card span { color: var(--ink-2); font-size: 15.5px; }
.index-card i { position: absolute; right: 18px; top: 20px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--leaf-deep); transition: transform 0.3s var(--out); }
.index-card:hover i { transform: translateX(3px); }
.index-card i .ico { width: 15px; height: 15px; }
.index-all { margin-top: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }

/* the whole product: its parts, each with the way to it */
.parts { padding: clamp(48px, 6vw, 96px) var(--gutter) 0; }
.parts .quarters { margin-top: 0; }
.parts .quarters a { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--leaf-deep); text-decoration: none; }
.parts .quarters a:hover { text-decoration: underline; }

@media (max-width: 1180px) { .index-grid { --n: 3; } }
@media (max-width: 900px) { .index-grid { --n: 2; } }
@media (max-width: 620px) { .index-grid { --n: 1; } }
@media (prefers-reduced-motion: reduce) { .index-card, .index-card i { transition: none; } }
