/* qmen.us — marketing landing page styles.
   Self-contained component CSS for templates/landing.html.
   Relies on brand theme tokens (--color-*, --font-sans, .wm) from output.css,
   which is loaded *before* this file. */

:root {
  /* type scale + radii (mirror the design-system tokens) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-5xl: 3rem;
  --radius-field: 0.25rem;
  --radius-box: 0.5rem;
  --radius-btn: var(--radius-field);
  --radius-card: var(--radius-box);

  /* highlight accent (baked to chili) + warm dark surfaces */
  --brand-accent: var(--color-primary);
  --brand-accent-content: var(--color-primary-content);
  --mole-900: oklch(21% 0.03 33);
  --mole-850: oklch(24% 0.034 33);
  --mole-line: oklch(34% 0.03 33);
  --cream-soft: oklch(96% 0.012 80);

  /* Accent tuned for text (WCAG AA): darker chili on light, lighter warm on Mole. */
  --accent-ink: oklch(46% 0.16 33);
  --accent-on-dark: oklch(80% 0.13 58);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-base-content);
  background: var(--color-base-200);
}

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 28px; }
section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-base-content);
}
.eyebrow .live {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand-accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand-accent) 55%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand-accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px color-mix(in oklab, var(--brand-accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand-accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow .live { animation: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--text-base);
  border-radius: var(--radius-btn); border: 1px solid transparent;
  padding: 0 22px; height: 48px; cursor: pointer; text-decoration: none;
  line-height: 1; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 56px; padding: 0 28px; font-size: var(--text-lg); }
.btn-primary { background: var(--color-primary); color: var(--color-primary-content);
               box-shadow: 0 1px 2px oklch(0% 0 0 / .12); }
.btn-primary:hover { box-shadow: 0 6px 16px color-mix(in oklab, var(--color-primary) 38%, transparent); }
.btn-ghost { background: transparent; color: var(--color-base-content); }
.btn-ghost:hover { background: color-mix(in oklab, var(--color-base-content) 8%, transparent); }
.btn-outline { background: transparent; color: var(--color-base-content);
               border-color: color-mix(in oklab, var(--color-base-content) 22%, transparent); }
.btn-outline:hover { border-color: var(--color-base-content); }
.btn-google svg { width: 19px; height: 19px; }
.on-dark .btn-ghost { color: var(--cream-soft); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.08); }
.on-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.32); }
.on-dark .btn-outline:hover { border-color: #fff; }
.btn-google.on-light { background: #fff; color: oklch(28% 0.052 33); border:1px solid var(--color-base-300); }
.btn-google.on-light:hover { box-shadow: 0 6px 16px oklch(0% 0 0 / .1); }

/* ---------- navbar ---------- */
header.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--color-base-100) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-base-300);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.navlink {
  color: var(--color-base-content); text-decoration: none; font-weight: 600;
  font-size: var(--text-base); opacity: .82;
}
.nav-links a.navlink:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 720px) { .nav-links .navlink, .nav-cta .ghost-hide { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 76px 0 92px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 56px; align-items: center; }
h1.hero-h {
  font-size: clamp(2.6rem, 5.4vw, 3.9rem); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.025em; margin: 20px 0 0;
}
h1.hero-h .hl { color: var(--brand-accent); position: relative; white-space: nowrap; }
/* the highlight and the punctuation after it are one unit: a nowrap span ending at the
   line's edge would otherwise let the period drop to a line of its own */
h1.hero-h .hl-end { white-space: nowrap; }
h1.hero-h .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.04em; height: 0.16em;
  background: color-mix(in oklab, var(--brand-accent) 32%, transparent); z-index: -1; border-radius: 2px;
}
.hero p.sub { font-size: var(--text-xl); line-height: 1.5; margin: 22px 0 0; max-width: 30ch;
              color: color-mix(in oklab, var(--color-base-content) 82%, transparent); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .trust { margin-top: 18px; font-size: var(--text-sm);
               color: color-mix(in oklab, var(--color-base-content) 84%, transparent); }

/* team restaurant-code entry */
.code-entry { margin-top: 44px; display: flex; flex-direction: column; gap: 10px; }
.code-entry .code-label { font-size: var(--text-sm); font-weight: 600;
  color: color-mix(in oklab, var(--color-base-content) 70%, transparent); }
/* input + button joined as one bordered group */
.code-form { display: flex; max-width: 380px; }
.code-form input { flex: 1; height: 48px; padding: 0 14px; font-family: var(--font-sans);
  font-size: var(--text-base); color: var(--color-base-content); background: var(--color-base-100);
  border: 1px solid var(--color-base-300); border-right: none;
  border-radius: var(--radius-field) 0 0 var(--radius-field); outline: none;
  transition: border-color .12s ease, box-shadow .12s ease; }
.code-form input::placeholder { color: color-mix(in oklab, var(--color-base-content) 40%, transparent); }
.code-form input:focus { border-color: var(--color-base-content); }
.code-form .btn { height: 48px; border-radius: 0 var(--radius-field) var(--radius-field) 0; }

/* ---------- product mocks ---------- */
.mock-stage { position: relative; }

/* Hero illustration — transparent PNG/WebP, no frame. Slightly larger than its
   column, bleeding toward the page edge for more presence. */
.hero-art { display: block; width: 112%; max-width: 112%; height: auto; margin-inline-start: auto; }

.monitor {
  position: absolute; right: -10px; top: 8px; width: 100%; max-width: 430px;
  background: var(--mole-900); border-radius: 16px; padding: 14px;
  box-shadow: 0 30px 60px -22px oklch(20% 0.05 33 / .5); border: 1px solid var(--mole-line);
}
.monitor .bar { display:flex; align-items:center; justify-content:space-between;
                padding: 4px 6px 12px; color: rgba(255,255,255,.92); }
.monitor .bar .ttl { font-size: var(--text-lg); font-weight: 800; }
.monitor .bar .meta { font-size: var(--text-xs); color: rgba(255,255,255,.72); }
.ticket { background: var(--mole-850); border-radius: 12px; padding: 16px;
          border: 1px solid var(--mole-line); }
.ticket .thead { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.ticket .thead .mesa { font-size: var(--text-xl); font-weight: 800; color:#fff; }
.ticket .row { display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
               padding: 11px 0; border-top: 1px solid var(--mole-line); color: rgba(255,255,255,.92); }
.ticket .row .q { font-weight: 800; color:#fff; }
.ticket .row .note { font-size: var(--text-xs); color: var(--color-warning); margin-top: 4px; }
.pronto {
  display:flex; align-items:center; justify-content:center; width:100%; margin-top: 14px;
  background: oklch(56% 0.14 155); color:#fff; font-weight: 800; letter-spacing: .04em;
  border:none; border-radius: 10px; height: 52px; font-size: var(--text-lg); cursor:pointer;
}

/* badges (mini) */
.badge {
  display:inline-flex; align-items:center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color:#fff;
  white-space: nowrap; flex-shrink: 0;
}
.badge.info    { background: oklch(56% 0.15 245); }
.badge.primary { background: var(--color-primary); }
.badge.success { background: oklch(56% 0.14 155); }
.badge.warning { background: oklch(68% 0.16 64); }

/* waiter phone (light) floats over the monitor */
.phone {
  position: absolute; left: -8px; bottom: -28px; width: 252px;
  background: var(--color-base-100); border-radius: 30px; padding: 12px;
  box-shadow: 0 32px 64px -20px oklch(28% 0.05 33 / .42); border: 1px solid var(--color-base-300);
}
.phone .screen { background: var(--color-base-200); border-radius: 20px; overflow: hidden; }
.phone .pnav { display:flex; align-items:center; justify-content:space-between;
               background: var(--color-base-100); padding: 12px 14px; border-bottom:1px solid var(--color-base-300); }
.phone .pnav .t { font-weight: 800; font-size: var(--text-base); }
.phone .pnav .s { font-size: 11px; color: color-mix(in oklab, var(--color-base-content) 60%, transparent); }
.phone .plist { padding: 4px 14px; }
.phone .pitem { display:flex; align-items:flex-start; justify-content:space-between; gap:8px;
                padding: 11px 0; border-top:1px solid var(--color-base-300); }
.phone .pitem:first-child { border-top:none; }
.phone .pitem > div { min-width: 0; }   /* text side shrinks; badge keeps its size */
.phone .pitem .nm { font-size: var(--text-sm); font-weight:600; }
.phone .pitem .q { font-weight: 800; }
.phone .pitem .k { font-size: 10px; color: color-mix(in oklab, var(--color-base-content) 55%, transparent); margin-top:3px; }
.phone .send { margin: 6px 14px 14px; height: 44px; border-radius: 8px; border:none; cursor:pointer;
               background: oklch(56% 0.14 155); color:#fff; font-weight:800; width: calc(100% - 28px);
               font-size: var(--text-sm); }

/* ---------- realtime flow band ---------- */
.band-dark { background: var(--mole-900); color: var(--cream-soft); padding: 84px 0; }
.band-dark h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.02em;
                line-height: 1.1; margin: 0; max-width: 18ch; }
.band-dark h2 .hl { color: var(--brand-accent); }
.band-dark .lead { color: rgba(255,255,255,.62); }
.flow { display:flex; align-items:stretch; gap: 0; margin-top: 44px; flex-wrap: wrap; }
.flow .step {
  flex: 1 1 200px; background: var(--mole-850); border:1px solid var(--mole-line);
  border-radius: 14px; padding: 22px; min-width: 0;
}
.flow .arrow { display:flex; align-items:center; justify-content:center; width: 44px; color: var(--brand-accent);
               flex: 0 0 44px; font-size: 26px; }
.flow .step .role { font-size: var(--text-xs); text-transform:uppercase; letter-spacing:.06em; font-weight:700;
                    color: var(--accent-on-dark); }
.flow .step .act { font-size: var(--text-lg); font-weight: 700; margin-top: 8px; color:#fff; }
.flow .step .det { font-size: var(--text-sm); color: rgba(255,255,255,.6); margin-top: 6px; }
@media (max-width: 860px) { .flow .arrow { transform: rotate(90deg); width:100%; flex-basis:100%; height: 34px; } }

/* ---------- four surfaces ---------- */
.surfaces { padding: 92px 0; }
.sec-head { max-width: 60ch; }
.sec-head .eyebrow { color: var(--accent-ink); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing:-.02em;
               line-height:1.1; margin: 14px 0 0; }
.sec-head p { font-size: var(--text-lg); margin: 14px 0 0; max-width: 46ch;
              color: color-mix(in oklab, var(--color-base-content) 72%, transparent); }
.surface-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 980px) { .surface-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .surface-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--color-base-100); border:1px solid var(--color-base-300); border-radius: var(--radius-card);
  padding: 26px 24px; box-shadow: 0 1px 2px oklch(0% 0 0 / .04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px oklch(28% 0.05 33 / .3); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display:flex; align-items:center; justify-content:center;
            margin-bottom: 18px; }
.card .ic svg { width: 24px; height: 24px; stroke-width: 2; }
.card .kicker { font-size: var(--text-xs); text-transform:uppercase; letter-spacing:.06em; font-weight:700;
                color: var(--accent-ink); }
.card h3 { font-size: var(--text-2xl); font-weight: 800; margin: 6px 0 0; }
.card p { font-size: var(--text-sm); line-height:1.5; margin: 10px 0 0;
          color: color-mix(in oklab, var(--color-base-content) 72%, transparent); }
.ic.chili { background: color-mix(in oklab, var(--color-primary) 16%, transparent); color: var(--color-primary); }
.ic.lime  { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: oklch(46% 0.13 135); }
.ic.corn  { background: color-mix(in oklab, var(--color-secondary) 32%, transparent); color: oklch(48% 0.1 80); }
.ic.mole  { background: color-mix(in oklab, var(--color-neutral) 14%, transparent); color: var(--color-neutral); }

/* ---------- how it works ---------- */
.how { padding: 0 0 96px; }
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 48px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 20px; } }
.step-c { padding-top: 26px; border-top: 2px solid var(--color-base-300); }
.step-c .n { font-size: var(--text-sm); font-weight: 800; color: var(--accent-ink); letter-spacing:.06em; }
.step-c h3 { font-size: var(--text-2xl); font-weight: 800; margin: 14px 0 0; }
.step-c p { font-size: var(--text-base); line-height:1.55; margin: 10px 0 0;
            color: color-mix(in oklab, var(--color-base-content) 72%, transparent); }

/* ---------- final cta ---------- */
/* Darkened chili so #fff body text clears WCAG AA (plain chili is ~3.9:1). */
.final { background: color-mix(in oklab, var(--color-primary) 76%, black); color: #fff; padding: 88px 0; text-align:center; }
.final h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing:-.02em; margin:0; line-height:1.08; }
.final p { font-size: var(--text-lg); margin: 16px auto 0; max-width: 44ch; color: rgba(255,255,255,.94); }
.final .cta-row { display:flex; justify-content:center; flex-wrap:wrap; gap: 12px; margin-top: 30px; }

/* ---------- footer ---------- */
footer.ft { background: var(--mole-900); color: rgba(255,255,255,.72); padding: 52px 0 40px; }
.ft-top { display:flex; align-items:flex-start; justify-content:space-between; gap: 32px; flex-wrap: wrap; }
.ft .tag { font-size: var(--text-sm); margin-top: 14px; max-width: 30ch; color: rgba(255,255,255,.68); }
.ft-links { display:flex; gap: 56px; flex-wrap: wrap; }
.ft-col .ft-h { font-size: var(--text-xs); text-transform:uppercase; letter-spacing:.06em; color: rgba(255,255,255,.72);
             margin:0 0 14px; font-weight:700; }
.ft-col a { display:block; color: rgba(255,255,255,.78); text-decoration:none; font-size: var(--text-sm);
            margin-bottom: 10px; }
.ft-col a:hover { color:#fff; }
.site-footer .ft-bot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--mole-line);
          display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
          font-size: var(--text-xs); color: rgba(255,255,255,.72); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .mock-stage { margin-top: 8px; }
  .hero { padding: 56px 0 80px; }
  /* Single column: center the art and don't let it bleed off-screen. */
  .hero-art { width: 100%; max-width: 440px; margin-inline: auto; }
}

/* "near you" suggestion popover (geolocation) */
.nearby-pop { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 16px;
  background: var(--color-base-100); border: 1px solid var(--color-base-300);
  box-shadow: 0 18px 44px -16px oklch(28% 0.05 33 / .5); }
.nearby-pop[hidden] { display: none; }
.nearby-pop .np-text { font-size: var(--text-sm); font-weight: 600; }
.nearby-pop .np-actions { display: inline-flex; align-items: center; gap: 8px; }
.nearby-pop .btn { height: 36px; }

/* ---------- mobile: prevent hero/text/button overflow ---------- */
html, body { overflow-x: hidden; }
.hero-grid > * { min-width: 0; }              /* stop CSS-grid min-content blowout */
.code-form input { min-width: 0; }            /* let the input shrink so input+button fit */
h1.hero-h, .hero p.sub { overflow-wrap: break-word; }
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  h1.hero-h { font-size: clamp(1.8rem, 8.5vw, 2.5rem); }
  h1.hero-h .hl, h1.hero-h .hl-end { white-space: normal; }   /* let "sem bagunça" wrap if needed */
  .hero p.sub { font-size: var(--text-lg); max-width: none; }
  .hero { padding: 40px 0 64px; }
  .code-form { max-width: none; }             /* input+button fill the width */
  .code-form .btn { white-space: nowrap; padding-inline: 14px; }
}

/* ---------- hero: outline button on the light hero ---------- */
.hero .btn-outline svg { flex-shrink: 0; }

/* ---------- numbers strip ---------- */
.stats { background: var(--color-base-100); border-block: 1px solid var(--color-base-300); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-inline-start: 1px solid var(--color-base-300); }
.stat:first-child { border-inline-start: none; padding-inline-start: 0; }
.stat .v { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em;
           line-height: 1; color: var(--accent-ink); }
.stat .l { font-size: var(--text-sm); margin-top: 8px; max-width: 22ch;
           color: color-mix(in oklab, var(--color-base-content) 72%, transparent); }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 14px; }
  .stat:nth-child(odd) { border-inline-start: none; padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--color-base-300); }
}

/* ---------- animated demo (inside the dark band) ---------- */
.demo { margin-top: 44px; background: var(--mole-850); border: 1px solid var(--mole-line);
        border-radius: 20px; padding: 26px; position: relative; }
.demo-stage { display: grid; grid-template-columns: 1fr 1.55fr 1fr; gap: 22px; align-items: stretch; }
.demo.is-video .demo-stage { display: block; aspect-ratio: 16 / 9; }
.demo.is-video .demo-stage iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.demo.is-video .demo-steps, .demo.is-video .demo-pause { display: none; }
.dm-dev { display: flex; flex-direction: column; transition: transform .35s ease, opacity .35s ease; opacity: .55; }
.dm-dev .dm-screen { flex: 1; }
.dm-cap { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
          color: var(--accent-on-dark); margin-bottom: 10px; text-align: center; }
.dm-screen { border-radius: 18px; padding: 14px; min-height: 230px; display: flex; flex-direction: column; gap: 8px; }
.dm-phone .dm-screen { background: var(--cream-soft); color: oklch(26% 0.04 33);
                       border: 6px solid oklch(14% 0.02 33); width: 100%; max-width: 220px; margin-inline: auto; }
.dm-tv .dm-screen { background: oklch(17% 0.02 33); border: 8px solid oklch(12% 0.015 33);
                    border-radius: 12px; min-height: 250px; justify-content: center; }
.dm-top { font-weight: 800; font-size: var(--text-base); }
.dm-sub { font-size: var(--text-xs); opacity: .7; margin-top: -6px; }
.dm-line { font-size: var(--text-sm); padding: 6px 0; border-top: 1px solid oklch(0% 0 0 / .08); }
.dm-tv .dm-line { color: rgba(255,255,255,.9); border-top-color: var(--mole-line); }
.dm-tv .dm-line b { color: #fff; }

.dm-send { margin-top: auto; height: 40px; border-radius: 8px; display: grid; place-items: center;
           font-weight: 800; font-size: var(--text-sm); color: #fff; background: oklch(56% 0.14 155); }
.dm-send > span { grid-area: 1 / 1; transition: opacity .25s ease; }
.dm-send .s-done { opacity: 0; }

.dm-ticket { background: var(--mole-850); border: 2px solid var(--mole-line); border-radius: 10px; padding: 12px;
             opacity: 0; transform: translateX(-24px) scale(.97);
             transition: opacity .45s ease, transform .45s ease, border-color .3s ease; }
.dm-thead { display: flex; justify-content: space-between; align-items: center; color: #fff;
            font-weight: 800; font-size: var(--text-lg); margin-bottom: 4px; }
.dm-badge { font-size: 10px; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px;
            background: oklch(56% 0.15 245); color: #fff; }
.dm-ready { margin-top: 10px; height: 40px; border-radius: 8px; display: grid; place-items: center;
            background: oklch(56% 0.14 155); color: #fff; font-weight: 800; letter-spacing: .05em;
            transition: transform .15s ease, box-shadow .3s ease; }

.dm-status { display: grid; margin-top: 18px; }
.dm-status .st { grid-area: 1 / 1; justify-self: start; padding: 8px 14px; border-radius: 999px;
                 font-weight: 800; font-size: var(--text-sm); color: #fff; opacity: 0;
                 transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.st-wait { background: oklch(70% 0.02 33); }
.st-ordered { background: oklch(56% 0.15 245); }
.st-prep { background: oklch(68% 0.16 64); }
.st-ready { background: oklch(56% 0.14 155); font-size: var(--text-lg) !important; }
.dm-dots { display: flex; gap: 6px; margin-top: auto; }
.dm-dots i { flex: 1; height: 6px; border-radius: 3px; background: oklch(0% 0 0 / .1); transition: background .3s ease; }

/* step 1: the waiter sends */
.demo[data-step="1"] .dm-waiter,
.demo[data-step="2"] .dm-tv, .demo[data-step="3"] .dm-tv,
.demo[data-step="4"] .dm-guest { opacity: 1; transform: translateY(-6px); }
.demo.is-playing[data-step="1"] .dm-send { animation: dm-pulse 1.1s ease-in-out infinite; }
.demo:not([data-step="1"]) .dm-send .s-idle { opacity: 0; }
.demo:not([data-step="1"]) .dm-send .s-done { opacity: 1; }
/* step 2+: the ticket is in the kitchen */
.demo:not([data-step="1"]) .dm-ticket { opacity: 1; transform: none; }
.demo[data-step="3"] .dm-ticket, .demo[data-step="4"] .dm-ticket { border-color: oklch(62% 0.14 155); }
.demo[data-step="3"] .dm-badge, .demo[data-step="4"] .dm-badge { visibility: hidden; }
.demo[data-step="3"] .dm-ready { transform: scale(.96); box-shadow: 0 0 0 6px oklch(62% 0.14 155 / .35); }
.demo[data-step="4"] .dm-ticket { opacity: .35; transform: translateX(24px) scale(.97); }
/* the guest's status follows */
.demo[data-step="1"] .st-wait, .demo[data-step="2"] .st-ordered,
.demo[data-step="3"] .st-prep, .demo[data-step="4"] .st-ready { opacity: 1; transform: none; }
.demo:not([data-step="1"]) .dm-dots i:nth-child(1),
.demo[data-step="3"] .dm-dots i:nth-child(2), .demo[data-step="4"] .dm-dots i:nth-child(-n+3) { background: oklch(56% 0.14 155); }
@keyframes dm-pulse { 0%,100% { box-shadow: 0 0 0 0 oklch(56% 0.14 155 / .5); } 50% { box-shadow: 0 0 0 8px oklch(56% 0.14 155 / 0); } }

.demo-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.demo-steps button { width: 100%; height: 100%; text-align: start; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--mole-line); background: transparent;
  color: rgba(255,255,255,.7); font: 600 var(--text-sm)/1.35 var(--font-sans); cursor: pointer; position: relative; overflow: hidden; }
.demo-steps button .n { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; background: var(--mole-line); color: #fff; }
.demo-steps button[aria-current="step"] { color: #fff; border-color: var(--accent-on-dark); }
.demo-steps button[aria-current="step"] .n { background: var(--brand-accent); }
/* progress of the current step */
.demo-steps button[aria-current="step"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px;
  width: 100%; background: var(--accent-on-dark); transform-origin: left; transform: scaleX(1); }
.demo.is-playing .demo-steps button[aria-current="step"]::after { animation: dm-progress 3.2s linear; }
@keyframes dm-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.demo-ctl { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.demo-pause { background: none; border: none; color: rgba(255,255,255,.72); font: 600 var(--text-sm) var(--font-sans);
  cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.demo-pause:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .dm-dev, .dm-ticket, .dm-status .st, .dm-send > span { transition: none; }
}
@media (max-width: 760px) {
  .demo { padding: 16px; }
  .demo-stage { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dm-tv { grid-column: 1 / -1; order: -1; }
  .dm-screen { min-height: 190px; }
  .dm-tv .dm-screen { min-height: 0; }
  .demo-steps { grid-template-columns: 1fr 1fr; }
}

/* ---------- any kind of business ---------- */
.kinds { padding: 92px 0 0; }
.kind-grid { list-style: none; padding: 0; margin: 44px 0 0; display: grid;
             grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kind-grid li { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius-card);
                background: var(--color-base-100); border: 1px solid var(--color-base-300);
                transition: transform .15s ease, box-shadow .15s ease; }
.kind-grid li:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px oklch(28% 0.05 33 / .3); }
.kind-grid .em { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.kind-grid b { font-size: var(--text-base); font-weight: 800; }
.kind-grid li > span:last-child { font-size: var(--text-sm);
  color: color-mix(in oklab, var(--color-base-content) 70%, transparent); }
@media (max-width: 980px) { .kind-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .kind-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .kind-grid li { padding: 14px; } }

/* ---------- everything included ---------- */
.features { padding: 0 0 92px; }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 40px; }
.feat { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--color-base-300); }
.feat .fi { flex: 0 0 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
            background: color-mix(in oklab, var(--color-primary) 13%, transparent); color: var(--accent-ink); }
.feat .fi svg { width: 22px; height: 22px; }
.feat h3 { font-size: var(--text-lg); font-weight: 800; margin: 0; }
.feat p { font-size: var(--text-sm); line-height: 1.5; margin: 4px 0 0;
          color: color-mix(in oklab, var(--color-base-content) 72%, transparent); }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- free + FAQ ---------- */
.free-faq { padding: 0 0 96px; }
.free-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.free-card { background: var(--mole-900); color: var(--cream-soft); border-radius: 20px; padding: 36px; position: sticky; top: 92px; }
.free-card .eyebrow { color: var(--accent-on-dark); }
.free-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 0; color: #fff; }
.free-card p { color: rgba(255,255,255,.72); line-height: 1.55; margin: 14px 0 0; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: #fff; }
.checks li::before { content: "✓"; flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; background: oklch(56% 0.14 155); color: #fff; }
.faq .eyebrow { color: var(--accent-ink); }
.faq h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 18px; }
.faq details { border-top: 1px solid var(--color-base-300); }
.faq details:last-of-type { border-bottom: 1px solid var(--color-base-300); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700;
               font-size: var(--text-lg); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; line-height: 1.55; color: color-mix(in oklab, var(--color-base-content) 76%, transparent); }
.faq-more { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.faq-more:hover { text-decoration: underline; }
@media (max-width: 880px) {
  .free-grid { grid-template-columns: 1fr; gap: 40px; }
  .free-card { position: static; padding: 26px; }
}
