:root {
  --orange: #F26B1F;
  --orange-hot: #DD5810;
  --orange-tint: #FDE3D2;
  --orange-wash: #FFF7F1;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --line: #E6E8EC;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --card: #FFFFFF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px rgba(17, 24, 39, .06);
  color-scheme: light;
}

/* Dark: the device's setting, unless the light / dark switch chose (data-theme on <html>, theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --orange-tint: #3a2414;
    --orange-wash: #1f1610;
    --ink: #F3F4F6;
    --ink-2: #D1D5DB;
    --muted: #9CA3AF;
    --line: #2A2F3A;
    --bg: #0E1117;
    --bg-alt: #151922;
    --card: #1A1F2A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --orange-tint: #3a2414;
  --orange-wash: #1f1610;
  --ink: #F3F4F6;
  --ink-2: #D1D5DB;
  --muted: #9CA3AF;
  --line: #2A2F3A;
  --bg: #0E1117;
  --bg-alt: #151922;
  --card: #1A1F2A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.accent { color: var(--orange); }
.eyebrow { color: var(--orange); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .7rem; }
.intro, .lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.lead { font-size: 1.15rem; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
/* The logo: the waiter's hand and bow tie (black, transparent), turned white in dark */
.mark { display: inline-block; flex: none; width: 34px; height: 34px; }
:root[data-theme="dark"] .mark { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark { filter: invert(1); } }
.mark.sm { width: 22px; height: 22px; }
.till-top .mark { filter: invert(1); } /* the till mock-up's bar is dark in both themes */
.brand { letter-spacing: -.02em; color: var(--ink); }
.brand .word span { color: var(--orange); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.05rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.02rem; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hot); }
.btn-outline { border-color: var(--line); background: var(--card); }
.btn-outline:hover { border-color: var(--orange); }
.btn-ghost:hover { color: var(--orange); }
.btn-light { background: #fff; color: #111827; }
.btn-on-dark { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-on-dark:hover { border-color: #fff; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 1.3rem; font-weight: 500; font-size: .95rem; }
.nav-links > a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav-links > a:not(.btn):hover { color: var(--orange); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1000px 420px at 85% 0%, var(--orange-wash), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.3rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; color: var(--muted); font-size: .93rem; }
.ticks li::before { content: "✓"; color: var(--orange); font-weight: 800; margin-right: .4rem; }

/* The till illustration */
.till { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(17, 24, 39, .25); overflow: hidden; font-size: .82rem; }
.till-top { display: flex; align-items: center; gap: .5rem; padding: 10px 14px; background: #111827; color: #fff; flex-wrap: wrap; }
.chip { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #D1D5DB; font-size: .74rem; }
.chip.on { background: var(--orange); color: #fff; }
.till-user { margin-left: auto; color: #9CA3AF; font-size: .74rem; }
.till-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; padding: 14px; background: var(--bg-alt); }
.tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.t { aspect-ratio: 1.15; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-content: center; text-align: center; font-weight: 800; font-size: 1.15rem; }
.t small { display: block; font-weight: 500; font-size: .66rem; color: var(--muted); }
.t.open { border-color: #F5C7A9; background: var(--orange-wash); }
.t.sel { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange) inset; }
.t.res { border-style: dashed; border-color: #93C5FD; }
.t.elsewhere { background: var(--bg-alt); color: var(--muted); }
.order { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.order-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 2px; }
.order-head span, .line.sub { color: var(--muted); }
.line { display: flex; justify-content: space-between; gap: 6px; }
.line.sub { font-size: .72rem; margin-top: -4px; }
.order-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; margin-top: auto; font-size: .95rem; }
.pay { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; }
.pay span { text-align: center; padding: 7px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; }
.pay .go { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Pages for each kind of business */
.hero.sub { padding: 56px 0 64px; }
.hero.sub .lead { max-width: 720px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange); }
.card.more { text-decoration: none; transition: border-color .15s, transform .15s; }
.card.more:hover { border-color: var(--orange); transform: translateY(-2px); }
.card.more h3::after { content: " \2192"; color: var(--orange); }
.card .more-link { display: inline-block; margin-top: .8rem; color: var(--orange); font-weight: 600; text-decoration: none; }
.card .more-link:hover { text-decoration: underline; }
.card .web-links { margin: .8rem 0 0; }
.card .web-links .more-link { display: block; margin-top: .3rem; }

/* Highlights strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 0; }
.strip b { display: block; font-size: 1.35rem; color: var(--orange); }
.strip span { color: var(--muted); font-size: .93rem; }

/* Sections and cards */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2.2rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p, .card li { color: var(--muted); font-size: .96rem; }
.card p { margin: 0; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li + li { margin-top: .35rem; }
.cards.platforms, .cards.four { grid-template-columns: repeat(4, 1fr); }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: .8rem; }
.pill.now { background: #DCFCE7; color: #166534; }
.pill.soon { background: var(--orange-tint); color: var(--orange-hot); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-tint); font-size: 1.3rem; margin-bottom: .9rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .9rem; }
.list li { padding-left: 1.7rem; position: relative; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 12px; height: 12px; border-radius: 4px; background: var(--orange); }
.list b { color: var(--ink); }

/* Works with */
.cards.works { margin-top: 2.2rem; }
.tags { list-style: none; padding: 0 !important; margin: .2rem 0 1rem !important; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { margin: 0 !important; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink-2); font-size: .86rem; font-weight: 600; }

/* Light / dark switch: the moon in light, the sun in dark */
.nav-row { gap: .8rem; }
.nav-row .brand { margin-right: auto; }
.nav-links { order: 1; }
.theme-btn { order: 2; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
.theme-btn:hover { border-color: var(--orange); color: var(--orange); }
.menu-btn { order: 3; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}

/* Download */
.card.download { display: flex; flex-direction: column; }
.card.download .dl { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: auto; padding-top: 1.1rem; }
.card.download .dl .pill { margin: 0; }
.dl-note { color: var(--muted); font-size: .93rem; margin-top: 1.4rem; }
.card.download .web-address { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.try-note { margin: 1.2rem 0 0; padding: .85rem 1.1rem; border-left: 4px solid var(--orange); border-radius: 10px; background: var(--orange-wash); color: var(--ink); font-size: .97rem; max-width: 760px; }
.try-note a { color: var(--orange); }
.try-h { margin: 2.6rem 0 0; font-size: 1.25rem; }
.dl-note a, .steps span a { color: var(--orange); }
.after-cards { margin: 1.4rem 0 0; }
.after-cards .more-link { color: var(--orange); font-weight: 600; text-decoration: none; }
.after-cards .more-link:hover { text-decoration: underline; }

/* Getting started */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: .9rem; }
.steps b { display: block; font-size: 1.08rem; margin-bottom: .35rem; }
.steps span { color: var(--muted); font-size: .96rem; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-wrap .intro a, .faq details a { color: var(--orange); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq details[open] { border-color: var(--orange); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Shift panel */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.panel-head { display: flex; flex-direction: column; margin-bottom: 10px; }
.panel-head span { color: var(--muted); font-size: .9rem; }
.row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row span { color: var(--muted); }
.result { margin-top: 16px; text-align: center; padding: 12px; border-radius: 12px; font-weight: 800; }
.result.ok { background: #DCFCE7; color: #166534; }

/* Call to action */
.cta { padding: 72px 0; }
.cta-box { background: linear-gradient(135deg, #111827, #1F2937); color: #fff; border-radius: 24px; padding: 48px; display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.cta-box p { color: #D1D5DB; max-width: 560px; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--orange); }
.footer p { margin: 0; }

/* Smaller screens */
/* Brochures: the downloads table */
.table-wrap { margin-top: 2.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
/* The live demo: one block per demo business */
.demo-biz { margin-top: 2.8rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.demo-biz:first-of-type { border-top: 0; padding-top: 0; }
.demo-biz h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.demo-biz > p { color: var(--muted); max-width: 720px; }
.demo-biz .dl { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.demo-biz .web-address { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.demo-biz .table-wrap { margin-top: 1.4rem; }
.demo-biz .downloads thead th:last-child { text-align: right; }
.demo-biz .demo-bo { margin-top: 1.1rem; overflow-wrap: anywhere; }
.downloads { width: 100%; border-collapse: collapse; }
.downloads th, .downloads td { padding: 18px 22px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.downloads tbody tr:last-child th, .downloads tbody tr:last-child td { border-bottom: 0; }
.downloads thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-alt); }
.downloads tbody th { font-weight: 700; white-space: nowrap; }
.downloads td { color: var(--muted); }
.downloads td.meta { white-space: nowrap; font-size: .9rem; }
.downloads td:last-child { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .downloads thead { display: none; }
  .downloads tr { display: block; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .downloads tbody tr:last-child { border-bottom: 0; }
  .downloads th, .downloads td { display: block; padding: 0; border: 0; white-space: normal; }
  .downloads td { margin-top: .4rem; }
  .downloads td:last-child { text-align: left; margin-top: .9rem; }
}

@media (max-width: 1000px) {
  .hero-grid, .split, .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .cards, .cards.platforms, .cards.four, .steps { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 36px; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 10px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .section { padding: 60px 0; }
  .cards, .cards.two, .cards.platforms, .cards.four, .steps, .strip-grid { grid-template-columns: 1fr; }
  .till-body { grid-template-columns: 1fr; }
  .cta-box { padding: 28px 22px; }
  .cta-actions, .cta-actions .btn, .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card.more { transition: none; }
  .btn:hover, .card.more:hover { transform: none; }
}

/* Pricing: plan cards */
.card.plan { display: flex; flex-direction: column; }
.card.plan .price { font-size: 2.4rem; font-weight: 800; margin: .6rem 0 0; color: var(--ink); }
.card.plan .price .per { font-size: .95rem; font-weight: 500; color: var(--muted); }
.card.plan .fee { color: var(--ink-2); font-weight: 600; margin: .2rem 0 .8rem; }
.card.plan .plan-list { margin: 0 0 1.2rem; padding-left: 1.1rem; color: var(--ink-2); flex: 1; }
.card.plan .plan-list li { margin: .3rem 0; }
.card.plan .btn { align-self: flex-start; }
