/* Workie — white field, huge type, one idea per section, quiet scroll motion. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #0b0b0a;
  --soft: #444340;
  --muted: #6e6d69;
  --line: rgba(11, 11, 10, 0.1);
  --line-strong: rgba(11, 11, 10, 0.28);
  --surface: #fafaf8;
  --bubble: #f0efeb;
  --focus: #0b0b0a;

  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --display: var(--sans);
  --display-weight: 500;
  --display-track: -0.035em;

  --radius: 1.25rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(5rem, 12vw, 10rem);
  --measure: 36ch;
}

/* Script-aware stacks. CJK, Arabic and Thai get their own system sans and a
   heavier display weight with no negative tracking. */
html:lang(zh-Hant),
html:lang(yue) {
  --sans: -apple-system, "PingFang TC", "PingFang HK", "Hiragino Sans CNS",
    "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", "Segoe UI", Roboto,
    sans-serif;
}
html:lang(zh-Hans) {
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
}
html:lang(ja) {
  --sans: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    Meiryo, "Noto Sans CJK JP", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
}
html:lang(ko) {
  --sans: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR",
    "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}
html:lang(ar) {
  --sans: -apple-system, "SF Arabic", "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic",
    Tahoma, Arial, sans-serif;
}
html:lang(th) {
  --sans: -apple-system, "Thonburi", "Sukhumvit Set", "Leelawadee UI", "Noto Sans Thai",
    "Segoe UI", Tahoma, sans-serif;
}
html:lang(zh-Hant),
html:lang(zh-Hans),
html:lang(yue),
html:lang(ja),
html:lang(ko),
html:lang(ar),
html:lang(th) {
  --display-weight: 600;
  --display-track: 0;
}
/* Vietnamese needs full diacritic coverage; keep tracking gentle. */
html:lang(vi) {
  --display-track: -0.015em;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: var(--display-weight);
}

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

::selection {
  background: var(--ink);
  color: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Header: floating pill, not a full-width bar -------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0.85rem 1rem 0;
  background: none;
  border: none;
  pointer-events: none;
}
.top-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: max-content;
  max-width: min(40rem, calc(100vw - 2rem));
  min-height: 3.25rem;
  padding: 0.3rem 0.35rem 0.3rem 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 40px -20px rgba(11, 11, 10, 0.28), 0 1px 2px rgba(11, 11, 10, 0.04);
}
.top.is-scrolled .top-pill,
.top.is-past-hero .top-pill {
  border-color: var(--line-strong);
  box-shadow: 0 14px 44px -18px rgba(11, 11, 10, 0.32);
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  text-decoration: none;
  color: var(--soft);
  white-space: nowrap;
}
.top-link:hover {
  color: var(--ink);
}

/* Once the hero has scrolled away, the plain link becomes a small primary pill. */
.top .top-cta {
  position: relative;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 260ms ease, background-color 260ms ease, padding 260ms ease,
    border-color 260ms ease;
}
.top.is-past-hero .top-cta {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
  padding-inline: 1.1rem;
}
.top.is-past-hero .top-cta:hover {
  background: #2a2a28;
  border-color: #2a2a28;
}

/* ---- Language picker ------------------------------------------------- */

.lang {
  position: relative;
  display: inline-flex;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem 0.4rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  max-width: 14rem;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  border-color: var(--ink);
  background: var(--surface);
}
.lang-globe {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  color: var(--soft);
}
.lang-current {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-caret {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
  transition: transform 200ms ease;
}
.lang-btn[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  z-index: 30;
  width: min(30rem, calc(100vw - 2 * var(--gutter)));
  padding: 1rem 0.75rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 30px 60px -30px rgba(11, 11, 10, 0.3), 0 2px 10px -4px rgba(11, 11, 10, 0.12);
  transform-origin: top;
  animation: menu-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lang-menu[hidden] {
  display: none;
}
.lang-menu-title {
  font-size: 0.875rem;
  color: var(--muted);
  padding-inline: 0.75rem;
  margin-bottom: 0.5rem;
}
.lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.125rem;
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.2;
}
.lang-list a:hover,
.lang-list a:focus-visible {
  background: var(--bubble);
  outline-offset: -3px;
}
.lang-list a[aria-current="true"] {
  font-weight: 600;
}
.lang-list a[aria-current="true"]::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ink);
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Type ------------------------------------------------------------ */

.display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(2.875rem, 9.6vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: var(--display-track);
  text-wrap: balance;
  max-width: 16ch;
}
html:lang(zh-Hant) .display,
html:lang(zh-Hans) .display,
html:lang(yue) .display,
html:lang(ja) .display,
html:lang(ko) .display {
  font-size: clamp(2.5rem, 8.5vw, 6rem);
  line-height: 1.15;
  max-width: 16ch;
}
html:lang(ar) .display {
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  line-height: 1.3;
}
html:lang(th) .display {
  font-size: clamp(2.75rem, 9vw, 6.25rem);
  line-height: 1.35;
}
html:lang(vi) .display {
  line-height: 1.08;
}
.display-sm {
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  max-width: 18ch;
}
html:lang(zh-Hant) .display-sm,
html:lang(zh-Hans) .display-sm,
html:lang(yue) .display-sm,
html:lang(ja) .display-sm,
html:lang(ko) .display-sm {
  font-size: clamp(2.25rem, 7vw, 4.25rem);
}
html:lang(ar) .display-sm,
html:lang(th) .display-sm {
  font-size: clamp(2.5rem, 7.5vw, 4.75rem);
}

.eyebrow {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: clamp(1.25rem, 1.15rem + 0.9vw, 1.625rem);
  line-height: 1.45;
  max-width: var(--measure);
  text-wrap: pretty;
  color: var(--ink);
}

.section-title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(2.125rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: calc(var(--display-track) * 0.7);
  max-width: 22ch;
  text-wrap: balance;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
html:lang(zh-Hant) .section-title,
html:lang(zh-Hans) .section-title,
html:lang(yue) .section-title,
html:lang(ja) .section-title,
html:lang(ko) .section-title,
html:lang(ar) .section-title,
html:lang(th) .section-title {
  line-height: 1.25;
}
html:lang(th) body,
html:lang(th) .lead,
html:lang(th) .msg p {
  line-height: 1.7;
}
.section-lede {
  color: var(--soft);
  margin-top: -0.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ---- Buttons and chips ---------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.625rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font: inherit;
  font-size: 1.1875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 140ms ease, background-color 140ms ease;
  width: 100%;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: #2a2a28;
  border-color: #2a2a28;
}
.btn-primary:active {
  transform: translateY(1px);
}

.action-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--soft);
  font-size: 1.0625rem;
}
.action-quiet:hover {
  color: var(--ink);
}

.hero-beat {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 42ch;
  text-wrap: pretty;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
.channels-label {
  margin-inline-end: 0.25rem;
  font-size: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
  background: transparent;
}
a.chip:hover {
  border-color: var(--ink);
  background: var(--surface);
}

/* ---- Hero ----------------------------------------------------------- */

.hero {
  padding-block: clamp(3.5rem, 10vw, 8rem) clamp(2.5rem, 6vw, 5rem);
}
.hero .display {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}
.hero .lead {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.kinds {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--muted);
  font-size: 1rem;
  max-width: 44ch;
  text-wrap: pretty;
}

/* ---- Conversation (the product shot) --------------------------------- */

.demo {
  padding-block: clamp(1rem, 4vw, 3rem) var(--section);
}
.demo .channels {
  justify-content: center;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.chat {
  margin: 0 auto;
  max-width: 38rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  box-shadow: 0 40px 80px -48px rgba(11, 11, 10, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
}
.chat-name {
  font-weight: 600;
}
.thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}
/* While the demo plays, messages wait their turn. */
.thread.is-playing .msg {
  display: none;
}
.thread.is-playing .msg.is-shown {
  display: flex;
  animation: rise 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.msg.is-typing p::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-inline-start: 0.15em;
  vertical-align: -0.15em;
  background: currentColor;
  animation: caret 900ms steps(2, end) infinite;
}
.msg.is-thinking p {
  min-width: 3.75rem;
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.msg.is-thinking p::before,
.msg.is-thinking p::after,
.msg.is-thinking p > i {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--soft);
  animation: dots 1100ms ease-in-out infinite;
}
.msg.is-thinking p > i {
  animation-delay: 180ms;
}
.msg.is-thinking p::after {
  animation-delay: 360ms;
}
@keyframes caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes dots {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.msg.you {
  align-self: flex-end;
  align-items: flex-end;
}
.msg.bot {
  align-self: flex-start;
  align-items: flex-start;
}
.who {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  padding-inline: 0.35rem;
}
.msg p {
  padding: 0.8rem 1.1rem;
  border-radius: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.msg.you p {
  background: var(--ink);
  color: var(--bg);
  border-end-end-radius: 0.4rem;
}
.msg.bot p {
  background: var(--bubble);
  color: var(--ink);
  border-end-start-radius: 0.4rem;
}
.chat figcaption {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Sections ------------------------------------------------------- */

.section {
  padding-block: 0 var(--section);
}

/* The admin rows: title, body, and a two-line beat. */
.rows {
  margin: 0;
  border-top: 1px solid var(--line);
}
.row {
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.row dt {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.625rem, 3.4vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: calc(var(--display-track) * 0.5);
  text-wrap: balance;
  margin-bottom: 0.75rem;
}
html:lang(zh-Hant) .row dt,
html:lang(zh-Hans) .row dt,
html:lang(yue) .row dt,
html:lang(ja) .row dt,
html:lang(ko) .row dt,
html:lang(ar) .row dt,
html:lang(th) .row dt {
  line-height: 1.3;
}
.row dd {
  margin: 0;
}
.row-body {
  max-width: 46ch;
  color: var(--soft);
  font-size: 1.125rem;
  text-wrap: pretty;
}
.beat {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
  max-width: 34rem;
}
.beat p {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.45;
}
.beat-who {
  color: var(--muted);
  font-size: 0.8125rem;
  padding-top: 0.55rem;
}
.beat p > span:last-child {
  justify-self: start;
  padding: 0.5rem 0.9rem;
  border-radius: 1rem;
  text-wrap: pretty;
}
.beat-you > span:last-child {
  background: var(--ink);
  color: var(--bg);
  border-start-start-radius: 0.35rem;
}
.beat-bot > span:last-child {
  background: var(--bubble);
  color: var(--ink);
  border-start-start-radius: 0.35rem;
}

/* Steps (agency) */
.steps {
  list-style: none;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  padding: 0;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.num {
  display: block;
  font-family: var(--display);
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: calc(var(--display-track) * 0.5);
  margin-bottom: 0.5rem;
}
html:lang(zh-Hant) .step h3,
html:lang(zh-Hans) .step h3,
html:lang(yue) .step h3,
html:lang(ja) .step h3,
html:lang(ko) .step h3,
html:lang(ar) .step h3,
html:lang(th) .step h3 {
  line-height: 1.3;
}
.step p {
  max-width: 46ch;
  color: var(--soft);
  text-wrap: pretty;
}

/* ---- One day, five businesses ------------------------------------- */

.scenes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.scene {
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.scene-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}
.scene-time {
  font-family: var(--display);
  font-size: 1.0625rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.scene-kind {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding-inline: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--ink);
  white-space: nowrap;
}
.scene-title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  line-height: 1.08;
  letter-spacing: calc(var(--display-track) * 0.6);
  text-wrap: balance;
  max-width: 18ch;
  margin-bottom: 0.75rem;
}
html:lang(zh-Hant) .scene-title,
html:lang(zh-Hans) .scene-title,
html:lang(yue) .scene-title,
html:lang(ja) .scene-title,
html:lang(ko) .scene-title,
html:lang(ar) .scene-title,
html:lang(th) .scene-title {
  line-height: 1.3;
}
.scene-body {
  max-width: 44ch;
  color: var(--soft);
  text-wrap: pretty;
}
.slip {
  margin-top: 1.5rem;
  max-width: 26rem;
  padding: 1rem 1.25rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 20px 40px -32px rgba(11, 11, 10, 0.3);
}
.slip-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.slip p {
  font-size: 1.0625rem;
  line-height: 1.45;
  text-wrap: pretty;
}

/* ---- Agency ---------------------------------------------------------- */

.agency {
  border-top: 1px solid var(--line);
  padding-top: var(--section);
}
.agency-title {
  font-size: clamp(2.5rem, 7.5vw, 5.25rem);
  max-width: 16ch;
}
.agency-channels {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 46ch;
  text-wrap: pretty;
}

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

.foot {
  border-top: 1px solid var(--line);
  padding-block: 2rem 3rem;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
}
.foot-line {
  max-width: 52ch;
  text-wrap: pretty;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
}
.foot-link-quiet {
  color: var(--soft);
}

/* ---- Talk to us (signup) ------------------------------------------- */

.page-hero {
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}
.page-hero .display {
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.form {
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field label {
  font-size: 1.0625rem;
  color: var(--soft);
}
.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0.875rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: none;
}
.form textarea {
  resize: vertical;
  line-height: 1.5;
}
.form select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' fill='none' stroke='%230b0b0a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 1rem;
  background-position: right 0.9rem center;
  padding-inline-end: 2.75rem;
  cursor: pointer;
}
[dir="rtl"] .form select {
  background-position: left 0.9rem center;
}
.form select:hover {
  border-color: var(--ink);
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--ink);
}
.hint {
  font-size: 0.9375rem;
  color: var(--muted);
}
.form .actions {
  margin-top: 0.5rem;
}
.fine {
  font-size: 0.9375rem;
  color: var(--muted);
}
.notice {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--ink);
  text-wrap: pretty;
}
.notice:focus {
  outline: none;
}
.channels-after {
  padding-bottom: var(--section);
}

/* ---- Motion ---------------------------------------------------------- */

/* Hero type eases in on load (JS present). */
html.js .hero-in {
  animation: hero-in 1000ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
html.js .hero-in:nth-child(1) { animation-delay: 60ms; }
html.js .hero-in:nth-child(2) { animation-delay: 160ms; }
html.js .hero-in:nth-child(3) { animation-delay: 300ms; }
html.js .hero-in:nth-child(4) { animation-delay: 420ms; }
html.js .hero-in:nth-child(5) { animation-delay: 520ms; }
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* Sections, rows, scenes and steps fade and sharpen as they enter view. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Language change: the text blurs out, swaps, and settles back. */
html.js main,
html.js .top-pill,
html.js .foot-inner {
  transition: opacity 220ms ease, filter 220ms ease;
}
html.is-swapping main,
html.is-swapping .top-pill,
html.is-swapping .foot-inner {
  opacity: 0;
  filter: blur(6px);
}

/* ---- Larger screens ------------------------------------------------- */


@media (max-width: 39.99em) {
  .lang-current { display: none; }
  .lang-btn { padding-inline: 0.7rem; }
  .top-link { padding-inline: 0.65rem; }
}
@media (min-width: 40em) {
  .btn {
    width: auto;
    min-width: 14rem;
  }
  .lang-btn {
    max-width: 16rem;
  }
}

@media (min-width: 48em) {
  body {
    font-size: 1.1875rem;
  }
  .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
  .row dt {
    margin-bottom: 0;
  }
  .step {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 2fr);
    column-gap: clamp(1.5rem, 4vw, 3rem);
    align-items: baseline;
  }
  .num {
    margin: 0;
  }
  .step h3 {
    margin: 0;
  }
  .chat {
    padding: 1.75rem 2rem 1.5rem;
  }
  .msg {
    max-width: 80%;
  }
  .scene {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
  }
  .scene-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.35rem 0 0;
  }
  .slip {
    margin-top: 0.25rem;
    justify-self: end;
    width: 100%;
  }
  .lang-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .hero {
    padding-block: clamp(4.5rem, 10vw, 9rem) 4rem;
  }
  .demo {
    padding-top: 1rem;
  }
}

/* ---- Motion and print ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .hero-in,
  .thread.is-playing .msg.is-shown,
  .lang-menu,
  .msg.is-typing p::after,
  .msg.is-thinking p::before,
  .msg.is-thinking p::after,
  .msg.is-thinking p > i {
    animation: none;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  html.js main,
  html.js .top-pill,
  html.js .foot-inner,
  .top,
  .top-cta,
  .lang-btn,
  .lang-caret,
  .btn {
    transition: none;
  }
  html.is-swapping main,
  html.is-swapping .top-pill,
  html.is-swapping .foot-inner {
    opacity: 1;
    filter: none;
  }
}

@media print {
  .top,
  .foot,
  .skip {
    display: none;
  }
  html.js .reveal,
  html.js .hero-in {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
  .thread.is-playing .msg {
    display: flex;
  }
}
