@font-face {
  font-family: Archivo;
  src: url(/fonts/archivo.woff2) format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url(/fonts/plex-mono-400.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url(/fonts/plex-mono-600.woff2) format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f6f1e6;
  --card: #fffdf8;
  --tint: #ece4d3;
  --ink: #17140f;
  --ink-soft: #544e43;
  --line: #d8cfbb;
  --orange: #b83c0a;
  --orange-bright: #e4571a;
  --teal: #0b474b;
  --teal-bright: #0f6a70;
  --lilac: #ece3f5;
  --purple: #4b2e83;
  --off-red: #f8d7da;
  --off-red-ink: #842029;
  --off-yellow: #fff3cd;
  --off-yellow-ink: #664d03;
  --holiday: #e2d4f0;
  --sans: Archivo, system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, monospace;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--sans);
  font-stretch: 100%;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 2px; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.visually-hidden, .trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0;
  border: 0;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .5rem 1rem; background: var(--ink); color: var(--paper); }
.skip:focus { top: .5rem; }
.muted { color: var(--ink-soft); }

h1, h2 { font-stretch: 72%; font-weight: 800; line-height: .98; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.eyebrow {
  margin-bottom: .9rem;
  color: var(--orange);
  font: 600 .8rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lede { max-width: 38rem; margin-top: 1.4rem; color: var(--ink-soft); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; }
.section-title { margin-bottom: 2.5rem; }

.wordmark { font-size: 1.5rem; font-stretch: 75%; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.wordmark span { color: var(--orange); }

.site-head { border-bottom: 2px solid var(--ink); }
.site-head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; padding-block: .5rem; }
.site-head nav { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 1.8rem); font-size: 1rem; font-weight: 600; }
.site-head nav a { text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-head .nav-cta { padding: .35rem .8rem; border: 2px solid var(--ink); border-radius: 6px; }

.site-foot { padding-block: 2.5rem; background: var(--paper); border-top: 2px solid var(--ink); }
.site-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 1rem; }
.site-foot-note { margin-left: auto; color: var(--ink-soft); font: 400 .8rem var(--mono); }

.button {
  display: inline-block;
  padding: .75rem 1.3rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.05rem;
  font-stretch: 88%;
  font-weight: 700;
  text-decoration: none;
  transition: transform .12s ease;
}
.button:hover { transform: translateY(-2px); }
.button--ghost { background: transparent; color: var(--ink); }
.button--paper { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.hero { padding-block: clamp(3rem, 7vw, 6rem); }
.hero--product { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-paper { position: relative; min-height: 26rem; }
.sheet, .receipt { position: absolute; background: var(--card); font-family: var(--mono); box-shadow: 0 22px 40px -24px rgb(23 20 15 / .55), 0 1px 2px rgb(23 20 15 / .18); }
.sheet { top: 0; left: 0; width: min(100%, 25rem); padding: 1.1rem; font-size: .78rem; rotate: -1.6deg; }
.sheet-head { margin-bottom: .6rem; font-weight: 600; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet th, .sheet td { height: 2.5rem; padding: 0; border: 1px solid var(--line); text-align: center; font-weight: 400; }
.sheet th { font-weight: 600; }
.sheet-off { background: var(--off-red); }
.sheet-std { background: var(--off-yellow); }
.receipt {
  right: 0;
  bottom: 0;
  width: min(80%, 18.5rem);
  padding: 1.25rem 1.2rem 1.9rem;
  font-size: .8rem;
  rotate: 1.8deg;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 94% 100%, 88% calc(100% - 8px), 82% 100%, 76% calc(100% - 8px), 70% 100%, 64% calc(100% - 8px), 58% 100%, 52% calc(100% - 8px), 46% 100%, 40% calc(100% - 8px), 34% 100%, 28% calc(100% - 8px), 22% 100%, 16% calc(100% - 8px), 10% 100%, 4% calc(100% - 8px), 0 100%);
}
.receipt-head { font-weight: 600; text-align: center; }
.receipt-sub { margin-bottom: .8rem; color: var(--ink-soft); text-align: center; }
.receipt dl { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding-block: .6rem; border-block: 1px dashed var(--ink); }
.receipt-tag { padding-left: .8rem; color: var(--ink-soft); }
.receipt-total { display: flex; justify-content: space-between; margin-top: .7rem; font-size: 1.05rem; font-weight: 600; }

.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band--pos { background: var(--teal); color: var(--paper); }
.band--pos .eyebrow { color: #f2a97d; }
.band--sched { background: var(--lilac); }
.band--sched .eyebrow { color: var(--purple); }
.band--tint { background: var(--tint); }
.band--ink { background: var(--ink); color: var(--paper); }
.demo-band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.demo-intro { display: grid; grid-template-columns: auto minmax(0, 36rem); gap: 1rem 3rem; align-items: end; justify-content: space-between; margin-bottom: 1.75rem; }
.demo-intro h2 { margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split .button { margin-top: 1.75rem; }
.ticks { display: grid; gap: .55rem; margin-top: 1.25rem; }
.ticks li { padding-left: 1.5rem; background: linear-gradient(currentcolor, currentcolor) 0 .8em / .85rem 2px no-repeat; }

.shot img { width: 100%; border-radius: var(--radius); box-shadow: 0 0 0 1px rgb(23 20 15 / .16), 0 26px 44px -28px rgb(23 20 15 / .7); }
.shot figcaption { margin-top: .7rem; font: 400 .8rem/1.4 var(--mono); opacity: .8; }

.chain { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-top: 1.5rem; font-weight: 700; }
.chain li { position: relative; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.chain li:nth-child(1) { border-color: #14532d; background: #14532d; color: #fff; }
.chain li:nth-child(2) { border-color: #fde68a; background: #fde68a; }
.chain li + li::before { content: '›'; position: absolute; left: -1.05rem; color: var(--ink-soft); }

.principles, .features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 3vw, 2.75rem); }
.principles li, .feature { padding-top: 1rem; border-top: 2px solid var(--ink); }
.principles h3, .feature h3 { margin-bottom: .45rem; font-size: 1.3rem; font-stretch: 85%; }
.principles p, .feature p { color: var(--ink-soft); font-size: 1.02rem; }
.status { display: inline-block; margin-top: .75rem; padding: .15rem .5rem; border-radius: 4px; font: 600 .72rem/1.5 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.status--product { background: #d5ebe8; color: #0a4044; }
.status--pilot { background: var(--off-yellow); color: var(--off-yellow-ink); }
.status--sandbox { background: var(--holiday); color: var(--purple); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-row h2 { margin-bottom: .5rem; }
.cta-row p { max-width: 40rem; opacity: .85; }

/* Shared demo frame */
.demo { position: relative; overflow: hidden; border-radius: 12px; background: var(--card); box-shadow: 0 26px 50px -30px rgb(0 0 0 / .75); color: var(--ink); font-size: .95rem; line-height: 1.35; }
.demo button { touch-action: manipulation; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .7rem .85rem; background: #ece9e1; border-bottom: 1px solid var(--line); }
.demo-note { flex: 1 1 16rem; min-height: 1.3em; color: var(--ink-soft); font-size: .9rem; }
.segmented { display: inline-flex; padding: 3px; border-radius: 7px; background: #d9d4c7; }
.segmented button { min-height: 40px; padding: 0 .9rem; border: 0; border-radius: 5px; background: transparent; font-weight: 600; }
.segmented button[aria-pressed='true'] { background: var(--teal); color: #fff; }
.button-quiet { min-height: 40px; padding: 0 .8rem; border: 1px solid #a9a698; border-radius: 6px; background: #fff; font-size: .9rem; }
.button-quiet:disabled, .button-save:disabled { cursor: default; opacity: .45; }
.button-save { min-height: 40px; padding: 0 .9rem; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font-size: .9rem; font-weight: 600; }

/* WAT POS demo */
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); min-height: 34rem; }
.reg-cart, .reg-menu { display: flex; flex-direction: column; gap: .7rem; min-width: 0; padding: .9rem; }
.reg-cart { border-right: 1px solid var(--line); }
.reg-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 2.5rem; }
.reg-head h3 { font-size: 1.1rem; }
.attention { padding: .3rem .6rem; border-radius: 5px; background: #fde9b8; color: #6b4e00; font-size: .85rem; white-space: nowrap; }
.scan { display: flex; gap: .4rem; }
.scan input { flex: 1; min-width: 0; min-height: 44px; padding: 0 .65rem; border: 2px solid #7fb2c4; border-radius: 6px; background: #fff; font-family: var(--mono); font-size: .9rem; }
.scan button { min-height: 44px; padding: 0 .9rem; border: 1px solid #a9a698; border-radius: 6px; background: #fff; }
.scan-hint { color: var(--ink-soft); font-size: .8rem; }
.scan-hint code { font-family: var(--mono); font-size: .95em; }
.cart-empty { padding-block: 2rem; color: var(--ink-soft); text-align: center; }
.lines { display: grid; align-content: start; flex: 1; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 2rem; gap: .2rem .5rem; align-items: center; padding-block: .55rem; border-bottom: 1px solid var(--line); }
.line-main { display: grid; gap: .1rem; min-width: 0; }
.line-main strong { font-weight: 600; }
.line small { color: var(--ink-soft); font-size: .8rem; }
.line-qty { color: var(--ink-soft); font: 400 .82rem var(--mono); }
.line-amount { font: 600 .9rem var(--mono); }
.line-remove { width: 2rem; height: 2rem; border: 1px solid #c8c3b5; border-radius: 5px; background: #fff; line-height: 1; }
.line-resume { padding: 0; border: 0; background: none; color: var(--off-yellow-ink); font-weight: 600; text-align: left; text-decoration: underline; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .7rem; border-top: 3px solid #cfd4d6; }
.total strong { font: 600 1.85rem var(--mono); letter-spacing: -.03em; }
.tax-note { color: var(--ink-soft); font-size: .78rem; }
.menu-body { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .5rem; align-items: start; }
.rail { display: grid; gap: .4rem; }
.rail-tab { min-height: 48px; padding: .25rem .6rem; border: 1px solid transparent; border-radius: 6px; font-weight: 600; text-align: left; }
.rail-tab[aria-current] { box-shadow: inset 6px 0 0 var(--teal-bright), 0 0 0 2px var(--ink); }
.rail-tab--linked { opacity: .8; font-style: italic; }
.menu-grid-col { display: grid; gap: .5rem; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.crumbs button { min-height: 44px; padding: 0 .7rem; border: 1px solid #a9a698; border-radius: 6px; background: #fff; }
.crumbs span { font-size: .9rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.tile, .tile-slot, .tile-hole { min-height: 6rem; border-radius: 6px; }
.tile { display: grid; align-content: center; justify-items: center; gap: .2rem; padding: .5rem; border: 1px solid #b9b5a8; background: #fff; text-align: center; }
.tile strong { font-weight: 700; line-height: 1.2; }
.tile small { font-size: .82rem; }
.tile:hover { filter: brightness(.96); }
.tile-slot { border: 1px dashed #a9a698; background: #f4f2ec; color: #6b675c; font-size: 1.3rem; }
.tile[aria-pressed='true'], .tile-slot.is-over, .tile.is-over, .trash.is-over { outline: 3px solid #1769aa; outline-offset: -3px; }
.tile--green { border-color: #14532d; background: #14532d; color: #fff; }
.tile--blue { border-color: #1e3a8a; background: #1e3a8a; color: #fff; }
.tile--rust { border-color: #7c2d12; background: #7c2d12; color: #fff; }
.tile--yellow { border-color: #e7cf6f; background: #fde68a; color: #000; }
.tile--peach { border-color: #eebc8a; background: #fed7aa; color: #000; }
.tile--pink { border-color: #efb4bc; background: #fecdd3; color: #000; }
.tile--sky { border-color: #a0c2ec; background: #bfdbfe; color: #000; }
.choice-path { color: var(--ink-soft); font-size: .9rem; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.choice { display: grid; gap: .15rem; min-height: 5rem; padding: .7rem .9rem; border: 1px solid #a9a698; border-radius: 6px; background: #fff; text-align: left; }
.choice:hover { background: #e7f1f0; }
.choice small { color: var(--ink-soft); }
.reg-menu > .button-quiet { align-self: flex-start; }
.reg-cart > .button-quiet { align-self: stretch; }
.edit-actions { display: flex; gap: .4rem; }
.catalog { display: grid; flex: 1; gap: .3rem; align-content: start; max-height: 24rem; overflow-y: auto; overscroll-behavior: contain; }
.catalog-row { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .35rem .5rem .35rem .25rem; border: 1px solid #c8c3b5; border-radius: 6px; background: #fff; text-align: left; }
.catalog-row[aria-pressed='true'] { outline: 3px solid #1769aa; outline-offset: -3px; }
.catalog-row strong { display: block; font-weight: 600; }
.catalog-row small { color: var(--ink-soft); font-size: .78rem; }
.drag-handle { flex: none; width: 1.9rem; height: 2.4rem; background: radial-gradient(circle, #3b3730 1.7px, transparent 2px) center / .55rem .55rem; touch-action: none; cursor: grab; }
.trash { display: grid; gap: .1rem; padding: .7rem; border: 2px dashed #b4645c; border-radius: 6px; background: #fdf1ee; color: #842029; }
.trash small { font-size: .78rem; }
.drag-ghost { position: fixed; top: 0; left: 0; z-index: 30; max-width: 13rem; padding: .55rem .8rem; border-radius: 6px; background: var(--teal); box-shadow: 0 10px 22px rgb(0 0 0 / .3); color: #fff; font-weight: 600; pointer-events: none; }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; }
[data-drag] { cursor: grab; }

/* Simple Scheduler demo */
.sched { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; }
.sched-weeks { display: grid; gap: 1.1rem; min-width: 0; padding: 1rem; }
.week h3 { margin-bottom: .45rem; font-size: 1rem; }
.week h3 span { margin-left: .35rem; color: var(--ink-soft); font-weight: 400; }
.week-scroll { overflow-x: auto; }
.week table { width: 100%; min-width: 38rem; border-collapse: collapse; table-layout: fixed; font-size: .85rem; }
.week th, .week td { height: 2.65rem; padding: 0; border: 1px solid #d7d3c9; text-align: center; }
.week thead th:first-child, .week tbody th, .week tfoot th { width: 5.2rem; padding-inline: .5rem; background: #f5f2ea; font-weight: 600; text-align: left; }
.day { font-weight: 600; }
.day button { display: grid; align-content: center; width: 100%; height: 100%; min-height: 3rem; padding: .2rem; border: 0; background: none; font-weight: 600; }
.day button span { color: var(--ink-soft); font-weight: 400; }
.day em { color: var(--purple); font-size: .68rem; font-style: normal; font-weight: 700; line-height: 1.1; }
.day--holiday { background: var(--holiday); }
.cell button { width: 100%; height: 100%; padding: 0 .15rem; border: 0; background: none; font-size: .8rem; }
.cell button:hover { outline: 2px solid #0b5cad; outline-offset: -2px; }
.cell--requested { background: var(--off-red); }
.cell--requested button { color: var(--off-red-ink); font-size: .72rem; font-weight: 600; }
.cell--standing { background: var(--off-yellow); }
.cell--standing button { color: var(--off-yellow-ink); font-size: .72rem; font-weight: 600; }
.week tfoot td, .week tfoot th { height: 2rem; background: #f5f2ea; color: var(--ink-soft); font-family: var(--mono); font-size: .8rem; }
.sched-side { display: flex; flex-direction: column; gap: .8rem; padding: 1rem; background: #f5f2ea; border-left: 1px solid var(--line); }
.sched-side h3 { font: 600 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tools { display: grid; gap: .45rem; }
.tool { display: grid; gap: .1rem; padding: .6rem .7rem; border: 2px solid transparent; border-radius: 7px; text-align: left; }
.tool small { font-size: .78rem; opacity: .85; }
.tool--requested { background: var(--off-red); color: var(--off-red-ink); }
.tool--standing { background: var(--off-yellow); color: var(--off-yellow-ink); }
.tool--holiday { background: var(--holiday); color: var(--purple); }
.tool[aria-pressed='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sched-note { flex: 1; font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
.enquiry, .enquiry-done { padding: clamp(1.25rem, 3vw, 2rem); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); }
.enquiry { display: grid; gap: 1rem; }
.enquiry label { display: grid; gap: .3rem; font-size: 1rem; font-weight: 600; }
.enquiry input, .enquiry select, .enquiry textarea { width: 100%; min-height: 46px; padding: .55rem .7rem; border: 1px solid #8b8473; border-radius: 6px; background: #fff; font-weight: 400; }
.enquiry textarea { resize: vertical; }
.enquiry .button { justify-self: start; cursor: pointer; }
.enquiry .button:disabled { opacity: .6; }
.form-error { padding: .6rem .8rem; border-radius: 6px; background: var(--off-red); color: var(--off-red-ink); }
.form-note { color: var(--ink-soft); font-size: .88rem; }

@media (max-width: 1040px) {
  .reg-grid { grid-template-columns: minmax(0, 1fr); }
  .reg-cart { order: 2; border-top: 1px solid var(--line); border-right: 0; }
  .sched { grid-template-columns: minmax(0, 1fr); }
  .sched-side { order: -1; border-bottom: 1px solid var(--line); border-left: 0; }
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog { max-height: 16rem; }
}
@media (max-width: 860px) {
  .hero-grid, .split, .split--flip, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
  .demo-intro { grid-template-columns: minmax(0, 1fr); }
  .principles, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-paper { min-height: 25rem; max-width: 30rem; }
}
@media (max-width: 620px) {
  body { font-size: 1.05rem; }
  .wrap { width: calc(100% - 2rem); }
  .principles, .features { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile-slot, .tile-hole { min-height: 4.75rem; }
  .menu-body { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reg-grid { min-height: 0; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .site-foot-note { margin-left: 0; }
  .choices { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
