@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pixelify Sans";
  src: url("/assets/pixelify-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Agent Radio palette from web/style.css. */
:root {
  color-scheme: light;
  --bg: #f7edd8;
  --tile: #fff9ee;
  --raise: #ebe3f3;
  --text: #25273f;
  --text-2: #3c3f5c;
  --line: #938caa;
  --lime: #ffe2a3;
  --lime-ink: #543988;
  --on-lime: #302013;
  --c-working: #1e6754;
  --c-waiting: #724200;
  --c-failed: #982e38;
  --max: 79rem;
  --gutter: clamp(1.25rem, 4.8vw, 4.5rem);
  --display: "Pixelify Sans", "Space Grotesk", system-ui, sans-serif;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  scrollbar-color: var(--line) var(--bg);
  scroll-padding-top: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #151724;
    --tile: #202335;
    --raise: #292b40;
    --text: #fbf0df;
    --text-2: #e2d9ed;
    --line: #62617d;
    --lime: #ded19a;
    --lime-ink: #ded19a;
    --on-lime: #282117;
    --c-working: #a9e4ca;
    --c-waiting: #ffd68c;
    --c-failed: #ffaea0;
  }
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 4px; }

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset: 1rem auto auto 1rem;
  z-index: 1;
  padding: .6rem 1rem;
  background: var(--lime);
  color: var(--on-lime);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand img { flex: none; image-rendering: pixelated; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.1rem); }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover, .subtle-link:hover, .preview-link:hover { text-decoration: underline; text-underline-offset: .23em; }
.nav-action { gap: .55rem; padding: 0 .85rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--raise); }

.arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: .85rem;
  height: .85rem;
}
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before {
  inset: .2rem .12rem auto auto;
  width: .46rem;
  height: .46rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.arrow::after {
  inset: .47rem 0 auto auto;
  width: .79rem;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(19rem, .78fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2.1rem, 5vw, 5rem);
  padding-block: clamp(4rem, 7vw, 7.1rem) clamp(3.75rem, 6.5vw, 6rem);
}
.hero-copy { min-width: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.04em; }
h1 { font-family: var(--display); font-size: clamp(3.1rem, 5.3vw, 5.5rem); line-height: .99; text-wrap: balance; }
h1 span {
  background: linear-gradient(transparent 81%, color-mix(in srgb, var(--lime) 55%, transparent) 81%);
}
.hero-copy p {
  max-width: 32ch;
  margin-top: 1.55rem;
  color: var(--text-2);
  font-size: clamp(1.07rem, 1.48vw, 1.27rem);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: 1.75rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.15rem;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: color-mix(in srgb, var(--lime) 87%, var(--on-lime)); }
.subtle-link { font-weight: 600; text-underline-offset: .25em; }

.product {
  min-width: 0;
  padding: clamp(.75rem, 2vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--raise);
}
.preview-image { display: block; overflow: hidden; border-radius: .4rem; box-shadow: 0 8px 19px #191b2a26; }
.preview-image img { width: 100%; }
figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .45rem .8rem;
  flex-wrap: wrap;
  padding-top: .9rem;
  color: var(--text-2);
  font-size: .83rem;
  font-weight: 600;
}
.preview-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.preview-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .preview-dark { display: inline-flex; }
  .preview-light { display: none; }
}

.compatibility { border-block: 1px solid var(--line); background: var(--tile); }
.compatibility-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.8rem; padding-block: 1.15rem; }
.compatibility p { color: var(--text-2); font-size: .91rem; }
.compatibility ul { display: flex; flex-wrap: wrap; gap: .65rem clamp(.85rem, 2.5vw, 2rem); list-style: none; padding: 0; font-size: .96rem; font-weight: 700; }

.overview {
  display: grid;
  grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7.5vw, 7rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}
h2 { font-size: clamp(2.45rem, 4.15vw, 4.35rem); line-height: 1; }
.overview-intro p, .setup p { max-width: 40ch; margin-top: 1rem; font-size: 1.06rem; line-height: 1.55; }
.overview-intro p, .setup p { color: var(--text-2); }
.feature-list { border-top: 1px solid var(--line); }
.feature-list > div { padding: 1.05rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.feature-list dt { font-weight: 700; font-size: clamp(1.25rem, 1.75vw, 1.6rem); letter-spacing: -.027em; }
.feature-list dd { max-width: 59ch; margin-top: .35rem; color: var(--text-2); font-size: 1rem; line-height: 1.55; }

.setup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.65rem 3rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--raise);
}
.setup .button { flex: none; }

.site-footer { min-height: 5.6rem; border-bottom: 0; color: var(--text-2); }
.site-footer .brand { font-size: 1.02rem; }
.site-footer .subtle-link { font-size: .9rem; }

@media (max-width: 840px) {
  .hero, .overview { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3.45rem, 9.6vw, 5rem); }
  .hero { padding-top: 3.7rem; }
  .hero-copy p { max-width: 37ch; }
  .product { width: min(100%, 45rem); }
  .overview h2 br { display: none; }
}

@media (max-width: 560px) {
  .site-header { min-height: 4.3rem; }
  nav a { font-size: .88rem; }
  .brand { font-size: 1.16rem; }
  .brand img { width: 29px; }
  .setup { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 355px) {
  .wrap { width: calc(100% - 2rem); }
  h1 { font-size: clamp(2.75rem, 14.6vw, 3.35rem); }
  .nav-action { padding-inline: .55rem; }
}

.workflow {
  padding-top: clamp(3.75rem, 7vw, 6.5rem);
}
.workflow .product {
  width: min(100%, 63rem);
  margin-top: 1.75rem;
}
.section-intro p {
  max-width: 56ch;
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 1.06rem;
  line-height: 1.55;
}
.workflow-scene {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--tile);
}
.scene-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 3.45rem;
  padding: .2rem clamp(.75rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid var(--line);
  background: var(--raise);
  color: var(--text-2);
  font-size: .87rem;
  font-weight: 700;
}
.demo-reset {
  min-height: 2.75rem;
  padding-inline: .5rem;
  border: 0;
  border-radius: .2rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .22em;
  cursor: pointer;
}
.demo-reset:hover { color: var(--lime-ink); }
.demo-reset:focus-visible { outline-offset: 0; }
.session-states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.session-state {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: end;
  text-align: center;
  padding-block: clamp(2.3rem, 5.4vw, 4.7rem) 0;
  background: linear-gradient(var(--tile), var(--raise));
}
.session-state + .session-state { border-inline-start: 1px solid var(--line); }
.session-state > div {
  width: 100%;
  height: 100%;
  margin-top: -.08rem;
  padding: .8rem .35rem .95rem;
  border-top: 1px solid var(--line);
  background: var(--tile);
}
.session-state p { color: var(--text-2); font-size: clamp(.77rem, 1.2vw, .95rem); line-height: 1.4; }
.session-state .state-name { margin-bottom: .18rem; color: var(--state-ink, var(--text)); font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.55rem); }
.state-working { --state-ink: var(--c-working); --bot-paint: #8bbcb0; }
.state-waiting { --state-ink: var(--c-waiting); --bot-paint: #ca916f; }
.state-done { --bot-paint: #a49bc7; }
.state-waiting > div { background: color-mix(in srgb, var(--tile) 83%, var(--lime)); }

/* The dashboard's pixel robot, sized for the landing page. */
.bot {
  --shell: color-mix(in srgb, var(--bot-paint) 68%, #fff5df);
  --shade: color-mix(in srgb, var(--bot-paint) 70%, #182033);
  position: relative;
  display: block;
  width: 58px;
  height: 65px;
  zoom: 1.85;
}
.bot i { position: absolute; display: block; }
.bot :is(.head, .chest) {
  clip-path: polygon(10% 0,90% 0,90% 10%,100% 10%,100% 90%,90% 90%,90% 100%,10% 100%,10% 90%,0 90%,0 10%,10% 10%);
  background: var(--shell);
  box-shadow: inset -4px -4px var(--shade);
}
.bot .antenna { width: 4px; height: 12px; left: 27px; top: 2px; background: var(--shade); }
.bot .antenna::before { content: ""; position: absolute; width: 8px; height: 5px; left: -2px; background: var(--shell); }
.bot .head { width: 37px; height: 23px; left: 10px; top: 12px; }
.bot .head b { position: absolute; inset: 4px; background: #172339; }
.bot .head b::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 5px;
  background: var(--shell);
  box-shadow: 13px 0 var(--shell);
}
.bot .mouth { width: 5px; height: 2px; left: 16px; bottom: 6px; background: var(--shell); }
.bot .chest { width: 29px; height: 22px; top: 36px; left: 14px; display: grid; place-items: center; }
.bot .chest b { width: 8px; height: 8px; background: var(--shade); }
.bot :is(.arm, .foot) { background: var(--shade); box-shadow: inset 0 -3px #25364a; }
.bot .arm { top: 37px; width: 8px; height: 16px; transform-origin: center 3px; }
.bot .arm.left { left: 4px; }
.bot .arm.right { right: 5px; }
.bot .foot { top: 57px; width: 12px; height: 7px; }
.bot .foot.left { left: 13px; }
.bot .foot.right { right: 14px; }
.state-waiting .antenna::before { background: #ffd174; }
.state-waiting .mouth { width: 3px; height: 3px; left: 17px; }
.state-done .head b::after { height: 2px; top: 5px; }
.state-done .mouth { width: 7px; height: 3px; left: 15px; background: none; border: solid var(--shell); border-width: 0 1px 1px; }

@media (prefers-reduced-motion: no-preference) {
  [data-playing] .state-working .arm.left { animation: bot-type 240ms steps(2, end) 5 alternate; }
  [data-playing] .state-working .arm.right { animation: bot-type 240ms steps(2, end) 5 alternate-reverse; }
  [data-playing] .state-waiting .arm.right { animation: bot-wave 1.35s steps(4, end) 1.05s; }
  [data-playing] .state-waiting .antenna::before { animation: bot-signal 500ms steps(1, end) 3 1s; }
  [data-playing] .state-done .head { animation: bot-happy 840ms steps(4, end) 2.35s; }
  [data-playing] .state-done .arm.left { animation: bot-cheer-left 840ms steps(3, end) 2.35s; }
  [data-playing] .state-done .arm.right { animation: bot-cheer-right 840ms steps(3, end) 2.35s; }
}
@keyframes bot-type { from { transform: rotate(-12deg); } to { transform: rotate(32deg) translateY(-2px); } }
@keyframes bot-wave {
  0%, 100% { transform: none; }
  25%, 75% { transform: rotate(-115deg); }
  50% { transform: rotate(-155deg); }
}
@keyframes bot-signal { 50% { background: #fff5df; box-shadow: 0 0 5px #ffd174; } }
@keyframes bot-happy {
  0%, 100% { transform: none; }
  30% { transform: translateY(-6px) rotate(-4deg); }
  62% { transform: translateY(1px) rotate(3deg); }
}
@keyframes bot-cheer-left { 45% { transform: rotate(-120deg); } }
@keyframes bot-cheer-right { 45% { transform: rotate(120deg); } }

.access { background: var(--raise); border-block: 1px solid var(--line); }
.access-inner { padding-block: clamp(3.5rem, 7vw, 6rem); }
.access-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin-top: clamp(1.65rem, 4vw, 2.8rem);
}
.access-list > div { border-top: 1px solid var(--line); padding-top: .9rem; }
.access-list dt { font-size: 1.25rem; font-weight: 700; }
.access-list dd { margin-top: .4rem; max-width: 39ch; color: var(--text-2); line-height: 1.55; }

.faq {
  display: grid;
  grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 7.5vw, 7rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.faq-items { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1rem 0; cursor: pointer; font-weight: 700; }
.faq summary:hover { color: var(--lime-ink); }
.faq details p { max-width: 61ch; padding-bottom: 1.15rem; color: var(--text-2); line-height: 1.55; }

@media (max-width: 980px) {
  .bot { zoom: 1.45; }
}
@media (max-width: 840px) {
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .access-list { grid-template-columns: 1fr; }
  .bot { zoom: 1.25; }
}

.request-demo {
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.demo-inbox {
  --bot-paint: #ca916f;
  --demo-state-ink: var(--c-waiting);
  width: min(100%, 63rem);
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  overflow: hidden;
  background: var(--tile);
}
.demo-inbox[data-demo-state="allowed"] {
  --bot-paint: #8bbcb0;
  --demo-state-ink: var(--c-working);
}
.demo-inbox[data-demo-state="denied"] {
  --bot-paint: #a49bc7;
  --demo-state-ink: var(--c-failed);
}
.demo-inbox-body {
  display: grid;
  grid-template-columns: minmax(8rem, .46fr) minmax(0, 1.54fr);
}
.demo-agent {
  display: grid;
  gap: .8rem;
  place-content: center;
  justify-items: center;
  padding: 1.45rem .65rem;
  border-inline-end: 1px solid var(--line);
  background: color-mix(in srgb, var(--tile) 48%, var(--raise));
}
.demo-agent p { font-weight: 700; }
.demo-agent p span { color: var(--text-2); font-weight: 400; }
.demo-request { padding: clamp(1rem, 3vw, 1.85rem); }
.demo-command-label { font-weight: 700; }
.demo-command {
  margin: .55rem 0 1rem;
  padding: .75rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--raise);
  color: var(--text);
  font: 500 .92rem/1.45 ui-monospace, monospace;
}
.demo-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.demo-actions[hidden] { display: none; }
.demo-actions .button { min-height: 2.75rem; font: inherit; font-weight: 700; cursor: pointer; }
.demo-deny { color: var(--text); background: var(--tile); }
.demo-deny:hover { background: var(--raise); }
.demo-actions [aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--demo-state-ink); }
.demo-allow[aria-pressed="true"] { color: var(--c-working); background: color-mix(in srgb, var(--tile) 90%, var(--c-working)); }
.demo-deny[aria-pressed="true"] { color: var(--c-failed); background: color-mix(in srgb, var(--tile) 92%, var(--c-failed)); }
.demo-result { margin-top: .8rem; color: var(--demo-state-ink); line-height: 1.45; font-weight: 600; }
[data-demo-state="waiting"] .antenna::before { background: #ffd174; }
[data-demo-state="waiting"] .mouth { width: 3px; height: 3px; left: 17px; }
[data-demo-state="denied"] .head { transform: rotate(-8deg); }
[data-demo-state="denied"] .mouth { width: 7px; left: 15px; height: 1px; }

@media (prefers-reduced-motion: no-preference) {
  [data-demo-state="allowed"] .arm.left { animation: bot-type 240ms steps(2, end) 5 alternate; }
  [data-demo-state="allowed"] .arm.right { animation: bot-type 240ms steps(2, end) 5 alternate-reverse; }
  [data-demo-state="denied"] .head { animation: bot-reconsider 740ms steps(4, end); }
}
@keyframes bot-reconsider {
  0% { transform: none; }
  35% { transform: rotate(7deg); }
  65% { transform: rotate(-11deg); }
  100% { transform: rotate(-8deg); }
}
@media (max-width: 480px) {
  .demo-inbox-body { grid-template-columns: minmax(0, 1fr); }
  .demo-agent {
    grid-auto-flow: column;
    align-items: center;
    justify-content: start;
    padding: .65rem 1rem;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }
  .demo-agent .bot { zoom: .8; }
}
