/* Tablepour's own page (site/index.html). Its own look, not a cafe's: espresso, crema and an ember accent. */
:root {
  color-scheme: light;
  --espresso: #1f1410;
  --roast: #3a2519;
  --crema: #f6efe6;
  --latte: #eadfce;
  --foam: #fffaf3;
  --ink: #241812;
  --muted: #6f5a4b;
  --line: #e2d4c1;
  --ember: #e2643a;
  --ember-dark: #c44f27;
  --sage: #5f8a68;
  --radius: 22px;
  --shadow: 0 24px 60px -30px rgba(31, 20, 16, .45);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M10.5 5.5 15 10l-4.5 4.5'/%3E%3C/svg%3E");
  --display: Fraunces, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--ink);
  font: 400 17px/1.6 Jost, "Century Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.015em; line-height: 1.08; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--ember); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 18ch; }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }

.wrap { width: min(100% - 32px, 1160px); margin: 0 auto; }
.wrap.narrow { width: min(100% - 32px, 760px); }
.eyebrow { margin-bottom: 14px; color: var(--ember-dark); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: #f3a27f; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border: 0; border-radius: 999px; background: var(--ember); color: #fff;
  font: 600 1rem/1 Jost, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(196, 79, 39, .9); transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--ember-dark); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #f3a27f; outline-offset: 3px; }
.btn.small { padding: 11px 18px; font-size: .92rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--crema); }
.btn.wide { width: 100%; }
/* The arrow: drawn, so it matches the text's weight; it steps forward on hover. */
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Top bar ── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 239, 230, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.mark svg { flex: none; border-radius: 9px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 600 1.35rem/1 var(--display); text-decoration: none; letter-spacing: -.02em; }
.top-links { display: flex; gap: 26px; margin-left: auto; }
.top-links a { color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none; }
.top-links a:hover { color: var(--ink); }

/* ── Hero ── */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(226, 100, 58, .18), transparent 62%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 12ch; }
.hero h1 em { display: block; }
.lead { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: 1.15rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(95, 138, 104, .16); color: var(--sage); font-size: .72rem; font-weight: 700; }
.ticks.light { color: #e6d6c6; }
.ticks.light li::before { background: rgba(255, 255, 255, .12); color: #a9d3b2; }

/* The scene: three devices drawn with boxes. */
.scene { position: relative; height: 500px; }
.device { position: absolute; background: var(--espresso); box-shadow: var(--shadow); }
.device .screen { position: absolute; overflow: hidden; background: var(--foam); }
.tablet { top: 0; right: 0; width: 84%; height: 310px; border-radius: 26px; transform: rotate(-2deg); }
.tablet .screen { inset: 14px; border-radius: 14px; padding: 12px; }
.bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: .82rem; }
.bar b { font-family: var(--display); font-size: 1rem; }
.bar span { color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: calc(100% - 30px); }
.col { padding: 8px; border-radius: 10px; background: var(--latte); }
.col h4 { margin: 0 0 8px; color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.ticket { display: grid; gap: 2px; padding: 8px 9px; border-radius: 8px; background: #fff; border-left: 3px solid #c9b49b; font-size: .72rem; line-height: 1.35; color: var(--muted); box-shadow: 0 2px 6px -3px rgba(31, 20, 16, .25); }
.ticket b { color: var(--ink); font-size: .75rem; }
.ticket.fresh { border-left-color: var(--ember); animation: arrive 6s ease-in-out infinite; }
.ticket.done { border-left-color: var(--sage); }
.phone { left: 0; bottom: 0; width: 186px; height: 330px; border-radius: 32px; transform: rotate(4deg); }
.phone .screen { inset: 10px; border-radius: 24px; padding: 22px 14px 14px; }
.line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .8rem; }
.line.muted { color: var(--muted); border-bottom: 0; }
.send { position: absolute; left: 14px; right: 14px; bottom: 16px; padding: 11px; border-radius: 999px; background: var(--ember); color: #fff; font-size: .8rem; font-weight: 600; text-align: center; animation: press 6s ease-in-out infinite; }
.tv { right: 6%; bottom: 22px; width: 190px; height: 112px; border-radius: 12px; transform: rotate(1.5deg); }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 60px; height: 16px; margin-left: -30px; background: var(--roast); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.tv .screen { inset: 8px; border-radius: 6px; display: grid; place-content: center; text-align: center; background: var(--roast); color: var(--crema); }
.tv .screen span { color: #a9d3b2; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.tv .screen b { font: 600 2rem/1 var(--display); animation: glow 6s ease-in-out infinite; }
.flight { position: absolute; left: 140px; bottom: 80px; animation: fly 6s ease-in-out infinite; }
.flight span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ember); color: #fff; font-size: .78rem; font-weight: 600; box-shadow: 0 8px 20px -8px rgba(196, 79, 39, .9); }

@keyframes press { 0%, 8%, 100% { transform: scale(1); } 4% { transform: scale(.94); } }
@keyframes fly {
  0%, 6% { opacity: 0; transform: translate(0, 0) scale(.7); }
  12% { opacity: 1; transform: translate(10px, -40px) scale(1); }
  30% { opacity: 1; transform: translate(60px, -300px) scale(1); }
  36%, 100% { opacity: 0; transform: translate(70px, -320px) scale(.6); }
}
@keyframes arrive { 0%, 32% { opacity: 0; transform: translateY(-8px); } 40%, 100% { opacity: 1; transform: none; } }
@keyframes glow { 0%, 70% { color: var(--crema); } 78% { color: #a9d3b2; } 100% { color: var(--crema); } }

/* ── Sections ── */
section { padding: 96px 0; }
.how { background: var(--foam); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 30px 26px 28px; border-radius: var(--radius); background: var(--crema); border: 1px solid var(--line); }
.steps .num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%; background: var(--espresso); color: var(--crema); font: 600 1.2rem/1 var(--display); }
.steps li:nth-child(2) .num { background: var(--ember); }
.steps li:nth-child(3) .num { background: var(--sage); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.feature { padding: 26px 22px; border-radius: var(--radius); background: var(--foam); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature i { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 14px; background: var(--latte); color: var(--ember-dark); transition: transform .25s ease, background .25s ease; }
.feature h3 { margin-bottom: 8px; font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .96rem; }

/* Our cafes: tiles fanned out around a centred heading, over a faint grid. */
.clients { padding-top: 40px; overflow: hidden; }
.clients-stage { position: relative; height: 640px; }
.clients-stage::before { /* the faint grid, fading out at the edges */
  content: ""; position: absolute; inset: 0 -40px; pointer-events: none;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 132px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 132px 100%;
  opacity: .55; -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 40%, #000, transparent 75%); mask: radial-gradient(ellipse 60% 55% at 50% 40%, #000, transparent 75%);
}
.wall { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.tile {
  position: absolute; width: 10.2%; aspect-ratio: 4 / 5; animation: float 7s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -1.1s);
  transform: translate(var(--px, 0px), var(--py, 0px));
}
.tile a, .tile > span {
  display: flex; flex-direction: column; height: 100%; padding: 8px; border-radius: 18px; text-decoration: none;
  background: var(--foam); border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(31, 20, 16, .5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile a:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow); }
.tile-logo { display: grid; place-items: center; flex: 1; min-height: 0; border-radius: 12px; background: var(--latte); overflow: hidden; }
.tile-logo img { width: 100%; height: 100%; object-fit: contain; transition: scale .4s ease; }
.tile a:hover .tile-logo img, .tile a:hover .tile-logo.monogram { scale: 1.08; }
.tile-logo.monogram { transition: scale .4s ease; }
.tile-logo.monogram { background: var(--tint, var(--roast)); color: var(--crema); font-family: var(--display); font-size: 2.6rem; font-weight: 600; }
.tile-name {
  display: -webkit-box; padding: 7px 2px 1px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-family: var(--display); font-size: .8rem; font-weight: 600; line-height: 1.2; text-align: center;
}
/* "Your cafe?": dashed, an open invitation to the demo request. */
.tile.invite a { align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1.5px dashed #cdb59b; box-shadow: none; color: var(--ember-dark); font-weight: 600; font-size: .9rem; text-align: center; }
.tile.invite b { position: relative; transition: rotate .4s ease; }
.tile.invite b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ember); opacity: 0; animation: ring 2.6s ease-out infinite; }
.tile.invite a:hover b { rotate: 90deg; background: var(--ember); color: #fff; }
.tile.invite a:hover { border-color: var(--ember); background: rgba(226, 100, 58, .05); }
@keyframes ring { 0% { scale: 1; opacity: .7; } 100% { scale: 1.7; opacity: 0; } }
.tile.invite b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--latte); font-size: 1.5rem; font-weight: 500; }
.tile.ghost > span { background: rgba(255, 250, 243, .5); border-color: rgba(226, 212, 193, .7); box-shadow: none; }
@keyframes float { 50% { translate: 0 -8px; } }

/* Coming in (site.js adds .live when the section is reached): the tiles fly out from behind the heading to their
   places one after another, then the heading rises in. After that (.settled) they drift a little with the pointer. */
.js .clients .tile { opacity: 0; transform: translate(var(--fx, 0px), var(--fy, 40px)) scale(.55) rotate(var(--fr, 0deg)); }
.js .clients.live .tile {
  opacity: 1; transform: translate(var(--px, 0px), var(--py, 0px));
  transition: opacity .6s ease calc(var(--order, 0) * 90ms), transform 1.3s cubic-bezier(.2, .9, .25, 1.15) calc(var(--order, 0) * 90ms);
}
.js .clients.live.settled .tile { transition: opacity .5s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .clients-copy > * { opacity: 0; translate: 0 18px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .2, 1); }
.js .clients.live .clients-copy > * { opacity: 1; translate: 0 0; }
.clients.live .clients-copy > :nth-child(1) { transition-delay: .35s; }
.clients.live .clients-copy > :nth-child(2) { transition-delay: .45s; }
.clients.live .clients-copy > :nth-child(3) { transition-delay: .55s; }
.clients.live .clients-copy > :nth-child(4) { transition-delay: .65s; }
/* A soft light that follows the pointer over the grid. */
.clients-stage::after {
  content: ""; position: absolute; inset: 0 -40px; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(226, 100, 58, .12), transparent 70%);
}
.clients-stage:hover::after { opacity: 1; }

/* The places, kept clear of the heading: higher in the middle, lower out at the sides (slot 1 is the middle). */
.slot-1 { left: 44.9%; top: 96px; }   .slot-2 { left: 33.4%; top: 50px; }   .slot-3 { left: 56.4%; top: 40px; }
.slot-4 { left: 21.9%; top: 120px; }  .slot-5 { left: 67.9%; top: 124px; } .slot-6 { left: 10.9%; top: 40px; }
.slot-7 { left: 78.9%; top: 46px; }   .slot-8 { left: 0;     top: 120px; } .slot-9 { left: 89.8%; top: 112px; }
.slot-10 { left: 10.9%; top: 230px; } .slot-11 { left: 78.9%; top: 236px; } .slot-12 { left: 0; top: 310px; }
.slot-13 { left: 89.8%; top: 302px; }

.clients-copy { position: absolute; left: 50%; top: 330px; width: min(560px, 60%); translate: -50% 0; text-align: center; }
.pill { display: inline-block; margin-bottom: 16px; padding: 5px 14px; border-radius: 99px; background: var(--foam); border: 1px solid var(--line); color: var(--muted); font-size: .84rem; font-weight: 500; }
.clients-copy h2 { max-width: none; font-size: clamp(2rem, 3.8vw, 2.9rem); }
.clients-copy h2 span { display: block; color: #a8968a; font-weight: 500; }
.clients-copy > p:not(.pill) { margin: 18px auto 26px; max-width: 30em; color: var(--muted); }
.btn.dark { background: var(--espresso); }
.btn.dark:hover { background: var(--roast); }

.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checks li { padding: 20px 22px 20px 58px; position: relative; border-radius: 18px; background: var(--foam); border: 1px solid var(--line); color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sage); color: #fff; font-size: .8rem; font-weight: 700; }
.checks b { color: var(--ink); }

.faq { background: var(--foam); border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 30px; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 600 1.15rem/1.3 var(--display); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--latte); font: 500 1.2rem/1 Jost, sans-serif; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 48px 22px 0; color: var(--muted); }

/* ── Demo ── */
.demo { background: radial-gradient(circle at 0% 100%, rgba(226, 100, 58, .3), transparent 45%), var(--espresso); color: var(--crema); }
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.demo-pitch h2 { max-width: 14ch; }
.demo-pitch > p:not(.eyebrow) { margin-top: 18px; color: #d9c8b8; font-size: 1.08rem; max-width: 30em; }
.demo-form, .thanks { padding: 32px; border-radius: 26px; background: var(--foam); color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.demo-form { display: grid; gap: 16px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.demo-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.demo-form label em { color: var(--muted); font-style: normal; font-weight: 400; }
.demo-form input, .demo-form textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color .15s;
}
.demo-form input:focus, .demo-form textarea:focus { border-color: var(--ember); outline: none; }
.demo-form input[aria-invalid="true"] { border-color: #c0392b; }
.demo-form textarea { resize: vertical; min-height: 92px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.problem { padding: 10px 14px; border-radius: 10px; background: #fbe6e1; color: #9c2f1a; font-size: .92rem; }
.fine { color: var(--muted); font-size: .82rem; text-align: center; }
.thanks { text-align: center; padding: 56px 32px; }
.thanks:focus { outline: none; }
.thanks .cup { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; background: var(--latte); }
.thanks h3 { font-size: 1.8rem; margin-bottom: 10px; }
.thanks p { color: var(--muted); }

.foot { padding: 34px 0; background: var(--espresso); color: #cdb9a6; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot .mark { color: var(--crema); font-size: 1.15rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot nav a { color: #cdb9a6; text-decoration: none; font-size: .92rem; }
.foot nav a:hover { color: var(--crema); }
.foot p { font-size: .88rem; }

/* ── Animated drawings ──
   Each loop's resting state is the finished picture: with motion off (or no script) everything simply shows. */
.steam { transform-box: fill-box; transform-origin: bottom; animation: steam 2.8s ease-in-out infinite; }
.steam.s2 { animation-delay: .9s; }
.steam.s3 { animation-delay: 1.8s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(3px) scaleY(.7); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px) scaleY(1.1); } }

/* How it works: a little scene per step. */
.art { display: block; width: 100%; max-width: 260px; height: auto; margin: -6px auto 14px; overflow: visible; }
.art .a-blob { fill: var(--latte); }
.art .a-body { fill: var(--espresso); }
.art .a-screen { fill: var(--foam); }
.art .a-label { fill: #c9b49b; }
.art .a-row, .art .a-col { fill: var(--latte); }
.art .a-send, .art .a-ember { fill: var(--ember); }
.art .a-ticket { fill: #fff; stroke: #e2d4c1; stroke-width: 1; }
.art .a-ticket.a-dim { opacity: .55; }
.art .a-lines { fill: none; stroke: #c9b49b; stroke-width: 2.4; stroke-linecap: round; }
.art .a-ripple { fill: none; stroke: var(--ember); stroke-width: 2; opacity: 0; }
.art .a-tv { fill: var(--roast); }
.art .a-stand { fill: var(--roast); }
.art .a-tv-label { fill: #a9d3b2; font: 600 9px Jost, sans-serif; letter-spacing: .2em; text-anchor: middle; }
.art .a-tv-number { fill: var(--crema); font: 600 25px Fraunces, Georgia, serif; text-anchor: middle; }
.art .a-tick-bg { fill: var(--sage); }
.art .a-pulse { fill: var(--sage); opacity: 0; }
.art .a-tick { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.art * { transform-box: fill-box; transform-origin: center; }

/* 1 · the order fills in, the button is tapped, the ticket flies off to the kitchen */
.art-order .a-row { transform-origin: left; animation: row 4.2s ease-in-out infinite; }
.art-order .r2 { animation-delay: .25s; }
.art-order .r3 { animation-delay: .5s; }
@keyframes row { 0%, 4% { transform: scaleX(0); } 14%, 100% { transform: scaleX(1); } }
.art-order .a-send { animation: tap 4.2s ease-in-out infinite; }
@keyframes tap { 0%, 44%, 54%, 100% { transform: scale(1); } 48% { transform: scale(.9); } }
.art-order .a-ripple { animation: ripple 4.2s ease-out infinite; }
@keyframes ripple { 0%, 46% { opacity: 0; transform: scale(1); } 48% { opacity: .9; } 66%, 100% { opacity: 0; transform: scale(4.5); } }
.art-order .a-fly { animation: fly-out 4.2s ease-in-out infinite; }
@keyframes fly-out {
  0%, 50% { opacity: 0; transform: translate(-46px, 18px) scale(.6) rotate(-8deg); }
  62% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); }
  86% { opacity: 1; transform: translate(10px, -26px) rotate(6deg); }
  100% { opacity: 0; transform: translate(22px, -46px) rotate(10deg); }
}

/* 2 · the ticket moves across the kitchen: new → preparing → ready */
.art-kitchen .a-travel { animation: travel 6s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes travel {
  0%, 22% { transform: translateX(0); }
  33%, 55% { transform: translateX(53px); }
  66%, 92% { transform: translateX(106px); opacity: 1; }
  98% { opacity: 0; transform: translateX(106px); }
  100% { opacity: 0; transform: translateX(0); }
}
.art-kitchen .a-bar { animation: stage 6s step-end infinite; fill: var(--sage); }
@keyframes stage { 0% { fill: var(--ember); } 33% { fill: #d99a2b; } 66% { fill: var(--sage); } }

/* 3 · the number comes up on the board and a tick draws itself */
.art-ready .a-tv-number { animation: number 4.8s ease-in-out infinite; }
@keyframes number { 0%, 8% { opacity: 0; transform: translateY(6px); } 20%, 100% { opacity: 1; transform: none; } }
.art-ready .a-tick { animation: tick 4.8s ease-in-out infinite; }
@keyframes tick { 0%, 25% { stroke-dashoffset: 1; } 42%, 100% { stroke-dashoffset: 0; } }
.art-ready .a-pulse { animation: pulse 4.8s ease-out infinite; }
@keyframes pulse { 0%, 40% { opacity: 0; transform: scale(.7); } 44% { opacity: .35; } 70%, 100% { opacity: 0; transform: scale(1.35); } }

/* Feature icons: drawn line by line as the card comes in; a small lift on hover. */
.feature svg { width: 26px; height: 26px; overflow: visible; }
.feature svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.js .feature.reveal svg path { stroke-dashoffset: 1; }
.js .feature.reveal.in svg path { animation: draw 1s ease forwards; animation-delay: calc(.25s + var(--i) * .16s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.feature:hover i { transform: translateY(-3px) rotate(-6deg); background: #f3dccb; }
.feature:hover svg path[d^="M6 20"], .feature:hover svg path[d^="M11 20"], .feature:hover svg path[d^="M16 20"], .feature:hover svg path[d^="M20 20"] {
  transform-box: fill-box; transform-origin: bottom; animation: grow .6s ease;
}
@keyframes grow { 0% { transform: scaleY(.3); } 100% { transform: scaleY(1); } }

/* The thank-you cup */
.cup svg { width: 62px; height: 62px; overflow: visible; }
.cup .mug { fill: var(--espresso); }
.cup .handle, .cup .saucer { fill: none; stroke: var(--espresso); stroke-width: 4; stroke-linecap: round; }
.cup .steam { fill: none; stroke: var(--ember); stroke-width: 3.5; stroke-linecap: round; }
.thanks:not([hidden]) .cup { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Sections come in as they're scrolled to (site.js adds .in); without the script everything just shows. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Smaller screens ── */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .scene { max-width: 560px; width: 100%; margin: 0 auto; }
  .why-grid, .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
  /* The cafes in rows above the text; the empty tiles go. */
  .clients-stage { height: auto; display: flex; flex-direction: column; gap: 36px; }
  .clients-stage::before, .clients-stage::after { display: none; }
  .wall { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .tile { position: static; width: 120px; animation: none; }
  .tile.ghost { display: none; }
  .wall .tile:nth-child(odd) { translate: 0 10px; }
  .clients-copy { position: static; width: auto; translate: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wall { gap: 20px 10px; }
  .tile { width: calc((100% - 20px) / 3); max-width: 112px; }
  .tile a, .tile > span { padding: 6px; border-radius: 14px; }
  .tile-logo { border-radius: 10px; }
  .tile-logo.monogram { font-size: 2rem; }
  .tile-name { font-size: .74rem; }
  .tile.invite b { width: 32px; height: 32px; font-size: 1.2rem; }
  .tile.invite a { font-size: .8rem; }
  .top-links { display: none; }
  .top-row { justify-content: space-between; }
  section { padding: 68px 0; }
  .hero { padding: 36px 0 64px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .demo-form { padding: 22px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .foot nav { margin-left: 0; }
  .scene { height: 400px; }
  .tablet { width: 88%; height: 230px; }
  .tablet .screen { inset: 10px; padding: 9px; }
  .cols { gap: 5px; }
  .col { padding: 5px; }
  .ticket { padding: 6px; font-size: .62rem; }
  .ticket b { font-size: .64rem; }
  .phone { width: 140px; height: 250px; border-radius: 26px; }
  .phone .screen { padding: 16px 10px 10px; border-radius: 19px; }
  .line { font-size: .7rem; padding: 6px 0; }
  .send { left: 10px; right: 10px; padding: 8px; font-size: .7rem; }
  .tv { width: 140px; height: 86px; right: 2%; }
  .tv .screen b { font-size: 1.5rem; }
  .flight { left: 100px; bottom: 60px; }
}
@media (max-width: 460px) { .grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flight { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .tile { animation: none; }
  .js .clients .tile, .js .clients-copy > * { opacity: 1; transform: none; translate: none; }
  .js .feature.reveal svg path, .art .a-tick { stroke-dashoffset: 0; }
}
