/* Landing surface: warm paper with graphite ink. The product itself (widget, inbox) keeps the
   Relay Open tokens from tokens.css, so every demo looks exactly like the app. */
:root {
  --page-paper: #efede6;
  --page-paper-deep: #e5e2d8;
  --page-ink: #151615;
  --page-ink-soft: #33362f;
  --page-muted: #5b5f56;
  --page-rule: rgb(21 22 21 / 0.14);
  --page-rule-strong: rgb(21 22 21 / 0.42);
  --page-lime: #c4ef7a;
  --page-lime-ink: #12170e;
  --page-green: #5a8c14;
  --page-progress: #9fd84a;
  --page-serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --page-gutter: clamp(16px, 4vw, 48px);
  --page-max: 1280px;
  --page-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--page-paper);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--page-paper);
  color: var(--page-ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--page-ink);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}
.mono {
  font-family: var(--mono);
}
.serif {
  font-family: var(--page-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--page-ink);
  border-radius: 2px;
  background: var(--page-ink);
  color: var(--page-paper);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration-fast),
    color var(--duration-fast);
}
.button:hover {
  background: var(--page-lime);
  color: var(--page-lime-ink);
}
.button span {
  transition: transform var(--duration-slow) var(--page-ease);
}
.button:hover span {
  transform: translateX(3px);
}
.cta-note {
  margin: 12px 0 0;
  color: var(--page-muted);
  font: 12px/1.5 var(--mono);
}

/* Header */
.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
/* Same wordmark as the dashboard sidebar. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--page-ink);
  font: 650 20px/1 var(--sans);
  letter-spacing: -0.055em;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.brand path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: square;
}
.brand circle {
  fill: var(--page-lime);
}
/* `.chat` is ink on a lime chip, as in the dashboard and emails: lime text does not read on paper. */
.brand span span {
  margin-left: 1px;
  padding: 2px 4px 3px 3px;
  background: var(--page-lime);
  color: var(--page-lime-ink);
  letter-spacing: -0.04em;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}
.header-links a,
.use-cases summary {
  text-decoration: none;
  white-space: nowrap;
}
.header-links .sign-in,
.header-links .pricing {
  color: var(--page-ink-soft);
}
.header-links .sign-in:hover,
.header-links .pricing:hover {
  color: var(--page-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.header-links .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
/* Use-case pages: a disclosure that opens on click or Enter and works without JavaScript. */
.use-cases {
  position: relative;
}
.use-cases summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--page-ink-soft);
  list-style: none;
  cursor: pointer;
}
.use-cases summary::-webkit-details-marker {
  display: none;
}
.use-cases summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--duration-fast);
}
.use-cases[open] summary,
.use-cases summary:hover {
  color: var(--page-ink);
}
.use-cases[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}
.use-cases ul {
  position: absolute;
  top: calc(100% + 8px);
  left: -18px;
  width: 340px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--page-ink);
  background: var(--page-paper);
  box-shadow: 0 30px 60px -36px rgb(21 22 21 / 0.6);
  list-style: none;
}
.use-cases a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
}
.use-cases a b {
  font-weight: 600;
}
.use-cases a span {
  color: var(--page-muted);
  font-size: 13px;
}
.use-cases a:hover,
.use-cases a[aria-current="page"] {
  background: var(--page-paper-deep);
}

/* Hero */
.hero {
  padding-block: clamp(28px, 6vw, 72px) clamp(28px, 4vw, 44px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 24px 64px;
  align-items: end;
}
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 92px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 .serif {
  display: block;
  letter-spacing: -0.03em;
}
.hero-aside strong {
  color: var(--page-ink);
  font-weight: 600;
}
.hero-aside p:not(.cta-note) {
  margin: 0 0 24px;
  color: var(--page-ink-soft);
  font-size: 19px;
  line-height: 1.45;
}

/* Story stage: one frame that switches between the customer's site and the team's inbox. */
.stage {
  margin-bottom: clamp(96px, 14vw, 180px);
}
.stage-frame {
  position: relative;
  container-type: inline-size;
  border: 1px solid var(--page-ink);
  background: var(--page-paper-deep);
  box-shadow: 0 48px 80px -56px rgb(21 22 21 / 0.55);
}
.stage-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--page-ink);
  background: var(--page-paper);
  font: 12px/1 var(--mono);
}
.stage-lights {
  display: flex;
  gap: 6px;
}
.stage-lights i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--page-rule-strong);
  border-radius: 50%;
}
.stage-url {
  position: relative;
  height: 28px;
  overflow: hidden;
  color: var(--page-muted);
}
.stage-url span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  transition:
    transform 520ms var(--page-ease),
    opacity 520ms var(--page-ease);
}
.stage-url span b {
  color: var(--page-ink);
  font-weight: 400;
}
.stage-who {
  position: relative;
  display: grid;
  min-width: 112px;
  height: 28px;
  overflow: hidden;
}
.stage-who span {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0 10px;
  white-space: nowrap;
  transition:
    transform 520ms var(--page-ease),
    opacity 520ms var(--page-ease);
}
.stage-who .who-site {
  background: var(--page-ink);
  color: var(--page-paper);
}
.stage-who .who-team {
  background: var(--page-lime);
  color: var(--page-lime-ink);
}
.stage[data-scene="site"] .url-team,
.stage[data-scene="site"] .who-team {
  opacity: 0;
  transform: translateY(100%);
}
.stage[data-scene="inbox"] .url-site,
.stage[data-scene="inbox"] .who-site {
  opacity: 0;
  transform: translateY(-100%);
}
.stage-view {
  position: relative;
  height: clamp(560px, 46vw, 640px);
  overflow: hidden;
}
.scene {
  position: absolute;
  inset: 0;
  transition:
    opacity 560ms var(--page-ease),
    transform 640ms var(--page-ease),
    visibility 0s linear 0s;
}
.stage[data-scene="site"] .scene-inbox,
.stage[data-scene="inbox"] .scene-site {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 560ms var(--page-ease),
    transform 640ms var(--page-ease),
    visibility 0s linear 640ms;
}
.stage[data-scene="site"] .scene-inbox {
  transform: translateX(6%);
}
.stage[data-scene="inbox"] .scene-site {
  transform: translateX(-6%);
}

.stage-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stage-steps li {
  display: flex;
  min-width: 0;
}
.step {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px 16px 4px 0;
  border: 0;
  border-top: 1px solid var(--page-ink);
  background: none;
  color: var(--page-muted);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.step time {
  font: 12px/1 var(--mono);
}
.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: calc(var(--progress, 0) * 100%);
  height: 7px;
  background: var(--page-progress);
  box-shadow: inset 0 -1px 0 rgb(18 23 14 / 0.25);
}
.step[aria-current="step"],
.step:hover {
  color: var(--page-ink);
}
.step-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 4px 0 16px;
  border: 0;
  background: none;
  color: var(--page-ink);
  font: 12px/1 var(--mono);
  cursor: pointer;
}
.step-toggle[hidden] {
  display: none;
}
.step-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Customer's site inside the stage (a placeholder product called Example App). */
.site {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  background: #fbfaf7;
  color: #20231f;
  font-size: 14px;
}
.site-nav {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 20px 14px;
  border-right: 1px solid #e6e3db;
  background: #f6f4ef;
  color: #61655d;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px 8px;
  color: #20231f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-logo i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(#3d6cf5 0 50%, #20231f 0);
}
.site-nav span {
  padding: 7px 10px;
}
.site-nav .on {
  background: #e9e6de;
  color: #20231f;
  font-weight: 600;
}
.site-main {
  padding: 22px clamp(20px, 4cqw, 44px);
}
.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  color: #61655d;
  font-size: 13px;
}
.site-top .menu {
  display: none;
}
.site-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3d6cf5;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.site-main h3 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.site-main > p {
  margin: 0 0 22px;
  color: #61655d;
}
.site-members {
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-members li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e6e3db;
}
.site-members .av {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9e6de;
  font-size: 11px;
  font-weight: 700;
}
.site-members small {
  color: #61655d;
  font-size: 13px;
}
.site-members span:last-child {
  color: #61655d;
}
.site-widget {
  position: absolute;
  right: 20px;
  bottom: 88px;
  width: min(372px, calc(100% - 40px));
  height: calc(100% - 108px);
  max-height: 500px;
}
.site-launcher {
  position: absolute;
  right: 20px;
  bottom: 20px;
}

/* Widget mock: geometry and styles follow apps/widget. */
.w {
  --accent: var(--color-beacon);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-top: 2px solid var(--text);
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.55);
}
.w[data-theme="light"] {
  --canvas: var(--widget-light-canvas);
  --surface: var(--widget-light-surface);
  --line: var(--widget-light-line);
  --line-strong: var(--widget-light-line-strong);
  --text: var(--widget-light-text);
  --muted: var(--widget-light-muted);
}
.w-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--line);
}
.w-head strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.w-head strong + span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.w-actions {
  display: flex;
  gap: 4px;
}
.w-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 20px;
  line-height: 1;
}
.w-icon svg,
.w-attach svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.w-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}
.w-welcome {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  transition: opacity 320ms var(--page-ease);
}
.w-welcome i {
  width: 14px;
  height: 14px;
  background: var(--accent);
}
.w-welcome p {
  max-width: 26ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.w-welcome small {
  max-width: 30ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.w[data-has-messages="true"] .w-welcome {
  opacity: 0;
}
.w-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.w-list li {
  display: flex;
  justify-content: flex-start;
  animation: rise 420ms var(--page-ease) both;
}
.w-list li.is-visitor {
  justify-content: flex-end;
}
.w-list li[hidden] {
  display: none;
}
.w-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-left: 1px solid var(--line-strong);
}
.is-visitor .w-bubble {
  border-left: 0;
  border-right: 1px solid var(--line-strong);
}
.w-bubble p {
  margin: 0;
}
.w-bubble footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  min-height: 16px;
  margin-top: 4px;
  color: var(--muted);
  font: 10px/1.4 var(--mono);
}
.w-status::after {
  content: "✓";
}
.w-status[data-status="sending"]::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.w-status[data-status="read"] {
  color: var(--accent);
}
.w[data-theme="light"] .w-status[data-status="read"] {
  color: var(--widget-light-signal-foreground);
}
.w-status[data-status="read"]::after {
  content: "✓✓";
}
.w-composer {
  display: grid;
  gap: 4px;
  padding: 10px 14px 8px;
  border-top: 1px solid var(--line);
}
.w-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 40px;
  align-items: end;
  gap: 6px;
}
.w-attach {
  display: grid;
  place-items: center;
  height: 40px;
}
.w-input {
  min-height: 40px;
  padding: 9px 2px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.w-input:empty::before {
  content: "Write a message…";
  color: var(--muted);
}
.w-input.typing::after,
.ib-input.typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 1px;
  background: currentColor;
  vertical-align: -0.15em;
  animation: caret 1s steps(1) infinite;
}
.w-send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--ink);
  font-size: 18px;
  transition: transform 160ms;
}
.w-send.pressed,
.ib-send.pressed {
  transform: scale(0.92);
}
.w-composer small {
  color: var(--muted);
  font: 9px/1.2 var(--mono);
}
.w-by {
  padding: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px/1.4 var(--mono);
  text-align: center;
  white-space: nowrap;
}
.launcher {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--text);
}
.launcher[data-theme="light"] {
  --canvas: var(--widget-light-canvas);
  --line: var(--widget-light-line);
  --text: var(--widget-light-text);
}
.launcher-mark {
  position: relative;
  width: 26px;
  height: 26px;
}
.launcher-mark i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 0 solid currentColor;
}
.launcher-mark i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
}
.launcher-mark i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 3px 3px 0 0;
}
.launcher-mark i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 3px 3px 0;
}
.launcher-mark i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 3px 3px;
}
.launcher-mark b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.launcher[data-size="small"] {
  width: 44px;
  height: 44px;
}
.launcher[data-size="small"] .launcher-mark {
  width: 20px;
  height: 20px;
}
.launcher[data-size="small"] .launcher-mark i {
  width: 6px;
  height: 6px;
  border-width: 2.5px;
}
.launcher[data-size="small"] .launcher-mark i:nth-child(1) {
  border-width: 2.5px 0 0 2.5px;
}
.launcher[data-size="small"] .launcher-mark i:nth-child(2) {
  border-width: 2.5px 2.5px 0 0;
}
.launcher[data-size="small"] .launcher-mark i:nth-child(3) {
  border-width: 0 2.5px 2.5px 0;
}
.launcher[data-size="small"] .launcher-mark i:nth-child(4) {
  border-width: 0 0 2.5px 2.5px;
}

/* Inbox mock: layout and styles follow apps/dashboard (queue, thread, visitor details) in its
   default light theme; the values repeat html[data-theme="light"] from tokens.css. */
.ib,
.tour-view {
  --canvas: #efede6;
  --surface: #f7f6f1;
  --selected: #e2dfd4;
  --hover: #e8e5dc;
  --line: #d6d3c9;
  --line-strong: #7f847a;
  --text: #151615;
  --muted: #5b5f56;
  --color-receiver-200: #33362f;
  --accent-foreground: #4f7d12;
  --action-primary-bg: #151615;
  --action-primary-fg: #efede6;
}
.ib {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.ib-queue {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.ib-qhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
}
.ib-qhead strong {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.ib-qhead strong small {
  margin-left: 6px;
  color: var(--muted);
  font: 11px var(--mono);
  letter-spacing: 0;
}
.ib-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-foreground);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
}
.ib-live::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
}
.ib-tabs {
  display: grid;
  gap: 4px;
  padding: 0 20px 12px;
  font-size: 12px;
  grid-template-columns: 1fr 1fr;
}
.ib-tabs span {
  padding: 4px 10px;
  color: var(--muted);
  display: grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid transparent;
}
.ib-tabs .on {
  background: var(--selected);
  color: var(--text);
  border-color: var(--line-strong);
}
.ib-select {
  display: flex;
  justify-content: space-between;
  margin: 0 20px 8px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 12px;
  align-items: center;
  background: var(--surface);
}
.ib-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ib-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 5px 10px;
  padding: 18px 20px;
  border-left: 0;
  border-bottom: 0;
  font-size: 13px;
  line-height: 1.45;
}
.ib-row[hidden] {
  display: none;
}
.ib-row.new {
  animation: rise 480ms var(--page-ease) both;
}
.ib-row.selected {
  border-left-color: var(--text);
  background: var(--selected);
  box-shadow: inset 2px 0 var(--text);
}
.ib-av {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--selected);
  color: var(--muted);
  font: 10px var(--mono);
  border: 1px solid var(--line);
  font-size: 11px;
}
.ib-row.selected .ib-av {
  background: var(--hover);
}
.ib-row strong {
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ib-row time {
  color: var(--muted);
  font: 10px/2 var(--mono);
}
.ib-pv {
  grid-column: 2 / 4;
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}
.ib-as {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}
.ib-unread {
  grid-column: 3;
  justify-self: end;
  min-width: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: var(--ink);
  font: 10px/16px var(--mono);
  text-align: center;
}
.ib-unread[hidden] {
  display: none;
}
.ib-thread {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}
.ib-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
.ib-head > .ib-av {
  width: auto;
  height: auto;
  border: 0;
  background: none;
}
.ib-back {
  display: none;
  font-size: 18px;
}
.ib-who {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-right: auto;
}
.ib-who strong {
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 22px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.chip {
  justify-self: start;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: 9px/16px var(--mono);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.ib-assignee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 13px;
  white-space: nowrap;
  background: var(--surface);
}
.ib-assignee svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.ib-assignee::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 0 0 4px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.ib-primary {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 2px;
  background: var(--action-primary-bg);
  color: var(--action-primary-fg);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ib-primary .short {
  display: none;
}
.ib-more {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--text);
  border-color: var(--line-strong);
}
.ib-history {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  min-height: 0;
  padding: 20px 24px;
  overflow: hidden;
  font-size: 15px;
}
.ib-msg {
  max-width: min(78%, 520px);
  animation: rise 420ms var(--page-ease) both;
}
.ib-msg[hidden] {
  display: none;
}
.ib-msg p {
  margin: 0;
  overflow-wrap: anywhere;
}
.ib-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 3px;
  color: var(--muted);
  font: 11px/1.6 var(--mono);
}
.ib-meta b {
  color: var(--text);
  font-weight: 500;
}
.ib-meta span {
  font-size: 9px;
}
.ib-msg.out {
  align-self: flex-end;
  text-align: right;
}
.ib-msg.out .ib-meta {
  justify-content: flex-end;
}
.ib-read {
  margin-top: 3px;
  color: var(--muted);
  font: 10px var(--mono);
}
.ib-read.is-read {
  color: var(--accent-foreground);
}
.ib-composer {
  position: relative;
  margin: 6px 24px 20px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 12px 10px 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.ib-input {
  min-height: 24px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.ib-input:empty::before {
  content: "Write a reply… Type / for quick replies";
  color: var(--muted);
}
.ib-cfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font: 10px var(--mono);
}
.ib-cactions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 8px;
}
.ib-tool {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.ib-tool svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ib-send {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 2px;
  background: var(--action-primary-bg);
  color: var(--action-primary-fg);
  font: 600 12px var(--mono);
  transition: transform 160ms;
}
.ib-input:empty ~ .ib-cfoot .ib-send {
  background: var(--muted);
  opacity: 0.85;
}
.ib-picker {
  position: absolute;
  right: -1px;
  bottom: 100%;
  left: -1px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  box-shadow: none;
  animation: rise 260ms var(--page-ease) both;
}
.ib-picker[hidden] {
  display: none;
}
.ib-picker .search {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 12px var(--mono);
}
.ib-picker ul {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}
.ib-picker li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 6px 12px;
}
.ib-picker li.group {
  display: block;
  padding: 6px 12px 2px;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: none;
}
.ib-picker li.active {
  background: var(--selected);
  box-shadow: inset 2px 0 var(--text);
}
.ib-picker code {
  color: var(--text);
  font: 12px var(--mono);
}
.ib-picker li span {
  overflow: hidden;
  color: var(--color-receiver-200);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ib-picker li i {
  color: var(--accent-foreground);
  font-style: normal;
}
.ib-picker footer {
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ib-picker footer a {
  color: var(--text);
}
.ib-picker kbd {
  padding: 0 3px;
  border: 1px solid var(--line-strong);
  font: inherit;
}
.ib-details {
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  font-size: 13px;
}
/* Visitor details: styles follow apps/dashboard (.visitor-details). */
.vd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
}
.vd-mono {
  display: grid;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--selected);
  font: 14px var(--mono);
}
.vd-id {
  min-width: 0;
}
.vd-id strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.vd-email {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}
.vd-email > span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vd-copy {
  display: grid;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  place-items: center;
}
.vd-copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
}
.vd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0 16px 16px;
  list-style: none;
}
.vd-chips li {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font: 11px/1.3 var(--mono);
}
.vd-now {
  display: grid;
  gap: 6px;
  margin: 0 16px 16px;
  padding: 12px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  overflow-wrap: anywhere;
  border-left-color: var(--accent);
}
.vd-label {
  color: var(--muted);
  font: 0.72rem/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.vd-now b {
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  color: var(--text);
}
.vd-now p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.vd-section {
  border-top: 1px solid var(--line);
}
.vd-section:last-child {
  border-bottom: 1px solid var(--line);
}
.vd-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
}
.vd-summary > span:first-child {
  flex: 1;
}
.vd-summary::after {
  content: "+";
  color: var(--muted);
  font-family: var(--mono);
}
.vd-section.open .vd-summary::after {
  content: "\2212";
}
.vd-meta {
  color: var(--muted);
  font: 11px var(--mono);
}
.vd-section dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 16px 12px;
}
.vd-section dl div {
  display: grid;
  gap: 2px;
}
.vd-section dt {
  color: var(--muted);
  font-size: 11px;
}
.vd-section dt.vd-key {
  font-family: var(--mono);
}
.vd-section dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
/* Attachments: styles follow apps/dashboard (MediaTile, FileRow). */
.att {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  margin-top: 8px;
}
.att-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 4px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.4;
}
.att-type,
.att-size {
  color: var(--muted);
  font: 11px var(--mono);
}
.att-type {
  min-width: 32px;
  padding: 2px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  text-align: center;
}
.att-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.att-down {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent-foreground);
}
.att-down svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The image itself: a screenshot of the visitor's billing page, drawn in CSS. */
.shot {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 2px;
  background: #fbfaf7;
  color: #20231f;
  font-size: 10px;
  line-height: 1.3;
}
.shot-nav {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px 8px;
  background: #f1efe9;
  color: #6a6e66;
}
.shot-nav b {
  margin-bottom: 4px;
  color: #20231f;
}
.shot-nav .on {
  color: #20231f;
  font-weight: 600;
}
.shot-main {
  padding: 10px 12px 12px;
}
.shot-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}
.shot-title span {
  padding: 1px 6px;
  border: 1.5px solid #e2554a;
  border-radius: 3px;
  color: #c43d32;
  font-size: 10px;
}
.shot-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-top: 1px solid #e9e6de;
}
.shot-row i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dcd8ce;
}
.shot-row em {
  padding: 0 5px;
  border-radius: 3px;
  background: #e6f2d7;
  color: #3d6a10;
  font-style: normal;
  font-size: 9px;
}
.shot-row.pending em {
  background: #f8ecd2;
  color: #8a5a00;
}
@container (min-width: 1040px) {
  .stage .ib {
    grid-template-columns: 272px minmax(0, 1fr) 264px;
  }
}
@container (max-width: 1039px) {
  .stage .ib-details {
    display: none;
  }
}
@container (max-width: 720px) {
  .site {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-nav {
    display: none;
  }
  .site-top {
    margin-bottom: 18px;
  }
  .site-top .menu {
    display: inline;
    color: #20231f;
    font-weight: 700;
  }
  .site-top .crumb {
    display: none;
  }
  .site-widget {
    right: 12px;
    left: 12px;
    bottom: 80px;
    width: auto;
    height: calc(100% - 96px);
  }
  .site-launcher {
    right: 12px;
    bottom: 12px;
  }
  .stage .ib {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage .ib-queue {
    display: none;
  }
  .ib-back {
    display: block;
  }
  .ib-head {
    gap: 8px;
    padding: 10px 12px;
  }
  .ib-head .av-head {
    display: none;
  }
  .ib-assignee span {
    display: none;
  }
  .ib-assignee {
    padding: 0 8px;
  }
  .ib-primary .long {
    display: none;
  }
  .ib-primary .short {
    display: inline;
  }
  .ib-history {
    padding: 16px 14px;
  }
  .ib-msg {
    max-width: 88%;
  }
  .ib-composer {
    margin: 0 14px 12px;
  }
  .ib-cfoot .count {
    display: none;
  }
}

/* Philosophy: a quiet typographic moment. */
.between {
  padding-bottom: clamp(112px, 16vw, 200px);
  text-align: center;
}
.between h2 {
  max-width: 15ch;
  margin: 0 auto;
  font-size: clamp(40px, 6.2vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.between h2 .serif {
  display: block;
  margin-top: 0.12em;
}
.mark-lime {
  background: linear-gradient(var(--page-lime), var(--page-lime)) no-repeat 0 82% / var(--mark, 100%) 0.34em;
  transition: background-size 1200ms var(--page-ease) 200ms;
}
.js .between:not(.seen) .mark-lime {
  --mark: 0%;
}
.between p {
  max-width: 34ch;
  margin: 32px auto 0;
  color: var(--page-ink-soft);
  font-size: 19px;
}

/* Section heading pattern shared by the next blocks. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 16px 64px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.section-head > p {
  margin: 0;
  color: var(--page-ink-soft);
  font-size: 18px;
}

/* Appearance: the visitor configures a real widget preview. */
.look {
  padding-bottom: clamp(112px, 14vw, 180px);
}
.look-body {
  --pick: #c4ef7a;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  border: 1px solid var(--page-ink);
  background: var(--page-paper);
}
.look-controls {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--page-ink);
}
.control {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid var(--page-rule);
}
.control legend,
.control > label {
  float: left;
  padding: 0;
  margin-bottom: 10px;
  font: 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--page-muted);
}
.segmented {
  clear: both;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  border: 1px solid var(--page-rule-strong);
}
.segmented label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  font-size: 14px;
  cursor: pointer;
}
.segmented label + label {
  border-left: 1px solid var(--page-rule-strong);
}
.segmented input,
.swatches input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.segmented label:has(input:checked) {
  background: var(--page-ink);
  color: var(--page-paper);
}
.segmented label:has(input:focus-visible),
.swatches label:has(input:focus-visible) {
  outline: 2px solid var(--page-ink);
  outline-offset: 2px;
  z-index: 1;
}
.swatches {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatches label {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--page-rule-strong);
  background: var(--swatch);
  cursor: pointer;
}
.swatches label:has(input:checked),
.swatches label.is-picked {
  box-shadow:
    inset 0 0 0 3px var(--page-paper),
    0 0 0 2px var(--page-ink);
}
.swatches .custom {
  display: grid;
  place-items: center;
  background: conic-gradient(#ee7065, #e8b84f, #69ce8d, #7dc4ff, #b79cff, #ee7065);
}
.control input[type="text"] {
  clear: both;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--page-rule-strong);
  border-radius: 2px;
  background: #fbfaf7;
  color: var(--page-ink);
  font: inherit;
  font-size: 15px;
}
.control input[type="text"]:focus-visible {
  outline-offset: 1px;
}
.look-preview {
  /* Widget and launcher are placed by `left` only, so moving between corners is one smooth transition. */
  --look-gap: 20px;
  --look-width: min(372px, calc(100% - 2 * var(--look-gap)));
  --look-launcher: 56px;
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: color-mix(in srgb, var(--pick) 34%, var(--page-paper));
  transition: background-color 420ms var(--page-ease);
  container-type: inline-size;
}
.look-host {
  position: absolute;
  inset: clamp(16px, 4cqw, 40px) clamp(16px, 4cqw, 40px) 0;
  border: 1px solid var(--page-ink);
  border-bottom: 0;
  background: #fbfaf7;
  color: #20231f;
  transition:
    background-color 420ms,
    color 420ms;
}
.look-host[data-theme="dark"] {
  background: #1c1d22;
  color: #eceef2;
}
.look-host-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  border-bottom: 1px solid rgb(127 127 127 / 0.25);
  font-size: 14px;
  font-weight: 700;
}
.look-host-bar span {
  font-weight: 400;
  opacity: 0.7;
}
.look-host-copy {
  max-width: 420px;
  padding: 28px 20px;
}
.look-host-copy h3 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.look-host-copy i {
  display: block;
  height: 8px;
  margin: 10px 0;
  background: currentColor;
  opacity: 0.12;
}
.look-host-copy i:nth-child(odd) {
  width: 82%;
}
.look-widget {
  position: absolute;
  left: calc(100% - var(--look-gap) - var(--look-width));
  bottom: calc(var(--look-gap) + var(--look-launcher) + 20px);
  width: var(--look-width);
  height: calc(100% - 160px);
  max-height: 520px;
  transition:
    left 560ms var(--page-ease),
    bottom 420ms var(--page-ease);
}
.look-launcher {
  position: absolute;
  left: calc(100% - var(--look-gap) - var(--look-launcher));
  bottom: var(--look-gap);
  transition:
    left 560ms var(--page-ease),
    width 420ms var(--page-ease),
    height 420ms var(--page-ease);
}
.look-body[data-size="small"] .look-preview {
  --look-launcher: 44px;
}
.look-body[data-position="left"] .look-widget,
.look-body[data-position="left"] .look-launcher {
  left: var(--look-gap);
}
.look-caption {
  margin: 12px 0 0;
  color: var(--page-muted);
  font: 12px/1.5 var(--mono);
}

/* Team inbox tour: a real-size inbox; on narrow screens a camera pans to the chosen part. */
.team {
  padding-bottom: clamp(112px, 14vw, 180px);
}
.tour {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.tour-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--page-rule-strong);
}
.tour-tabs button {
  display: grid;
  align-content: start;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 16px 16px 16px 0;
  border: 0;
  background: none;
  color: var(--page-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tour-tabs button b {
  position: relative;
  color: var(--page-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.tour-tabs button span {
  font-size: 14px;
  line-height: 1.45;
}
.tour-tabs button[aria-selected="true"] {
  box-shadow: inset 0 3px 0 var(--page-ink);
  color: var(--page-ink-soft);
}
.tour-tabs button[aria-selected="false"] b {
  color: var(--page-muted);
}
.tour-view {
  position: relative;
  height: 680px;
  overflow: hidden;
  border: 1px solid var(--page-ink);
  background: var(--canvas);
}
.tour-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: max(100%, 1100px);
  height: 100%;
  transition: transform 720ms var(--page-ease);
}
.tour .ib {
  grid-template-columns: 272px minmax(0, 1fr) 272px;
}
[data-region] {
  transition: opacity 420ms var(--page-ease);
}
.tour[data-focus] [data-region] {
  opacity: 0.28;
}
.tour[data-focus="queue"] [data-region~="queue"],
.tour[data-focus="replies"] [data-region~="replies"],
.tour[data-focus="context"] [data-region~="context"],
.tour[data-focus="files"] [data-region~="files"],
.tour[data-focus="alerts"] [data-region~="alerts"] {
  opacity: 1;
}
.tg {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 300px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 0 0 1px rgb(21 22 21 / 0.08),
    0 20px 40px -18px rgb(21 22 21 / 0.35);
}
.tg-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #3390ec;
  font-size: 13px;
  font-weight: 600;
}
.tg-meta time {
  color: #8c9aa8;
  font-weight: 400;
}
.tg p {
  margin: 0;
}
.tg-button {
  display: block;
  margin-top: 10px;
  padding: 8px;
  border-radius: 6px;
  background: #eaf3fd;
  text-align: center;
  font-size: 13px;
  color: #3390ec;
  font-weight: 500;
}
.tour .tg {
  right: auto;
  bottom: 16px;
  left: 16px;
  width: 240px;
}
.tour:not([data-focus="replies"]) .ib-picker {
  display: none;
}
.tour-caption {
  display: none;
  margin: 0;
  color: var(--page-ink-soft);
  font-size: 16px;
}

/* Install */
.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: start;
  padding-bottom: clamp(112px, 14vw, 180px);
}
.install h2 {
  margin: 12px 0 20px;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.install p:not(.eyebrow) {
  max-width: 38ch;
  margin: 0;
  color: var(--page-ink-soft);
  font-size: 18px;
}
.install code {
  font: 0.9em var(--mono);
}
.snippet {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--page-ink);
  background: var(--page-ink);
  color: #c9cfc2;
  font: 14px/1.75 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 32px 64px -48px rgb(21 22 21 / 0.6);
}
.snippet b {
  color: var(--text);
  font-weight: 400;
}
.snippet i {
  color: var(--accent);
  font-style: normal;
}
.snippet code {
  font: inherit;
}
.snippet span,
.snippet em {
  display: inline-block;
  padding-left: 2ch;
}
.snippet em {
  color: #8d9487;
  font-style: normal;
}

/* Pricing: the one lime field on the page. */
/* Without JavaScript the /#pricing jump keeps some paper above the card; page.js centres it. */
#pricing {
  scroll-margin-top: clamp(16px, 8vh, 96px);
}
.price {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px 64px;
  margin-bottom: clamp(112px, 14vw, 180px);
  padding: clamp(28px, 5vw, 64px);
  background: var(--page-lime);
  color: var(--page-lime-ink);
}
.price h2 {
  margin: 14px 0 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.price-amount {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: clamp(28px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.07em;
}
.price-amount span {
  font-size: clamp(120px, 20vw, 260px);
}
.price-amount small {
  margin-top: 0.5em;
  font: 15px/1.4 var(--mono);
  letter-spacing: 0;
}
.price-amount small b {
  display: block;
  font-size: 22px;
  font-weight: 400;
}
.price-facts {
  display: grid;
  align-content: end;
  gap: 28px;
}
.price ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(18 23 14 / 0.4);
}
.price li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(18 23 14 / 0.4);
  font-size: 18px;
}
.price li span {
  font: 13px/1.9 var(--mono);
  text-align: right;
}
.price .button:hover {
  background: var(--page-paper);
  color: var(--page-ink);
}
.price .cta-note {
  color: var(--page-lime-ink);
}

/* Questions */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px 64px;
  padding-bottom: clamp(112px, 14vw, 180px);
}
.faq h2 {
  margin: 12px 0 20px;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.ask-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 400px;
  padding: 16px;
  border: 1px solid var(--page-rule-strong);
}
.ask-card p {
  margin: 0;
  color: var(--page-ink-soft);
  font-size: 15px;
  line-height: 1.45;
}
.ask-card strong {
  display: block;
  color: var(--page-ink);
  font-weight: 600;
}
.ask-card .text-button {
  grid-column: 1 / -1;
  justify-content: center;
}
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--page-ink);
  border-radius: 2px;
  background: transparent;
  color: var(--page-ink);
  font: 600 15px var(--sans);
  cursor: pointer;
}
.text-button:hover {
  background: var(--page-ink);
  color: var(--page-paper);
}
.faq-list {
  border-top: 1px solid var(--page-rule-strong);
}
.faq details {
  border-bottom: 1px solid var(--page-rule-strong);
}
.faq summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: baseline;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary small {
  color: var(--page-muted);
  font: 12px var(--mono);
}
.faq summary::after {
  content: "+";
  font: 400 20px/1 var(--mono);
  text-align: right;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0;
  padding: 0 32px 22px 44px;
  color: var(--page-ink-soft);
}
.faq details code {
  font: 0.88em var(--mono);
}

/* Final */
.final {
  padding-bottom: clamp(96px, 12vw, 160px);
  text-align: center;
}
.final h2 {
  margin: 0 0 36px;
  font-size: clamp(48px, 9vw, 136px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.final h2 .serif {
  display: block;
  letter-spacing: -0.035em;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--page-rule-strong);
  font-size: 14px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer nav a {
  color: var(--page-ink-soft);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--page-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* Tablet */
@media (max-width: 1080px) {
  .hero-grid,
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-aside {
    max-width: 560px;
  }
  .look-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .look-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--page-ink);
  }
  .control:nth-child(odd) {
    border-right: 1px solid var(--page-rule);
  }
  .control.wide {
    grid-column: 1 / -1;
    border-right: 0;
  }
  .tour-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 0;
  }
  .tour-tabs button {
    align-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--page-rule-strong);
    border-radius: 2px;
  }
  .tour-tabs button b {
    font-size: 14px;
  }
  .tour-tabs button span {
    display: none;
  }
  .tour-tabs button[aria-selected="true"] {
    box-shadow: none;
    border-color: var(--page-ink);
    background: var(--page-ink);
  }
  .tour-tabs button[aria-selected="true"] b {
    color: var(--page-paper);
  }
  .tour-tabs button:focus-visible {
    outline-offset: 2px;
  }
  .tour-caption {
    display: block;
  }
  .install,
  .faq,
  .price {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phone */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .site-header {
    height: 64px;
  }
  .header-links {
    gap: 14px;
  }
  .header-links .pricing {
    display: none;
  }
  .use-cases {
    position: static;
  }
  .use-cases ul {
    left: var(--page-gutter);
    right: var(--page-gutter);
    width: auto;
  }
  .hero h1 {
    letter-spacing: -0.04em;
  }
  .hero-aside p:not(.cta-note) {
    font-size: 17px;
  }
  .hero-aside .button {
    width: 100%;
  }
  .stage-frame {
    margin: 0 calc(-1 * var(--page-gutter) + 8px);
  }
  .stage-view {
    height: 580px;
  }
  .stage-url span {
    justify-content: flex-start;
  }
  .stage-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 12px;
  }
  .stage-lights {
    display: none;
  }
  .stage-who {
    min-width: 0;
  }
  .stage-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stage-steps li:last-child {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .step {
    padding-right: 8px;
    font-size: 13px;
  }
  .step-toggle {
    padding: 0 16px;
  }
  .look-controls {
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--page-ink);
    border-bottom: 0;
  }
  .control:nth-child(odd) {
    border-right: 0;
  }
  .control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 10px 14px;
  }
  .control legend,
  .control > label {
    margin: 0;
  }
  .control .segmented {
    clear: none;
    width: min(176px, 52%);
  }
  .segmented label {
    min-height: 36px;
    font-size: 13px;
  }
  .swatches {
    clear: none;
    gap: 6px;
  }
  .swatches label {
    width: 32px;
    height: 32px;
  }
  .control.wide input[type="text"] {
    min-height: 40px;
  }
  .look-preview {
    --look-gap: 12px;
    order: -1;
    min-height: 500px;
  }
  .look-host {
    inset: 12px 12px 0;
  }
  .look-host-copy {
    padding: 20px 16px;
  }
  .look-widget {
    height: calc(100% - 132px);
  }
  /* On phones the thread column is exactly as wide as the view, so it is never cropped. */
  .tour-canvas {
    width: calc(544px + 100vw - 16px);
  }
  .tour .ib {
    grid-template-columns: 272px calc(100vw - 16px) 272px;
  }
  .tour .ib-head {
    gap: 8px;
    padding: 10px 12px;
  }
  .tour .ib-assignee span,
  .tour .ib-primary .long {
    display: none;
  }
  .tour .ib-primary .short {
    display: inline;
  }
  .tour .ib-history {
    padding: 16px 14px;
  }
  .tour .ib-msg {
    max-width: 92%;
  }
  .tour .ib-composer {
    margin: 0 14px 12px;
  }
  .tour-view {
    height: 640px;
    margin: 0 calc(-1 * var(--page-gutter) + 8px);
  }
  .snippet {
    padding: 18px 16px;
    font-size: 12px;
  }
  .price-amount {
    flex-direction: column;
    gap: 16px;
  }
  .price-amount small {
    margin-top: 0;
  }
  .price li {
    flex-direction: column;
    gap: 2px;
    font-size: 16px;
  }
  .price li span {
    text-align: left;
  }
  .price .button {
    width: 100%;
  }
  .faq summary {
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    font-size: 16px;
  }
  .faq details p {
    padding: 0 0 20px 40px;
  }
  .final .button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .header-links .sign-in {
    display: none;
  }
}
@media (max-width: 360px) {
  .site-header,
  .header-links {
    gap: 10px;
  }
  .brand {
    font-size: 18px;
  }
  .header-links,
  .header-links .button {
    font-size: 13px;
  }
  .header-links .button {
    padding: 0 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
}
