:root {
  --purple-1000: #110520;
  --purple-950: #22093f;
  --purple-900: #34115b;
  --purple-800: #5f259f;
  --purple-700: #7a32ca;
  --purple-400: #b280ff;
  --purple-200: #d7c7f7;
  --purple-100: #e9e2fb;
  --purple-50: #f5f2fd;
  --white: #ffffff;
  --muted: #5b5366;
  --chat-background: #f5f2fd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--purple-1000);
  font-family: Jost, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--purple-400);
  outline-offset: 2px;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.hero {
  background: linear-gradient(125deg, var(--purple-950), var(--purple-800) 62%, var(--purple-700));
  color: var(--white);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 24px;
}

.wordmark {
  color: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.demo-tag {
  padding: 1px 12px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  font-size: 0.875rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  gap: 64px;
  padding-block: 40px 88px;
}

.hero-copy h1 {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
}

.hero-copy p {
  max-width: 30em;
  margin: 24px 0 0;
  font-size: 1.375rem;
  line-height: 1.4;
}

.start-card {
  padding: 32px;
  border-radius: 20px;
  background: var(--white);
  color: var(--purple-1000);
  box-shadow: 0 24px 60px rgb(17 5 32 / 35%);
}

.start-card h2 {
  margin-bottom: 20px;
  font-size: 1.75rem;
}

.start-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.start-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--purple-200);
  border-radius: 10px;
  background: var(--white);
  color: inherit;
  font: inherit;
}

.qr-block {
  margin-top: 24px;
  text-align: center;
}

#qr {
  width: 184px;
  height: 184px;
  margin-inline: auto;
}

#qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

#qr path {
  fill: var(--purple-950);
}

.qr-block p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.button {
  display: block;
  margin-top: 20px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--purple-800);
  color: var(--white);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.button:hover {
  background: var(--purple-900);
}

.ask {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 64px;
  padding-block: 96px;
}

.ask dl {
  margin: 32px 0 0;
}

.ask dl > div {
  padding-block: 18px;
  border-top: 1px solid var(--purple-100);
}

.ask dt {
  font-size: 1.375rem;
  font-weight: 500;
}

.ask dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 28px;
  border-radius: 20px;
  background: var(--chat-background);
}

.bubble {
  max-width: 82%;
  padding: 10px 16px;
  border-radius: 16px;
  line-height: 1.35;
}

.from-shopper {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--purple-800);
  color: var(--white);
}

.from-bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--white);
}

.chat figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

.control {
  padding-block: 88px;
  background: var(--purple-950);
  color: var(--white);
}

.control ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.control li {
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 25%);
  counter-increment: step;
}

.control li::before {
  content: counter(step);
  color: var(--purple-400);
  font-size: 1.375rem;
  font-weight: 500;
}

.control h3 {
  margin-top: 8px;
  font-size: 1.5rem;
}

.control p {
  margin: 8px 0 0;
  color: var(--purple-100);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--purple-800);
}

.policy {
  max-width: 720px;
  padding-block: 8px 72px;
}

.policy h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.policy h2 {
  margin-top: 36px;
  font-size: 1.5rem;
}

.policy p,
.policy li {
  color: var(--purple-1000);
}

.policy a {
  color: var(--purple-800);
}

.policy-header {
  color: var(--purple-950);
}

@media (max-width: 860px) {
  .hero-grid,
  .ask,
  .control ol {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
    padding-block: 16px 48px;
  }

  .start-card {
    padding: 24px;
  }

  .ask,
  .control {
    padding-block: 56px;
  }

  .ask {
    gap: 40px;
  }

  .control ol {
    gap: 28px;
  }
}

/* A QR code can't be scanned by the phone that's showing it. */
@media (max-width: 640px), (pointer: coarse) {
  .qr-block {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
