/*
  The AI connector page in plain CSS, so the page needs no build. Light and dark follow the system unless the toggle
  sets data-theme on <html>.

  KEEP IN SYNC with app/web/Flight-UI/theme/primitives.ts and semantic.ts: the colour tokens below copy Flight's values,
  because a static page cannot import Flight's theme. The marks in index.html's sprite copy Flight's AlbiLogomark,
  AlbiWordmark and AiSparkle.
*/

:root {
  color-scheme: light;
  --primary: #2463eb;
  --primary-rgb: 36 99 235;
  --primary-dark: #162f63;
  --on-primary: #fff;
  --success: #1a670f;
  --success-rgb: 26 103 15;
  --success-dark: #11390c;
  --warning: #a16207;
  --warning-rgb: 161 98 7;
  --warning-dark: #713f12;
  --info: #7c3aed;
  --info-rgb: 124 58 237;
  --bg: #f2f2f8;
  --paper: #f9f9fc;
  --text: #202239;
  --text-2: #666989;
  --divider: rgba(0, 0, 0, 0.08);
  --hover: rgba(0, 0, 0, 0.04);
  --selected: rgba(0, 0, 0, 0.08);
  --logomark: var(--primary);
  --shadow-1:
    0 1px 2px rgba(15, 22, 38, 0.04),
    0 2px 6px -2px rgba(15, 22, 38, 0.05),
    0 6px 14px -6px rgba(15, 22, 38, 0.07);
  --shadow-6: 0 3px 10px rgba(0, 0, 0, 0.11), 0 2px 5px rgba(0, 0, 0, 0.06);
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1024px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #79a5f9;
  --primary-rgb: 121 165 249;
  --primary-dark: #e3edff;
  --on-primary: rgba(0, 0, 0, 0.87);
  --success: #7adc6e;
  --success-rgb: 122 220 110;
  --success-dark: #e5ffe2;
  --warning: #fde047;
  --warning-rgb: 253 224 71;
  --warning-dark: #fef9c3;
  --info: #b198f8;
  --info-rgb: 177 152 248;
  --bg: #090a10;
  --paper: #161723;
  --text: #f3f3f7;
  --text-2: #9c9eb0;
  --divider: rgba(255, 255, 255, 0.08);
  --hover: rgba(255, 255, 255, 0.08);
  --selected: rgba(255, 255, 255, 0.16);
  --logomark: #fff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #79a5f9;
    --primary-rgb: 121 165 249;
    --primary-dark: #e3edff;
    --on-primary: rgba(0, 0, 0, 0.87);
    --success: #7adc6e;
    --success-rgb: 122 220 110;
    --success-dark: #e5ffe2;
    --warning: #fde047;
    --warning-rgb: 253 224 71;
    --warning-dark: #fef9c3;
    --info: #b198f8;
    --info-rgb: 177 152 248;
    --bg: #090a10;
    --paper: #161723;
    --text: #f3f3f7;
    --text-2: #9c9eb0;
    --divider: rgba(255, 255, 255, 0.08);
    --hover: rgba(255, 255, 255, 0.08);
    --selected: rgba(255, 255, 255, 0.16);
    --logomark: #fff;
  }
}

/* Base */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
pre {
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

b,
strong {
  font-weight: 600;
}

code,
pre {
  font-family: var(--mono);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  scroll-margin-top: 72px;
  scroll-margin-bottom: 72px;
}

.sprite,
[hidden] {
  display: none;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: -0.125em;
}

.icon[hidden] {
  display: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--text);
}

.skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.text-2 {
  color: var(--text-2);
}

.body2 {
  font-size: 0.875rem;
  line-height: 1.43;
}

.caption {
  font-size: 0.75rem;
  line-height: 1.66;
}

.overline {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 2.66;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.ui,
.lead {
  font-weight: 600;
  color: var(--text);
}

.code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--hover);
  font-size: 0.8125rem;
  word-break: break-all;
}

/* MUI's motion, which Flight's buttons, tabs and icon buttons keep. */

.btn,
.question,
.copy {
  transition:
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn,
.lottie__control {
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* The click ripple: grows from the pointer, fades on release. */
.btn,
.question,
.copy,
.tab,
.icon-btn,
.lottie__control {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0);
  animation: ripple-enter 550ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition: opacity 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ripple--leaving {
  opacity: 0;
}

@keyframes ripple-enter {
  to {
    transform: scale(1);
  }
}

/* Buttons at the prototype's sizes (Flight 0.20, MUI's 1.75 line height): sm 14px text, lg 18px. The 1px border is
   inside the box, so each padding is 1px less than MUI's. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
  line-height: 1.75;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn--sm {
  padding: 3px 9px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 12px 21px;
  font-size: 1.125rem;
}

.btn--filled {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--filled:hover {
  background: var(--primary-dark);
}

.btn--outlined {
  border-color: rgb(var(--primary-rgb) / 0.5);
  color: var(--primary);
}

.btn--outlined:hover {
  border-color: var(--primary);
  background: rgb(var(--primary-rgb) / 0.04);
}

/* Flight's ThemeToggle, size small: a 20px icon in MUI's 28px icon button, in action.active grey. */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9ea7b5;
  font-size: 20px;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--hover);
}

/* MUI's tooltip as Flight styles it, after a short delay. The toggle sits at the screen's right edge, so the tooltip
   lines up with its right side, where MUI's popper would shift it to stay on screen. */
.tooltip-host {
  position: relative;
  display: inline-flex;
}

.tooltip {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 20;
  padding: 4px 8px;
  border-radius: 4px;
  background: #1a1b25;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.75);
  transform-origin: top right;
  transition:
    opacity 200ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 200ms;
}

.tooltip-host:hover .tooltip,
.icon-btn:focus-visible + .tooltip {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  transition-delay: 100ms;
}

:root[data-theme="dark"] .tooltip {
  background: #ebeef1;
  color: #1a1b25;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tooltip {
    background: #ebeef1;
    color: #1a1b25;
  }
}

/* Copy, after Flight's CopyButton (inline, sm) at the prototype's size */

.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.75;
  cursor: pointer;
}

/* MUI's small start icon: a 16px box pulled 2px left, 8px before the label. */
.copy .icon {
  width: 16px;
  margin-left: -2px;
  font-size: 13px;
}

.copy:hover {
  background: var(--hover);
  color: var(--text);
}

.copy[data-state="copied"] {
  color: var(--success);
}

/* Flight's CopyButton swaps icon and label with a quick fade. */
.copy--swapped .icon {
  animation: copy-icon-in 100ms ease-out;
}

.copy--swapped span {
  animation: copy-label-in 100ms ease-out;
}

@keyframes copy-icon-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes copy-label-in {
  from {
    opacity: 0;
  }
}

/* Badges, after Flight's Badge */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 16px;
  background: var(--selected);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge .icon,
.badge svg {
  font-size: 0.75rem;
}

.badge--primary {
  background: rgb(var(--primary-rgb) / 0.12);
  color: var(--primary-dark);
}

.badge--success {
  background: rgb(var(--success-rgb) / 0.12);
  color: var(--success-dark);
}

.badge--warning {
  background: rgb(var(--warning-rgb) / 0.15);
  color: var(--warning-dark);
}

.badge--dot .icon {
  font-size: 6px;
}

/* Cards and surfaces */

.card {
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--divider);
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgb(var(--primary-rgb) / 0.12);
  color: var(--primary);
  font-size: 1.125rem;
}

.mark {
  display: block;
  flex-shrink: 0;
  fill: var(--logomark);
}

.url-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: fit-content;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--paper);
}

.url-field--on-panel {
  background: var(--bg);
}

.url-field code {
  font-size: 0.8125rem;
  word-break: break-all;
}

.url-field .caption {
  font-weight: 600;
}

/* A user turn in the example chats, right-aligned and tinted. */
.ask {
  align-self: flex-end;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px 16px 4px;
  background: rgb(var(--primary-rgb) / 0.1);
}

.used-albi {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--divider);
  border-radius: 8px;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--divider);
  background: var(--paper);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 16px;
}

.topbar__brand {
  display: flex;
}

.topbar__nav {
  display: none;
  gap: 20px;
  margin-left: auto;
}

.topbar__nav a {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.topbar__nav a:hover {
  color: var(--text);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Sections */

.section {
  padding: 48px 16px;
  scroll-margin-top: 64px;
}

/* The one section a reader comes to act on gets its own rounded surface. */
.section--panel {
  margin: 32px 0;
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: var(--paper);
}

.heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.heading__text {
  max-width: 640px;
}

.heading .overline {
  color: var(--primary);
}

.heading h2 {
  margin-top: 4px;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.heading p {
  margin-top: 12px;
  color: var(--text-2);
}

/* Hero */

.hero {
  padding: 40px 16px 48px;
  background: linear-gradient(180deg, rgb(var(--primary-rgb) / 0.08) 0%, var(--bg) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin-top: 16px;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.0625rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero .url-field {
  margin-top: 24px;
}

.hero__chat {
  padding: 24px;
}

.lottie {
  position: relative;
  width: 100%;
}

.lottie__player {
  width: 100%;
  height: 100%;
}

.lottie--hero {
  aspect-ratio: 480 / 327;
}

.lottie--steps {
  aspect-ratio: 1;
}

/* Flight's Lottie pause control: always visible, 26px. */
.lottie__control {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--divider);
  border-radius: 50%;
  background: var(--paper);
  color: var(--text-2);
  font-size: 0.7rem;
  cursor: pointer;
}

.lottie__control[hidden] {
  display: none;
}

/* Why connect Albi */

.why {
  padding: 32px 16px;
  scroll-margin-top: 64px;
}

.why__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 24px;
  border-radius: 32px;
  background: var(--hover);
}

.why__left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.why__left .heading {
  margin-bottom: 0;
}

.diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-bottom: 32px;
}

.diagram__node {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-1);
}

.diagram__flows {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 16px;
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.flow__rule {
  display: flex;
  align-items: center;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: rgb(var(--primary-rgb) / 0.35);
  color: var(--primary);
  font-size: 12px;
}

.flow__rule--out {
  justify-content: flex-end;
}

.flow__rule .icon {
  margin: 0 -4px;
}

/* Its own row on phones, beside the arrows from 600px. */
.chips {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
}

.chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Single-colour marks drawn as a mask, so a black mark follows the theme's text colour. */
.chip__logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--logo-color, var(--text));
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

.chip__logo--claude {
  --logo: url("logos/claude.svg");
  --logo-color: #d97757;
}

.chip__logo--openai {
  --logo: url("logos/openai.svg");
}

.chip__logo--gemini {
  --logo: url("logos/googlegemini.svg");
  --logo-color: #8e75b2;
}

.chip__logo--copilot {
  --logo: url("logos/githubcopilot.svg");
}

.chip__logo--perplexity {
  --logo: url("logos/perplexity.svg");
  --logo-color: #1fb8cd;
}

.chip__logo--cursor {
  --logo: url("logos/cursor.svg");
}

.chips__more {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  white-space: nowrap;
}

.two-way__chat .card__head {
  padding: 10px 20px;
}

.two-way__chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.two-way__chat-body .ask {
  max-width: 88%;
}

.two-way__job {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  box-shadow: var(--shadow-6);
}

.job-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--divider);
}

.job-head__title {
  flex: 1;
  min-width: 0;
}

.job-head__where {
  display: none;
}

.tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
}

.task > .icon {
  color: var(--text-2);
}

.task__text {
  flex: 1;
  min-width: 0;
}

.task--new {
  background: rgb(var(--primary-rgb) / 0.06);
}

/* What you can ask */

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

.uses__label {
  margin-bottom: 12px;
  font-weight: 600;
}

.uses__questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  line-height: 1.75;
  text-align: left;
  cursor: pointer;
}

.question:hover {
  border-color: rgb(var(--primary-rgb) / 0.35);
  background: var(--hover);
}

.question[aria-pressed="true"] {
  border-color: var(--primary);
  background: rgb(var(--primary-rgb) / 0.06);
}

.question[aria-pressed="true"]:hover {
  background: rgb(var(--primary-rgb) / 0.08);
}

/* A tap leaves :hover stuck on touch screens, so hover colours apply only where a pointer can hover, as in MUI. */
@media (hover: none) {
  .btn--filled:hover {
    background: var(--primary);
  }

  .btn--outlined:hover,
  .question:hover,
  .copy:hover,
  .icon-btn:hover {
    background: transparent;
  }

  .question:hover {
    background: var(--paper);
  }

  .question[aria-pressed="true"]:hover {
    background: rgb(var(--primary-rgb) / 0.06);
  }
}

.question > .icon {
  margin-top: 3px;
  color: var(--primary);
}

.question__ask {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.43;
}

.question[aria-pressed="true"] .question__ask {
  font-weight: 600;
}

.answer {
  padding: 20px;
  border-radius: 24px;
}

.answer__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer__panel[hidden] {
  display: none;
}

.answer__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.answer__title .caption {
  font-weight: 600;
}

.answer ul {
  padding-left: 20px;
}

.answer li + li {
  margin-top: 4px;
}

.board {
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 8px;
}

.board__row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  line-height: 1.66;
}

.board__row + .board__row {
  border-top: 1px solid var(--divider);
}

.board__row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board__row--head {
  background: var(--hover);
  color: var(--text-2);
  font-weight: 600;
}

.write-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--warning);
  border-radius: 8px;
}

.uses__footnote {
  display: block;
  margin-top: 16px;
}

/* What you need */

.needs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.needs__item {
  display: flex;
}

.needs__card {
  flex: 1;
  padding: 24px;
}

.needs__card .overline {
  margin-top: 16px;
  color: var(--text-2);
}

.needs__card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.needs__card p {
  margin-top: 8px;
}

.needs__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--text-2);
}

.needs__link .caption {
  order: 2;
  font-weight: 500;
  white-space: nowrap;
}

.needs__arrow {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 12px;
}

.needs__arrow::before {
  content: "";
  width: 1px;
  height: 16px;
  margin-right: 8px;
  background: var(--primary);
  opacity: 0.4;
}

.needs__arrow .icon {
  transform: rotate(90deg);
}

/* Connect */

.tabs {
  position: relative;
  display: flex;
  margin-bottom: 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--divider);
}

/* One indicator that slides to the selected tab, as MUI's does. */
.tabs__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
}

.tabs__indicator--ready {
  transition:
    left 300ms cubic-bezier(0.4, 0, 0.2, 1),
    width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tab {
  min-width: 90px;
  min-height: 44px;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected="true"] {
  color: var(--text);
}

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

.panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel[hidden] {
  display: none;
}

.fields {
  border: 1px solid var(--divider);
  border-radius: 8px;
}

.field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
}

.field + .field {
  border-top: 1px solid var(--divider);
}

.field__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  word-break: break-all;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.43;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: -2px;
  border-radius: 50%;
  background: rgb(var(--primary-rgb) / 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Flight's bordered info Alert */
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgb(var(--info-rgb) / 0.28);
  border-radius: 12px;
  background: rgb(var(--info-rgb) / 0.06);
  font-size: 0.875rem;
  line-height: 1.43;
}

.alert > .icon {
  margin-top: 2px;
  color: var(--info);
  font-size: 1.125rem;
}

.alert__title {
  margin-bottom: 2px;
  font-weight: 500;
}

.alert__body {
  color: var(--text-2);
}

.guide {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.guide .icon {
  font-size: 0.75rem;
}

.code-block {
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 8px;
}

.code-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 2px 12px;
  border-bottom: 1px solid var(--divider);
  background: var(--hover);
}

.code-block__head .caption {
  font-weight: 600;
}

.code-block pre {
  padding: 12px;
  overflow-x: auto;
  font-size: 0.8125rem;
  white-space: pre;
}

.platforms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.platform h3 {
  font-size: 1rem;
  font-weight: 600;
}

.walkthrough .overline {
  margin-bottom: 8px;
  color: var(--text-2);
}

.walkthrough .card {
  padding: 8px;
}

.walkthrough[hidden] {
  display: none;
}

/* Control */

.control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.control h3 {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
}

.control p {
  margin-top: 4px;
}

.control__terms {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}

/* Help: native <details> */

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
}

.faq details {
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--paper);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.43;
  list-style: none;
  cursor: pointer;
}

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

.faq summary:hover {
  background: var(--hover);
}

.faq summary:focus-visible {
  outline-offset: -2px;
}

.faq summary .icon {
  color: var(--text-2);
  font-size: 12px;
  transition: transform 150ms;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 20px 16px;
}

/* Footer */

.footer {
  padding: 48px 16px;
  border-top: 1px solid var(--divider);
  background: var(--paper);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer h2 {
  margin-top: 20px;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer__legal {
  display: block;
  max-width: 480px;
  margin-top: 8px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__row > .text-2 {
  width: 56px;
}

.footer__links {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.footer__links a {
  color: var(--text-2);
}

/* Wider screens */

@media (min-width: 600px) {
  .field {
    grid-template-columns: 160px 1fr;
  }

  .control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagram {
    flex-wrap: nowrap;
    gap: 16px;
  }

  .chips {
    flex: 1;
  }

  .job-head__where {
    display: block;
  }
}

@media (min-width: 900px) {
  .topbar__nav {
    display: flex;
  }

  .topbar__actions {
    margin-left: 0;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section--panel {
    min-height: 100vh;
    margin: 48px 16px;
    padding-top: 96px;
    padding-bottom: 96px;
    border: 1px solid var(--divider);
    border-radius: 32px;
  }

  .heading {
    margin-bottom: 40px;
  }

  .heading h2 {
    font-size: 2.5rem;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .why {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .why__band {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    padding: 48px;
  }

  .two-way__chat {
    margin-right: 64px;
  }

  .two-way__chat-body {
    padding-bottom: 40px;
  }

  .two-way__job {
    margin-top: -32px;
    margin-left: 48px;
  }

  .uses {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
  }

  .answer {
    position: sticky;
    top: 88px;
  }

  .needs {
    grid-template-columns: minmax(0, 1fr) 7rem minmax(0, 1fr) 7rem minmax(0, 1fr);
  }

  .needs__link {
    flex-direction: column;
    padding: 0 8px;
  }

  .needs__link .caption {
    order: 0;
  }

  .needs__arrow::before {
    width: 56px;
    height: 1px;
    margin-right: 0;
  }

  .needs__arrow .icon {
    margin-left: -4px;
    transform: none;
  }

  .connect {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
  }

  .walkthrough {
    position: sticky;
    top: 80px;
  }

  .control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary .icon,
  .tabs__indicator--ready,
  .tooltip {
    transition: none;
  }

  .copy--swapped .icon,
  .copy--swapped span {
    animation: none;
  }
}
