/*
 * Zogu marketing site. One stylesheet, no framework.
 * Palette: near-black ink bands (hero, feature bands, CTA, footer) lit by the brand's
 * orange-to-magenta gradient (the owner app's Ember stops), and crisp cool neutrals for the
 * reading sections. Every text/background pair meets WCAG AA in both schemes;
 * site/build/contrast.test.ts checks the tokens below.
 * Type: Figtree (display and text) and IBM Plex Mono (tickets, labels), self-hosted from
 * /fonts/ (latin subsets, SIL OFL 1.1) so no request leaves the site.
 */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/figtree-v9-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/figtree-v9-latin-italic.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-v20-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-v20-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  /* Reading surfaces: cool neutrals, no warm greys. */
  --bg: #f6f7fb;
  --bg-2: #eceff7;
  --bg-3: #dfe3ef;
  --card: #ffffff;
  --ink: #0b0d1a;
  --ink-2: #474f68;
  --line: #d9deeb;
  --brand-ink: #be123c;
  --focus: #0b0d1a;
  --good: #15803d;
  --on-good: #ffffff;
  --danger: #be123c;
  --mark: #fde2e8;
  /* Ink bands: the same in both schemes. */
  --night: #0a0b14;
  --night-2: #11132a;
  --night-3: #1b1e3a;
  --night-line: rgb(255 255 255 / 11%);
  --on-night: #eef0fb;
  --on-night-2: #a9afc9;
  --night-accent: #ff9a62;
  --night-good: #3dd68c;
  --night-focus: #fdba74;
  /* The brand gradient: bright stops for glows and rims, deep stops under white labels. */
  --ember-1: #f97316;
  --ember-2: #e11d48;
  --ember-3: #8b5cf6;
  --ember-deep-1: #c2410c;
  --ember-deep-2: #be123c;
  --on-ember: #ffffff;
  --grad: linear-gradient(135deg, var(--ember-1), var(--ember-2));
  --grad-deep: linear-gradient(135deg, var(--ember-deep-1), var(--ember-deep-2));
  --grad-text: linear-gradient(90deg, #fb923c, #f43f5e 55%, #c084fc);
  --shadow: 0 1px 2px rgb(11 13 26 / 6%), 0 18px 40px -18px rgb(11 13 26 / 30%);
  --shadow-glow: 0 30px 80px -30px rgb(225 29 72 / 55%), 0 10px 40px -20px rgb(249 115 22 / 45%);
  --radius: 16px;
  --font-display: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b14;
    --bg-2: #10121f;
    --bg-3: #191c2e;
    --card: #12142a;
    --ink: #eef0fb;
    --ink-2: #a9afc9;
    --line: #262a42;
    --brand-ink: #ff8a5c;
    --focus: #fdba74;
    --good: #3dd68c;
    --on-good: #04170d;
    --danger: #ff6b81;
    --mark: #3a1830;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 20px 48px -20px rgb(0 0 0 / 80%);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg,
video {
  max-width: 100%;
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

.icon {
  flex: none;
}

[hidden] {
  display: none !important;
}

/* The ink bands: everything inside them reads light on near-black. */
.hero,
.article-head,
.band-app,
.cta,
.site-foot,
.site-head,
.notice {
  --focus: var(--night-focus);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad-deep);
  color: var(--on-ember);
  font: 700 1rem/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px -12px rgb(225 29 72 / 70%);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 36px -12px rgb(225 29 72 / 80%);
  }

  .btn:hover .icon {
    translate: 3px 0;
  }
}

.btn .icon {
  transition: translate 0.18s ease;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.btn-small {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
}

.btn-ghost {
  background: rgb(255 255 255 / 6%);
  color: var(--on-night);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 30%);
}

@media (hover: hover) {
  .btn-ghost:hover {
    background: rgb(255 255 255 / 12%);
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 55%);
  }
}

.btn-on-dark {
  background: var(--on-night);
  color: var(--night);
  box-shadow: 0 12px 30px -14px rgb(255 255 255 / 40%);
}

/* ---------- Notice and header ---------- */

.notice {
  margin: 0;
  padding: 0.45rem 1rem;
  background: var(--night);
  color: var(--on-night-2);
  border-bottom: 1px solid var(--night-line);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.notice a {
  color: var(--on-night);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--night) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--night-line);
  color: var(--on-night);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--on-night);
  text-decoration: none;
}

/* The console's wordmark: plain "Zogu", bold, slightly tight, beside the mark. */
.brand-name {
  font: 700 1.25rem/1 var(--font-display);
  letter-spacing: -0.01em;
}

.logo {
  display: block;
  flex: none;
}

.nav {
  margin-right: auto;
}

.nav ul,
.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a,
.nav summary {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--on-night);
  font-weight: 600;
  font-size: 0.9688rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nav a:hover,
.nav summary:hover,
.nav a[aria-current="page"] {
  background: rgb(255 255 255 / 9%);
}

.drop {
  position: relative;
}

.drop summary {
  list-style: none;
}

.drop summary::-webkit-details-marker {
  display: none;
}

.drop summary::after {
  content: "";
  display: inline-block;
  margin-left: 0.4em;
  width: 0.42em;
  height: 0.42em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
}

.drop[open] summary::after {
  transform: translateY(0.05em) rotate(-135deg);
}

.drop ul {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 17rem;
  padding: 0.5rem;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 80%);
}

.drop li a {
  font-weight: 500;
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.region {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
}

.region a {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: var(--on-night-2);
  font: 600 0.8125rem/1.4 var(--font-mono);
  text-decoration: none;
}

.region a[aria-current="true"] {
  background: var(--on-night);
  color: var(--night);
}

.nav-mobile {
  display: none;
}

.nav-mobile summary {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--night-line);
  list-style: none;
  cursor: pointer;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-panel {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  left: clamp(1rem, 4vw, 2.5rem);
  top: calc(100% + 0.25rem);
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem);
  overflow: auto;
  padding: 0.75rem;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 80%);
}

.nav-panel a,
.nav-panel summary {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--on-night);
  font-weight: 600;
  text-decoration: none;
}

.nav-panel .drop ul {
  position: static;
  box-shadow: none;
  border: 0;
  min-width: 0;
  padding: 0 0 0 0.75rem;
  background: transparent;
}

@media (max-width: 68rem) {
  .nav {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .head-tools .btn-small {
    display: none;
  }
}

/* ---------- Eyebrows, crumbs, leads ---------- */

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--brand-ink);
  font: 600 0.8125rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.article-head .eyebrow,
.band-app .eyebrow {
  color: var(--night-accent);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%);
}

.eyebrow-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--ember-1);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--on-night-2);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--on-night-2);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--on-night-2);
}

.lead {
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
  line-height: 1.55;
}

.intro p {
  max-width: 60ch;
  color: var(--on-night-2);
}

.intro p.lead {
  color: var(--on-night);
}

.intro a {
  color: var(--night-accent);
}

mark.placeholder {
  padding: 0 0.2em;
  border-radius: 4px;
  background: var(--mark);
  color: var(--ink);
  outline: 1px dashed var(--brand-ink);
}

/* ---------- Ink bands: glows and a faint grid ---------- */

.hero,
.article-head,
.band-app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
}

.hero::before,
.article-head::before,
.band-app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42rem 26rem at 88% 0%, rgb(225 29 72 / 30%), transparent 65%),
    radial-gradient(36rem 24rem at 8% 100%, rgb(99 102 241 / 24%), transparent 65%),
    radial-gradient(30rem 20rem at 55% 45%, rgb(139 92 246 / 16%), transparent 70%);
}

.hero::after,
.article-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- Home hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 7vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.4vw + 1rem, 4.75rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 13ch;
}

.h1-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.hero-media {
  margin: 0;
}

.hero-media figcaption {
  margin-top: 0.75rem;
  color: var(--on-night-2);
  font-size: 0.8125rem;
  text-align: center;
}

/* Device frames with a soft brand glow behind them. */
.frame {
  position: relative;
  margin: 0;
  border-radius: 18px;
  background: var(--night-2);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 12%),
    var(--shadow-glow);
}

.frame::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(225 29 72 / 38%),
    rgb(139 92 246 / 20%),
    transparent
  );
  filter: blur(30px);
}

.frame .vid {
  display: block;
  width: 100%;
  height: auto;
  background: var(--night-3);
}

.frame-browser {
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.6rem 0.85rem;
  background: var(--night-3);
  color: var(--on-night-2);
  font: 600 0.75rem/1 var(--font-mono);
}

.frame-bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 22%);
}

.frame-bar i:first-child {
  background: var(--ember-1);
}

.frame-bar span {
  margin-left: 0.6rem;
}

.frame-phone {
  width: min(100%, 19rem);
  padding: 0.6rem;
  border-radius: 2.6rem;
  justify-self: center;
}

.frame-phone .vid {
  border-radius: 2.1rem;
}

@media (max-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Bands ---------- */

.band {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.band-head {
  max-width: 44rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.band-head h2,
.app-copy h2 {
  font-size: clamp(1.9rem, 2.4vw + 1rem, 3.1rem);
  font-weight: 850;
}

.band-head p:last-child {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.band-example {
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(225 29 72 / 8%), transparent 70%),
    radial-gradient(40rem 20rem at 0% 100%, rgb(99 102 241 / 8%), transparent 70%), var(--bg-2);
}

.demo-band {
  background: var(--bg);
}

/* The example call and the order it lands in the POS. */
.example {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 0.9fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin: 0;
}

.call {
  padding: 1.1rem;
  border-radius: 24px;
  background: var(--night);
  color: var(--on-night);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 8%),
    var(--shadow-glow);
}

.call-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  color: var(--on-night-2);
  font: 600 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--night-good);
  box-shadow: 0 0 0 4px rgb(61 214 140 / 22%);
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 1rem;
  margin-left: auto;
}

.wave i {
  display: block;
  width: 3px;
  height: 35%;
  border-radius: 2px;
  background: var(--grad);
}

.wave i:nth-child(3n) {
  height: 70%;
}

.wave i:nth-child(4n + 1) {
  height: 100%;
}

.call-log {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.say {
  max-width: 88%;
  padding: 0.55rem 0.85rem 0.6rem;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.say-who {
  display: block;
  margin-bottom: 0.15rem;
  font: 600 0.6875rem/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.say-agent {
  align-self: flex-start;
  background: var(--night-3);
  border-bottom-left-radius: 4px;
}

.say-agent .say-who {
  color: var(--night-accent);
}

.say-caller {
  align-self: flex-end;
  background: var(--grad-deep);
  color: var(--on-ember);
  border-bottom-right-radius: 4px;
}

.say-caller .say-who {
  color: var(--on-ember);
  opacity: 0.85;
}

.example-arrow {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: var(--ink-2);
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.example-arrow::before {
  content: "";
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
      center / 1.5rem no-repeat,
    var(--grad-deep);
  box-shadow: 0 10px 30px -10px rgb(225 29 72 / 70%);
}

.pos {
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font: 400 0.875rem/1.5 var(--font-mono);
}

.pos p {
  margin: 0;
}

.pos-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem !important;
}

.pos-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--good);
  color: var(--on-good);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pos-src {
  color: var(--ink-2);
  font-size: 0.75rem;
}

.pos-head {
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
  font: 800 1.15rem/1.3 var(--font-display);
}

.pos-lines {
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
}

.pos-lines li,
.pos-total {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.pos-total {
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  font-weight: 600;
  font-size: 1rem;
}

.pos-note {
  color: var(--ink-2);
  font-size: 0.75rem;
}

.example figcaption {
  grid-column: 1 / -1;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 60rem) {
  .example {
    grid-template-columns: minmax(0, 1fr);
    max-width: 36rem;
    margin-inline: auto;
  }

  .example-arrow::before {
    rotate: 90deg;
  }
}

/* The owner app band. */
.band-app {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ticks {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
}

.ticks li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
  color: var(--on-night);
}

.ticks li::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
      center / 0.75rem no-repeat,
    var(--grad-deep);
  translate: 0 0.15rem;
}

@media (max-width: 48rem) {
  .app-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Article pages ---------- */

.article-head {
  padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3.25rem);
}

.article-head h1 {
  max-width: 22ch;
  font-size: clamp(2.2rem, 3vw + 1.1rem, 3.75rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 56rem) {
  .head-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article-grid {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.article-grid.no-toc {
  grid-template-columns: minmax(0, 1fr);
}

.toc-col {
  position: relative;
}

.toc {
  position: sticky;
  top: 6rem;
  font-size: 0.9063rem;
}

.toc summary {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 0.6rem;
  color: var(--ink-2);
  font: 600 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -2px;
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.toc a:hover {
  color: var(--ink);
}

.toc a[aria-current="location"] {
  border-image: var(--grad) 1;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 67.4375rem) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
  }

  .toc summary {
    margin: 0;
  }

  .toc[open] summary {
    margin-bottom: 0.6rem;
  }
}

.prose {
  max-width: 48rem;
}

.section {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section + .section {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: clamp(1.5rem, 1.3vw + 1.05rem, 2.1rem);
  font-weight: 800;
}

.sec-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding-inline: 0.35rem;
  border-radius: 10px;
  background: var(--grad-deep);
  color: var(--on-ember);
  font: 600 0.8125rem/1 var(--font-mono);
  transform: translateY(-0.15em);
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
  font-weight: 750;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose .section > :last-child,
.qa-a > :last-child {
  margin-bottom: 0;
}

.prose > .section > p,
.prose > .section > ul,
.prose > .section > ol,
.prose > .section > blockquote,
.qa-a > p,
.qa-a > ul,
.qa-a > ol {
  max-width: 68ch;
}

.prose ul {
  padding-left: 0;
  list-style: none;
}

.prose ul > li {
  position: relative;
  padding-left: 1.5rem;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--grad);
}

.prose ol {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose ol > li::marker {
  color: var(--brand-ink);
  font: 600 0.9em var(--font-mono);
}

.prose li > ul,
.prose li > ol {
  margin: 0.4rem 0 0;
}

code {
  padding: 0.08em 0.35em;
  border-radius: 5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font: 0.88em var(--font-mono);
}

strong {
  font-weight: 700;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid;
  border-image: var(--grad) 1;
  font: 600 1.15rem/1.5 var(--font-display);
}

blockquote p {
  margin: 0 0 0.6rem;
}

/* Call transcripts in page copy */
.transcript {
  margin: 1.5rem 0;
  padding: 1.1rem clamp(0.85rem, 2vw, 1.25rem);
  border-radius: 20px;
  background: var(--night);
  color: var(--on-night);
}

.transcript .t-line {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.9rem 0.65rem;
  border-radius: 16px;
  line-height: 1.5;
}

.t-who {
  margin-bottom: 0.15rem;
  font: 600 0.6875rem/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.t-agent {
  background: var(--night-3);
  border-bottom-left-radius: 4px;
}

.t-agent .t-who {
  color: var(--night-accent);
}

.transcript .t-caller {
  margin-left: auto;
  background: var(--grad-deep);
  color: var(--on-ember);
  border-bottom-right-radius: 4px;
}

.t-caller .t-who {
  color: var(--on-ember);
}

.transcript .t-note {
  margin: 0.75rem auto;
  max-width: 34rem;
  color: var(--on-night-2);
  font-size: 0.9375rem;
  text-align: center;
}

.transcript a {
  color: var(--night-accent);
}

.transcript > :last-child {
  margin-bottom: 0;
}

/* Tables */
.table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9688rem;
}

th,
td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--night);
  color: var(--on-night);
  font: 600 0.75rem/1.35 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: var(--bg-2);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Screenshots, and frames where a screenshot hasn't been taken yet */
.shot {
  margin: 1.5rem 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shot-frame {
  display: grid;
  gap: 0.5rem;
  padding: 1.4rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--ink-2);
}

.shot-frame p {
  margin: 0;
}

.shot-label {
  color: var(--brand-ink);
  font: 600 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shot figcaption {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}

/* FAQ */
.qa {
  border-top: 1px solid var(--line);
}

.qa:last-child {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  font: 700 1.1rem/1.4 var(--font-text);
  list-style: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.qa summary:hover {
  color: var(--brand-ink);
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--brand-ink);
  transition: transform 0.2s ease;
}

.qa summary::after {
  transform: rotate(90deg);
}

.qa[open] summary::after {
  transform: rotate(0deg);
}

.qa-a {
  padding-bottom: 1rem;
}

/* ---------- Call to action ---------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
  border-top: 1px solid var(--night-line);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40rem 16rem at 15% 120%, rgb(99 102 241 / 28%), transparent 70%),
    radial-gradient(40rem 16rem at 85% -20%, rgb(225 29 72 / 32%), transparent 70%);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.cta-text {
  margin: 0;
  max-width: 44rem;
  font: 800 clamp(1.4rem, 1.4vw + 1rem, 2rem)/1.25 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-text a {
  color: var(--night-accent);
}

/* ---------- Footer ---------- */

.site-foot {
  padding-block: 3rem 2rem;
  background: var(--night);
  color: var(--on-night-2);
  border-top: 1px solid var(--night-line);
  font-size: 0.9375rem;
}

.foot-intro {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.foot-intro p {
  margin: 0;
}

.foot-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem 1.5rem;
}

.foot-group h2 {
  margin: 0 0 0.7rem;
  color: var(--night-accent);
  font: 600 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-group li {
  margin-bottom: 0.4rem;
}

.foot-group a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--on-night);
  text-decoration: none;
}

.foot-group a:hover,
.foot-group a[aria-current="page"] {
  text-decoration: underline;
}

.foot-small {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--night-line);
  font-size: 0.8125rem;
}

/* ---------- 404 ---------- */

.not-found .wrap {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.not-found h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.5rem);
}

.not-found .lead {
  color: var(--ink-2);
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.nf-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
}

/* ---------- Web demo ---------- */

.demo-section {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.demo-section .demo {
  margin-top: 1.5rem;
}

.demo {
  --demo-gap: 1rem;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.demo-wide {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.demo-wide .demo-section > p {
  max-width: 46rem;
  color: var(--ink-2);
}

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: var(--demo-gap);
}

.demo-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.flag-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--grad);
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.seg {
  display: inline-flex;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}

.seg label {
  position: relative;
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: inherit;
}

.seg span {
  display: block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

.seg input:checked + span {
  background: var(--ink);
  color: var(--bg);
}

.seg input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.seg input:disabled + span {
  opacity: 0.6;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9063rem;
  font-weight: 600;
  cursor: pointer;
}

.switch input {
  appearance: none;
  position: relative;
  width: 2.6rem;
  height: 1.5rem;
  margin: 0;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--ink-2);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.5rem - 6px);
  height: calc(1.5rem - 6px);
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 3px rgb(0 0 0 / 30%);
  transition: transform 0.2s ease;
}

.switch input:checked {
  background: var(--good);
  border-color: var(--good);
}

.switch input:checked::after {
  transform: translateX(1.1rem);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--demo-gap);
  align-items: start;
}

.demo-full .demo-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
}

@media (max-width: 72rem) {
  .demo-full .demo-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .demo-full .menu-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 46rem) {
  .demo-grid,
  .demo-full .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.phone {
  --focus: var(--night-focus);
  display: flex;
  flex-direction: column;
  min-height: 30rem;
  border-radius: 22px;
  background:
    radial-gradient(30rem 14rem at 100% 0%, rgb(225 29 72 / 18%), transparent 70%), var(--night);
  color: var(--on-night);
  overflow: hidden;
}

.phone-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--night-line);
  font: 600 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phone-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--on-night-2);
}

.phone-state::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--on-night-2);
}

[data-state="live"] .phone-state::before,
[data-state="waiting"] .phone-state::before {
  background: var(--night-good);
  box-shadow: 0 0 0 4px rgb(61 214 140 / 22%);
}

[data-state="calling"] .phone-state::before {
  background: var(--night-accent);
}

.phone-store {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  font: 700 0.9375rem/1.2 var(--font-display);
}

.phone-timer {
  color: var(--on-night-2);
  font-variant-numeric: tabular-nums;
}

.phone-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 28rem;
  margin: 0;
  padding: 1rem;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}

.log-hint,
.log-note {
  align-self: center;
  max-width: 30rem;
  color: var(--on-night-2);
  font-size: 0.875rem;
  text-align: center;
}

.log-line {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  padding: 0.55rem 0.85rem 0.6rem;
  border-radius: 16px;
  line-height: 1.45;
}

.log-who {
  margin-bottom: 0.15rem;
  font: 600 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.log-agent {
  align-self: flex-start;
  background: var(--night-3);
  border-bottom-left-radius: 4px;
}

.log-agent .log-who {
  color: var(--night-accent);
}

.log-caller {
  align-self: flex-end;
  background: var(--grad-deep);
  color: var(--on-ember);
  border-bottom-right-radius: 4px;
}

.log-caller .log-who {
  color: var(--on-ember);
}

.log-typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: var(--night-3);
}

.log-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--on-night-2);
}

.demo-error:empty {
  margin: 0;
  padding: 0;
}

.demo-error {
  margin: 0 1rem 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: #3b0f1f;
  color: #ffd6df;
  font-size: 0.9063rem;
}

.demo > noscript .demo-error {
  display: block;
  margin: 1rem 0 0;
}

.demo-error a {
  color: inherit;
}

.phone-form {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 0.75rem;
}

.phone-form input {
  flex: 1;
  min-width: 0;
  min-height: 2.9rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: var(--on-night);
  font: inherit;
  font-size: 1rem;
}

.phone-form input::placeholder {
  color: var(--on-night-2);
}

.phone-form input:disabled,
.phone-form input:read-only {
  opacity: 0.7;
}

.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  box-shadow: inset 0 0 0 1px var(--on-night-2);
  color: var(--on-night);
  cursor: pointer;
}

.icon-btn.send {
  background: var(--grad-deep);
  box-shadow: none;
  color: var(--on-ember);
}

.icon-btn:disabled,
.icon-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.icon-btn[aria-pressed="true"] {
  background: var(--ember-deep-2);
  color: var(--on-ember);
}

.phone-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid var(--night-line);
}

.btn-call {
  background: #15803d;
  color: #ffffff;
  box-shadow: 0 10px 28px -12px rgb(21 128 61 / 80%);
}

.btn-hang {
  background: var(--ember-deep-2);
  color: var(--on-ember);
}

.turns {
  margin-left: auto;
  color: var(--on-night-2);
  font: 600 0.75rem/1.3 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* The order ticket: a crisp white POS slip in both schemes. */
.ticket {
  position: relative;
  padding: 1rem 1.1rem 1.8rem;
  border-radius: 18px;
  background: #ffffff;
  color: #0b0d1a;
  font: 400 0.875rem/1.5 var(--font-mono);
  border: 1px solid #d9deeb;
  box-shadow: var(--shadow);
}

.ticket-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed #9aa1b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.ticket-empty {
  margin: 0;
  color: #474f68;
}

.ticket-meta {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.ticket-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticket-lines li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.tl-opts {
  display: block;
  color: #474f68;
  font-size: 0.8125rem;
}

.tl-price {
  font-variant-numeric: tabular-nums;
}

.ticket-total {
  display: flex;
  justify-content: space-between;
  margin: 0.6rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed #9aa1b8;
  font-weight: 600;
  font-size: 1rem;
}

.ticket-stamp {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #15803d;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* The sample menu */
.menu-panel {
  padding: 1rem;
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.menu-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.menu-meta,
.menu-loading {
  margin: 0 0 0.75rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.menu-cats {
  display: grid;
  gap: 0.4rem;
  max-height: 34rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-cat {
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.menu-cat > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  font: 700 1rem/1.3 var(--font-display);
  cursor: pointer;
}

.count {
  min-width: 1.6rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  font: 600 0.75rem/1.5 var(--font-mono);
  text-align: center;
}

.menu-items {
  margin: 0;
  padding: 0 0.5rem 0.5rem;
  list-style: none;
}

.menu-item > summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.35rem;
  border-top: 1px dashed var(--line);
  font-size: 0.9375rem;
  cursor: pointer;
}

.mi-name {
  font-weight: 600;
}

.mi-price {
  flex: none;
  color: var(--ink-2);
  font: 0.8125rem/1.6 var(--font-mono);
}

.mi-body {
  padding: 0.25rem 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.mi-body p {
  margin: 0 0 0.4rem;
}

.mi-desc {
  color: var(--ink-2);
}

.mi-group {
  margin: 0.45rem 0;
}

.mi-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
}

.mi-group li {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.mi-group li .mi-group {
  margin: 0.4rem 0 0.2rem;
}

.mi-extra {
  color: var(--ink-2);
  font: 0.75rem var(--font-mono);
}

.rule {
  color: var(--ink-2);
  font: 600 0.6875rem/1.3 var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rule-req {
  color: var(--brand-ink);
}

.mi-allergens {
  color: var(--ink-2);
  font-style: italic;
}

.demo-more {
  margin: 0;
  align-self: end;
}

.demo-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.demo-compact .ticket {
  min-height: 12rem;
}

.demo-compact .demo-grid {
  grid-template-areas:
    "phone ticket"
    "phone more";
}

.demo-compact .phone {
  grid-area: phone;
}

.demo-compact .ticket {
  grid-area: ticket;
}

.demo-compact .demo-more {
  grid-area: more;
}

@media (max-width: 46rem) {
  .demo-compact .demo-grid {
    grid-template-areas: "phone" "ticket" "more";
  }

  .phone {
    min-height: 26rem;
  }
}

.demo-small {
  margin: var(--demo-gap) 0 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ---------- Motion (only for people who haven't asked for less) ---------- */

@media (hover: hover) {
  .section,
  .pos,
  .demo {
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .section:hover,
  .pos:hover {
    transform: translateY(-3px);
    box-shadow:
      var(--shadow),
      0 24px 50px -30px rgb(225 29 72 / 45%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
  }

  .hero-media {
    animation: settle 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
  }

  .frame::before {
    animation: breathe 6s ease-in-out infinite alternate;
  }

  .wave i {
    animation: talk 1.1s ease-in-out infinite alternate;
  }

  .wave i:nth-child(odd) {
    animation-delay: -0.4s;
  }

  .wave i:nth-child(3n) {
    animation-delay: -0.75s;
  }

  .log-line {
    animation: rise 0.3s ease both;
  }

  .log-typing i {
    animation: blink 1s ease-in-out infinite;
  }

  .log-typing i:nth-child(3) {
    animation-delay: 0.15s;
  }

  .log-typing i:nth-child(4) {
    animation-delay: 0.3s;
  }

  .icon-btn[aria-pressed="true"] {
    animation: pulse 1.2s ease-in-out infinite;
  }
}

/*
 * Scroll reveal and the example call's playback. Hidden only while scripting runs (site.js
 * shows them), so without JavaScript, or with reduced motion, everything is simply there.
 */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal {
    transition:
      opacity 0.7s ease,
      translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .reveal:not(.is-shown) {
    opacity: 0;
    translate: 0 28px;
  }

  [data-example] .say,
  [data-example] .example-arrow,
  [data-example] .pos {
    opacity: 0;
  }

  [data-example].is-playing .say,
  [data-example].is-playing .example-arrow,
  [data-example].is-playing .pos {
    animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  [data-example].is-playing .say:nth-child(2) {
    animation-delay: 1s;
  }

  [data-example].is-playing .say:nth-child(3) {
    animation-delay: 2.6s;
  }

  [data-example].is-playing .say:nth-child(4) {
    animation-delay: 3.4s;
  }

  [data-example].is-playing .say:nth-child(5) {
    animation-delay: 4.8s;
  }

  [data-example].is-playing .say:nth-child(6) {
    animation-delay: 5.8s;
  }

  [data-example].is-playing .say:nth-child(7) {
    animation-delay: 8s;
  }

  [data-example].is-playing .say:nth-child(8) {
    animation-delay: 8.8s;
  }

  [data-example].is-playing .example-arrow {
    animation-delay: 9.8s;
  }

  [data-example].is-playing .pos {
    animation: land 0.8s cubic-bezier(0.2, 0.9, 0.25, 1.2) 10.3s both;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    translate: 0 24px;
    scale: 0.97;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* Ends visible on purpose: the lines' own style is opacity 0 until they play, so a rise with
   only a "from" would end invisible again. */
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes land {
  from {
    opacity: 0;
    translate: -24px 0;
    scale: 0.92;
  }

  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes breathe {
  to {
    opacity: 0.6;
    scale: 1.08;
  }
}

@keyframes talk {
  to {
    scale: 1 0.35;
  }
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgb(225 29 72 / 25%);
  }
}

/* The trademark line on each POS page. */
.tm-note {
  margin-block: 0;
  padding-block: 1.25rem;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

@media print {
  .site-head,
  .notice,
  .cta,
  .site-foot,
  .demo,
  .toc-col,
  .vid {
    display: none;
  }
}
