:root {
  --ink: #102321;
  --muted: #60706d;
  --paper: #f1f5f3;
  --white: #ffffff;
  --line: #d4dfdc;
  --teal: #078c83;
  --teal-dark: #05665f;
  --teal-soft: #dff3ef;
  --coral: #dc6656;
  --coral-soft: #f9e6e2;
  --yellow: #f7ca4f;
  --yellow-soft: #fff4ce;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.demo-topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(24px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
}

.demo-brand img {
  border-radius: 7px;
}

.back-link {
  padding: 9px 0;
  border-bottom: 1px solid currentColor;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.demo-experience {
  width: min(calc(100% - 48px), 1120px);
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 90px;
  align-items: center;
  margin: 0 auto;
  padding: 70px 0;
}

.demo-intro {
  max-width: 590px;
}

.demo-eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.demo-intro h1 {
  margin: 0;
  font-size: 58px;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

.demo-intro > p:not(.demo-eyebrow, .demo-disclaimer) {
  max-width: 550px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.run-button {
  min-height: 50px;
  margin-top: 34px;
  padding: 0 24px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  color: var(--white);
  background: var(--teal);
  font-weight: 820;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.run-button:hover,
.run-button:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.run-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.demo-disclaimer {
  margin: 14px 0 0;
  color: #75827f;
  font-size: 12px;
}

.ticket-screen {
  width: 430px;
  min-height: 640px;
  padding: 26px;
  border: 1px solid #c8d5d1;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 70px rgba(14, 49, 45, 0.15);
}

.venue-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.venue-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.venue-row strong,
.venue-row span {
  display: block;
}

.venue-row strong {
  font-size: 15px;
}

.venue-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.venue-row > small {
  padding: 5px 7px;
  border: 1px solid #b7c7c3;
  border-radius: 3px;
  color: var(--teal-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ticket-number {
  padding: 28px 0 22px;
  text-align: center;
}

.ticket-number span,
.ticket-number strong {
  display: block;
}

.ticket-number span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticket-number strong {
  margin-top: 4px;
  font-size: 86px;
  line-height: 1;
}

.ticket-status {
  min-height: 68px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #efd582;
  border-radius: 6px;
  background: var(--yellow-soft);
}

.ticket-status[data-state="preparing"] {
  border-color: #ebb7ae;
  background: var(--coral-soft);
}

.ticket-status[data-state="ready"] {
  border-color: #9bcfc8;
  background: var(--teal-soft);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c89917;
}

[data-state="preparing"] .status-dot {
  background: var(--coral);
}

[data-state="ready"] .status-dot {
  background: var(--teal);
}

.ticket-status strong,
.ticket-status small {
  display: block;
}

.ticket-status strong {
  font-size: 14px;
}

.ticket-status small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.ticket-progress {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ticket-progress li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  color: #87928f;
}

.ticket-progress li > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #c9d4d1;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
}

.ticket-progress strong,
.ticket-progress small {
  display: block;
}

.ticket-progress strong {
  font-size: 12px;
}

.ticket-progress small {
  margin-top: 2px;
  font-size: 10px;
}

.ticket-progress li.is-done,
.ticket-progress li.is-active {
  color: var(--ink);
}

.ticket-progress li.is-done > span {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

.ticket-progress li.is-active > span {
  border-color: var(--coral);
  color: var(--coral);
}

.pickup-message {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
  opacity: 0;
  transition: opacity 220ms ease;
}

.pickup-message.is-visible {
  opacity: 1;
}

.pickup-message span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pickup-message strong {
  font-size: 13px;
}

.ticket-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #71807d;
  font-size: 9px;
  font-weight: 750;
}

.powered-by img {
  border-radius: 4px;
}

.demo-notification {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #c8d5d1;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(9, 35, 32, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.demo-notification.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-notification img {
  border-radius: 7px;
}

.demo-notification strong,
.demo-notification span {
  display: block;
}

.demo-notification strong {
  font-size: 13px;
}

.demo-notification span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .demo-topbar {
    min-height: 64px;
    padding: 10px 16px;
  }

  .demo-brand {
    font-size: 15px;
  }

  .demo-brand img {
    width: 34px;
    height: 34px;
  }

  .back-link {
    font-size: 11px;
  }

  .demo-experience {
    width: min(calc(100% - 32px), 430px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 34px 0 64px;
  }

  .demo-intro {
    order: 2;
  }

  .ticket-screen {
    order: 1;
    width: 100%;
  }

  .demo-intro h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .demo-intro > p:not(.demo-eyebrow, .demo-disclaimer) {
    margin-top: 20px;
    font-size: 15px;
  }

  .run-button {
    width: 100%;
    margin-top: 26px;
  }

  .demo-notification {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 360px) {
  .demo-experience {
    width: calc(100% - 24px);
  }

  .ticket-screen {
    min-height: 610px;
    padding: 20px;
  }

  .ticket-number strong {
    font-size: 76px;
  }

  .demo-intro h1 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
