/*
 * 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 {
  --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%);
}

/* ---------- Header ---------- */

.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;
}

/* Header labels stay on one line; the menu collapses before they would need to wrap. */
.nav > ul > li > a,
.nav > ul > li > .drop > summary,
.head-tools .btn {
  white-space: nowrap;
}

.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);
}

/* The owner dashboard's sign-in: a quiet text link beside the demo button. */
.head-login {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--on-night);
  font-weight: 600;
  font-size: 0.9688rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.head-login:hover {
  background: rgb(255 255 255 / 9%);
}

.nav-mobile {
  display: none;
}

/* Only the ☰ button: the dropdown summaries inside the panel keep the panel styles. */
.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;
}

/* Below this the full nav, the country switch, Log in and the demo button no longer fit. */
@media (max-width: 75rem) {
  .nav {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .head-tools .btn-small,
  .head-login {
    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-proof {
  margin: 1rem 0 0;
  color: var(--on-night-2);
  font-size: 0.9375rem;
}

.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-scene {
  overflow: hidden;
}

.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: a phone call ---------- */

.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);
}

/* The two "call this restaurant" cards. */
.dial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
  margin: 0 0 var(--demo-gap);
  padding: 0;
  border: 0;
}

.dial-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  cursor: pointer;
}

.dial-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dc-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--ink);
}

.dc-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.dc-text {
  display: grid;
  gap: 0.1rem;
}

.dc-name {
  font-weight: 700;
}

.dc-where {
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.dial-card:has(input:checked) {
  border-color: var(--brand-ink);
  box-shadow: 0 0 0 2px var(--brand-ink) inset;
}

.dial-card:has(input:checked) .dc-icon {
  background: var(--good);
  color: var(--on-good);
}

.dial-card:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.dial-card:has(input:disabled) {
  cursor: default;
  opacity: 0.6;
}

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

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

@media (max-width: 72rem) {
  .demo-full .demo-grid {
    grid-template-columns: minmax(0, 1fr) 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);
  }
}

/* The handset: a dark screen with the call on it, and the keys below. */
.phone {
  --focus: var(--night-focus);
  --wave-agent: #ff9a62;
  --wave-caller: #3dd68c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100%, 24rem);
  min-height: 34rem;
  margin-inline: auto;
  padding: 1.5rem 1.25rem 1.75rem;
  border: 8px solid #1b1e3a;
  border-radius: 44px;
  background:
    radial-gradient(28rem 16rem at 50% 0%, rgb(225 29 72 / 22%), transparent 70%), var(--night);
  color: var(--on-night);
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.phone-screen {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.phone-status {
  margin: 0;
  color: var(--on-night-2);
  font: 600 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phone-store {
  margin: 0.4rem 0 0;
  font: 800 clamp(1.35rem, 3vw, 1.6rem) / 1.15 var(--font-display);
}

.phone-timer {
  margin: 0;
  color: var(--on-night-2);
  font: 500 1rem/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.phone-timer.near-limit {
  color: var(--night-accent);
}

.phone-wave {
  position: relative;
  width: 100%;
  margin-top: 1.25rem;
}

.phone-wave canvas {
  display: block;
  width: 100%;
  height: 6rem;
}

.phone-who {
  position: absolute;
  top: -0.5rem;
  left: 0;
  color: var(--on-night-2);
  font: 600 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phone-caption {
  min-height: 3.2em;
  margin: 0.75rem 0 0;
  color: var(--on-night);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.phone-caption.from-caller {
  color: var(--night-good);
}

.demo-error:empty {
  display: none;
}

.demo-error {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgb(225 29 72 / 16%);
  color: var(--on-night);
  font-size: 0.9375rem;
}

.demo > noscript .demo-error {
  background: var(--mark);
  color: var(--ink);
}

.demo-error a {
  color: inherit;
}

.phone-keys {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  margin-top: 1.5rem;
}

.key {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  font: inherit;
  cursor: pointer;
}

.key svg {
  width: 1.9rem;
  height: 1.9rem;
}

.key-call,
.key-hang {
  grid-column: 2;
  grid-row: 1;
  width: 4.5rem;
  height: 4.5rem;
  color: #ffffff;
}

.key-call {
  background: var(--good);
}

.key-hang {
  background: var(--danger);
}

.key-cc {
  grid-column: 1;
  grid-row: 1;
  width: 3rem;
  height: 3rem;
  background: var(--night-3);
  color: var(--on-night-2);
  font: 700 0.8125rem/1 var(--font-mono);
}

.key-cc[aria-pressed="true"] {
  background: var(--on-night);
  color: var(--night);
}

.key-blank {
  grid-column: 3;
  grid-row: 1;
  width: 3rem;
  height: 3rem;
}

.key:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.key[hidden] {
  display: none;
}

/* 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: 30rem;
  }
}

.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;
  }

  [data-state="calling"] .key-hang {
    animation: pulse 1.2s ease-in-out infinite;
  }

  [data-state="idle"] .key-call,
  [data-state="ended"] .key-call {
    animation: ring 2.4s 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;
  }
}

/* The green call key rings: a soft halo that grows and fades. */
@keyframes ring {
  0%,
  60% {
    box-shadow: 0 0 0 0 rgb(21 128 61 / 55%);
  }

  100% {
    box-shadow: 0 0 0 18px rgb(21 128 61 / 0%);
  }
}

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

/* ---------- Integration pages ---------- */

.pos-hero {
  padding-block: clamp(2.25rem, 6vw, 5rem) clamp(2.5rem, 6vw, 5rem);
}

.pos-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

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

.pos-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 4vw + 1.2rem, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.pos-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.4rem;
  padding: 0.6rem 1.1rem 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%);
}

.pos-with {
  color: var(--on-night-2);
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pos-logo {
  display: block;
  width: auto;
}

.pos-logo-hero {
  height: 1.7rem;
}

.pos-logo-card {
  height: 2.3rem;
}

.pos-wordmark {
  color: var(--on-night);
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1;
}

.pos-wordmark-hero {
  font-size: 1.4rem;
}

.pos-wordmark-card {
  font-size: 1.9rem;
}

/* The order-flow diagram: a glass panel with the brand glow behind it. */
.flow {
  position: relative;
  margin: 0;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  border-radius: 28px;
  background: linear-gradient(160deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%));
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 12%),
    var(--shadow-glow);
}

.flow::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(225 29 72 / 34%),
    rgb(139 92 246 / 18%),
    transparent
  );
  filter: blur(36px);
}

.flow-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.fl-small {
  fill: #a9afc9;
  font: 600 12px var(--font-text);
}

.fl-label {
  fill: var(--on-night-2);
  font: 600 15px var(--font-mono);
  letter-spacing: 0.12em;
}

.fl-wordmark {
  fill: #ffffff;
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.fl-badge-text {
  fill: #ffffff;
  font: 700 13px var(--font-text);
}

.fl-tk-head {
  fill: #be123c;
  font: 600 13px var(--font-mono);
  letter-spacing: 0.12em;
}

.fl-tk {
  fill: #0b0d1a;
  font: 400 14px var(--font-mono);
}

.fl-tk-total {
  fill: #0b0d1a;
  font: 600 21px var(--font-mono);
}

/* The finished frame: the plane parked as the badge's icon. The loop starts and ends here. */
.fl-plane {
  transform: translate(436px, 136px) rotate(0deg) scale(0.55);
}

@media (prefers-reduced-motion: no-preference) {
  .fl-phone {
    animation: fl-ring 8s ease-in-out infinite;
  }

  .fl-wave {
    animation: fl-wave 8s ease-in-out infinite;
  }

  .fl-wave-2 {
    animation-delay: 0.12s;
  }

  .fl-wave-3 {
    animation-delay: 0.24s;
  }

  .fl-halo {
    animation: fl-listen 8s ease-in-out infinite;
  }

  .fl-mark {
    animation: fl-pop 8s ease-in-out infinite;
  }

  .fl-trail {
    animation: fl-dash 1.2s linear infinite;
  }

  .fl-plane {
    animation: fl-fly 8s linear infinite;
  }

  .fl-badge {
    animation: fl-badge 8s ease-out infinite;
  }

  .fl-ticket {
    animation: fl-print 8s cubic-bezier(0.3, 0.7, 0.3, 1) infinite;
  }
}

/*
 * The 8 s loop, in steps: the finished frame holds (0-8%), the plane and ticket clear
 * (8-13%), the phone rings and Zogu listens (14-40%), the plane flies the curve (40-64%) and
 * parks on the badge (68%), the ticket prints (68-84%) and the finished frame holds again.
 * Every keyframe starts and ends on that finished frame, fully visible.
 */
@keyframes fl-ring {
  0%,
  14%,
  30%,
  100% {
    transform: rotate(0deg);
  }
  16%,
  20%,
  24% {
    transform: rotate(-7deg);
  }
  18%,
  22%,
  26% {
    transform: rotate(7deg);
  }
  28% {
    transform: rotate(-3deg);
  }
}

@keyframes fl-wave {
  0%,
  14%,
  34%,
  100% {
    opacity: 1;
  }
  18%,
  26% {
    opacity: 0.2;
  }
  22%,
  30% {
    opacity: 1;
  }
}

@keyframes fl-listen {
  0%,
  26%,
  42%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  34% {
    opacity: 0.55;
    transform: scale(1.25);
  }
}

@keyframes fl-pop {
  0%,
  28%,
  40%,
  100% {
    transform: scale(1);
  }
  34% {
    transform: scale(1.1);
  }
}

@keyframes fl-dash {
  to {
    stroke-dashoffset: -24;
  }
}

/* The flight points follow the trail's curve (flow.ts TRAIL), eased at both ends. */
@keyframes fl-fly {
  0%,
  8% {
    opacity: 1;
    transform: translate(436px, 136px) rotate(0deg) scale(0.55);
  }
  12% {
    opacity: 0;
    transform: translate(436px, 136px) rotate(0deg) scale(0.3);
  }
  38% {
    opacity: 0;
    transform: translate(262px, 176px) rotate(-73deg) scale(0.6);
  }
  40% {
    opacity: 1;
    transform: translate(262px, 176px) rotate(-73deg) scale(1);
  }
  42% {
    transform: translate(263.6px, 170.9px) rotate(-71.9deg) scale(1);
  }
  44% {
    transform: translate(268.8px, 156.4px) rotate(-68.6deg) scale(1);
  }
  46% {
    transform: translate(278.6px, 134.8px) rotate(-62.4deg) scale(1);
  }
  48% {
    transform: translate(294.4px, 110px) rotate(-52deg) scale(1.05);
  }
  50% {
    transform: translate(317.5px, 87.6px) rotate(-34.9deg) scale(1.1);
  }
  52% {
    transform: translate(348.8px, 74.8px) rotate(-8.5deg) scale(1.12);
  }
  54% {
    transform: translate(381.5px, 78px) rotate(19deg) scale(1.1);
  }
  56% {
    transform: translate(408.2px, 92.7px) rotate(37.6deg) scale(1.05);
  }
  58% {
    transform: translate(428.2px, 111.8px) rotate(49deg) scale(1);
  }
  60% {
    transform: translate(441.7px, 129.4px) rotate(55.7deg) scale(0.95);
  }
  62% {
    transform: translate(449.5px, 141.7px) rotate(59.3deg) scale(0.85);
  }
  64% {
    transform: translate(452px, 146px) rotate(60.5deg) scale(0.75);
  }
  68%,
  100% {
    opacity: 1;
    transform: translate(436px, 136px) rotate(0deg) scale(0.55);
  }
}

@keyframes fl-badge {
  0%,
  8% {
    opacity: 1;
    transform: scale(1);
  }
  12%,
  64% {
    opacity: 0.3;
    transform: scale(0.92);
  }
  69% {
    opacity: 1;
    transform: scale(1.1);
  }
  74%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fl-print {
  0%,
  8% {
    transform: translateY(0);
  }
  13%,
  68% {
    transform: translateY(-124px);
  }
  84%,
  100% {
    transform: translateY(0);
  }
}

/* The three benefit cards on a POS page. */
.band-benefits {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--bg);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.benefit h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.benefit p {
  margin: 0;
  color: var(--ink-2);
}

.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 15px;
  background: var(--grad-deep);
  color: var(--on-ember);
  box-shadow: 0 14px 28px -14px rgb(225 29 72 / 75%);
}

.benefit-icon .icon {
  width: 24px;
  height: 24px;
}

.faq-wrap {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* The POS cards: the hub's list, and "other systems" on each POS page. */
.band-pos {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
  --focus: var(--night-focus);
}

.band-pos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40rem 22rem at 90% 10%, rgb(225 29 72 / 22%), transparent 65%),
    radial-gradient(36rem 22rem at 5% 100%, rgb(99 102 241 / 20%), transparent 65%);
}

.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pos-card {
  position: relative;
  display: grid;
  grid-template-rows: 5rem auto;
  gap: 0.9rem;
  height: 100%;
  padding: 1.6rem 1.6rem 1.4rem;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--night-3), var(--night-2));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%);
  color: var(--on-night);
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease;
}

.pos-card-brand {
  display: flex;
  align-items: center;
  padding-right: 1.75rem;
}

.pos-card-text {
  color: var(--on-night-2);
  font-weight: 600;
}

.pos-card-go {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  color: var(--night-accent);
  transition: translate 0.25s ease;
}

@media (hover: hover) {
  .pos-card:hover {
    transform: translateY(-5px);
    box-shadow:
      inset 0 0 0 1px rgb(249 115 22 / 55%),
      0 26px 60px -26px rgb(225 29 72 / 70%),
      0 0 40px -12px rgb(249 115 22 / 35%);
  }

  .pos-card:hover .pos-card-go {
    translate: 4px 0;
  }
}

.pos-grid-small .pos-card {
  grid-template-rows: 3.25rem auto;
  padding: 1.25rem 1.25rem 1.1rem;
}

.pos-grid-small .pos-logo-card {
  height: 1.8rem;
}

.pos-grid-small .pos-wordmark-card {
  font-size: 1.5rem;
}

.pos-grid-all {
  margin: 1.5rem 0 0;
}

.pos-grid-all a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--night-accent);
  font-weight: 700;
}

/* 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,
  .cta,
  .site-foot,
  .demo,
  .toc-col,
  .vid {
    display: none;
  }
}
