/* Use-case pages: the landing's rhythm (landing.css) plus what only these pages need. The product demos keep
   the Relay Open tokens, so they look exactly like the widget and the inbox. */

[hidden] {
  display: none !important;
}
.mono {
  font-family: var(--mono);
}

/* What the scene shows right now: one line above the frame, switched with the act. */
.d-caps {
  display: grid;
  align-items: end;
  min-height: 3.2em;
  margin-bottom: 16px;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.d-cap {
  grid-area: 1 / 1;
  max-width: 44ch;
  margin: 0;
  animation: z-cap 420ms var(--page-ease);
}
.d-cap b {
  font-weight: 650;
}
.d-cap .mono {
  margin-right: 10px;
  color: var(--page-muted);
  font-size: 12px;
  letter-spacing: 0;
  vertical-align: 0.35em;
}
.stage-steps.five {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}
@media (max-width: 640px) {
  .stage-steps.five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* One bottom padding per section, as on the landing. */
.d-section {
  padding-bottom: clamp(112px, 14vw, 180px);
}
.d-page .install {
  align-items: center;
}
.d-page .install h2 {
  margin-top: 0;
}
.codebox {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--page-ink);
  background: var(--page-ink);
  color: #c9ccc2;
  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);
}
.codebox .k {
  color: #f1f3ec;
}
.codebox .s {
  color: #c4ef7a;
}
.codebox .hl {
  display: inline-block;
  min-width: 100%;
  background: rgb(196 239 122 / 0.12);
  box-shadow: inset 2px 0 0 #c4ef7a;
}
.final .related {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin: 28px 0 0;
  font-size: 15px;
}
.final .related a {
  font-weight: 600;
  text-underline-offset: 4px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: grid;
  gap: 6px;
  align-content: start;
  padding-top: 18px;
  border-top: 1px solid var(--page-ink);
}
.facts b {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.facts span {
  color: var(--page-ink-soft);
}
@media (max-width: 760px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

/* Product pieces the landing does not use. */
.w-att {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  font: 11px/1.3 var(--mono);
}
.w-att b {
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.w-att i {
  color: var(--muted);
  font-style: normal;
}
.ib-menu {
  position: absolute;
  z-index: 3;
  min-width: 220px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  box-shadow: 0 18px 36px -24px rgb(0 0 0 / 0.5);
  font-size: 13px;
  list-style: none;
}
.ib-menu li {
  padding: 8px 10px;
}
.ib-menu li.on {
  background: var(--surface);
  font-weight: 600;
}
.ib-queue,
.stage-view {
  position: relative;
}
.tg.static {
  position: static;
  width: 100%;
  max-width: 340px;
}
.billing h3 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.billing > p {
  margin: 0 0 22px;
  color: #61655d;
}
.billing table {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
}
.billing td {
  padding: 10px 0;
  border-bottom: 1px solid #e6e3db;
}
.billing td:last-child {
  font-family: var(--mono);
  text-align: right;
}

/* Motion: state changes only; every resting state is complete without it. */
@keyframes z-cap {
  from {
    transform: translateY(8px);
  }
}
@keyframes z-drop {
  from {
    transform: translateY(-14px);
  }
}
@keyframes z-slide {
  from {
    transform: translateX(-10px);
  }
}
@keyframes z-glow {
  from {
    box-shadow: inset 0 0 0 999px rgb(196 239 122 / 0.55);
  }
  to {
    box-shadow: inset 0 0 0 999px rgb(196 239 122 / 0);
  }
}
.d-page .ib-msg,
.d-page .w-list li {
  animation: none;
}
.d-page .w-list li.is-new {
  animation: rise 420ms var(--page-ease) both;
}
.z-flash {
  animation: z-glow 1600ms var(--page-ease);
}
.ib-row.z-new {
  animation:
    z-slide 420ms var(--page-ease),
    z-glow 1600ms var(--page-ease);
}
.z-toast {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 16px;
  width: min(320px, calc(100% - 32px));
  animation: z-drop 480ms var(--page-ease);
}
.z-toast .tg {
  position: static;
  max-width: none;
  box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.5);
}
.site-widget {
  transition:
    opacity 360ms var(--page-ease),
    transform 420ms var(--page-ease);
}
.site.w-closed .site-widget {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
}
.site-launcher {
  transition: transform 160ms;
}
.site-launcher.pressed {
  transform: scale(0.92);
}
.d-page .w,
.d-page .launcher,
.d-page .w-send,
.d-page .w-welcome i,
.d-page .launcher-mark b {
  transition:
    background-color 420ms var(--page-ease),
    color 420ms var(--page-ease),
    border-color 420ms var(--page-ease);
}
.z-rise {
  transition: transform 900ms var(--page-ease);
}
.js .z-rise:not(.seen) {
  transform: translateY(24px);
}

/* Live chat widget: a skeleton customer site, like the landing's appearance preview. */
.d1-host {
  display: block;
  background: #fbfaf7;
  color: #20231f;
  transition:
    background-color 420ms,
    color 420ms;
}
.d1-host[data-theme="dark"] {
  background: #1c1d22;
  color: #eceef2;
}
.d1-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid rgb(127 127 127 / 0.25);
  font-size: 14px;
  font-weight: 700;
}
.d1-bar span {
  font-weight: 400;
  opacity: 0.7;
}
.d1-bar span:first-of-type {
  margin-left: auto;
}
.d1-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 32px;
  max-width: 760px;
  padding: 44px 24px;
}
.d1-body h3 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.d1-body i {
  display: block;
  height: 8px;
  margin: 12px 0;
  background: currentColor;
  opacity: 0.12;
}
.d1-body i:nth-child(odd) {
  width: 82%;
}
.d1-body .pill {
  display: block;
  width: 132px;
  height: 36px;
  margin-top: 24px;
  background: currentColor;
  opacity: 0.85;
}
.d1-pic {
  aspect-ratio: 4 / 3;
  background: currentColor;
  opacity: 0.07;
}
@container (max-width: 720px) {
  .d1-bar span {
    display: none;
  }
  .d1-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 16px;
  }
  .d1-pic {
    display: none;
  }
}
.look-try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 28px;
}
.look-try .control {
  padding: 0;
  border: 0;
}
.look-try .swatches label {
  width: 36px;
  height: 36px;
}
.look-try .segmented {
  grid-auto-columns: auto;
}
.look-try .segmented label {
  padding: 0 14px;
}

/* Live chat for SaaS: the script tag over the app, then the account fields in the visitor panel. */
.d2-code {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: min(540px, calc(100% - 32px));
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.55);
  transform: translate(-50%, -50%);
  transition:
    opacity 360ms var(--page-ease),
    transform 420ms var(--page-ease);
}
.d2-code[hidden] {
  display: block !important;
  opacity: 0;
  transform: translate(-50%, -46%);
  pointer-events: none;
}
.d2-code .codebox {
  padding: 22px 24px;
  border: 0;
  font-size: 13.5px;
  box-shadow: none;
}
.d2-code p {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid #353a33;
  background: #151615;
  color: #9da294;
  font: 12px/1.4 var(--mono);
}
.d2-code .hl.off {
  visibility: hidden;
}
.d-saas .ib-queue,
.d-saas .ib-thread,
.d-saas .ib-details > * {
  transition: opacity 420ms var(--page-ease);
}
.d-saas .ib.focus-attrs .ib-queue,
.d-saas .ib.focus-attrs .ib-thread {
  opacity: 0.32;
}
.d-saas .ib.focus-attrs .ib-details > :not(.vd-attrs) {
  opacity: 0.45;
}
.vd-attrs {
  position: relative;
  transition:
    box-shadow 420ms var(--page-ease),
    background-color 420ms;
}
.ib.focus-attrs .vd-attrs {
  background: var(--surface);
  box-shadow:
    inset 0 0 0 2px var(--page-lime),
    0 0 0 4px rgb(196 239 122 / 0.35);
}
.vd-from {
  display: none;
  margin-left: 8px;
  padding: 1px 6px;
  background: var(--page-lime);
  color: var(--page-lime-ink);
  font: 10px/1.6 var(--mono);
}
.ib.focus-attrs .vd-from {
  display: inline-block;
}
@container (min-width: 1040px) {
  .d-saas .stage .ib {
    grid-template-columns: 240px minmax(0, 1fr) 300px;
  }
}
@container (max-width: 1039px) {
  .d-saas .stage .ib.focus-attrs {
    grid-template-columns: minmax(0, 1fr);
  }
  .d-saas .stage .ib.focus-attrs .ib-queue,
  .d-saas .stage .ib.focus-attrs .ib-thread {
    display: none;
  }
  .d-saas .stage .ib.focus-attrs .ib-details {
    display: block;
    overflow: auto;
    border-left: 0;
  }
}
.away {
  display: grid;
  justify-items: end;
}

/* Support for startups: who answers now and what it costs sit above the inbox. */
@container (max-width: 720px) {
  .stage .ib.d3-ib .ib-queue {
    display: block;
    border-right: 0;
  }
  .stage .ib.d3-ib .ib-thread {
    display: none;
  }
}
.d3-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 32px;
  align-items: end;
  margin-bottom: 16px;
}
.d3-top .d-caps {
  margin: 0;
}
.d3-team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.d3-avs {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.d3-avs li {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--page-ink);
  background: var(--page-paper);
  font: 11px/1 var(--mono);
  animation: z-drop 420ms var(--page-ease);
}
.d3-avs li:first-child {
  background: var(--page-lime);
}
.d3-price {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--page-rule-strong);
}
.d3-price b {
  font-size: 22px;
  letter-spacing: -0.03em;
}
.d3-price span {
  color: var(--page-muted);
  font: 11px/1.3 var(--mono);
}
@media (max-width: 760px) {
  .d3-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .d3-team {
    justify-content: space-between;
  }
}
.d3-grow h2 {
  max-width: 15ch;
  margin: 0 0 clamp(32px, 5vw, 56px);
  font-size: clamp(40px, 6.2vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.d3-grow h2 .serif {
  display: block;
}
.d3-rows {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--page-ink);
  list-style: none;
}
.d3-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 16px 32px;
  align-items: center;
  padding-block: clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--page-rule-strong);
}
.d3-rows .who {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.d3-rows .who small {
  display: block;
  color: var(--page-muted);
  font: 400 12px/1.5 var(--mono);
  letter-spacing: 0;
}
.d3-rows .sq {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.d3-rows .sq i {
  width: clamp(18px, 2.4vw, 28px);
  height: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--page-ink);
}
.d3-rows .sq i.on {
  background: var(--page-lime);
}
.d3-rows .cost {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.d3-rows .cost small {
  color: var(--page-muted);
  font-size: 0.4em;
  font-weight: 400;
  letter-spacing: 0;
}
.d3-fine {
  margin: 16px 0 0;
  color: var(--page-muted);
  font: 12px/1.5 var(--mono);
}
@media (max-width: 760px) {
  .d3-rows li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .d3-rows .sq {
    grid-column: 1 / -1;
    order: 3;
  }
}

/* Human support chat: one short conversation beside its headline. */
.h-convo {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px 72px;
  align-items: start;
}
.h-intro {
  position: sticky;
  top: 32px;
  display: grid;
  gap: 18px;
}
.h-intro h2 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h-intro h2 .serif {
  display: block;
}
.h-intro p {
  max-width: 34ch;
  margin: 0;
  color: var(--page-ink-soft);
  font-size: 18px;
}
.h-intro .mono {
  color: var(--page-muted);
  font-size: 12px;
}
.h-thread {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--page-ink);
  list-style: none;
}
.h-thread li {
  display: grid;
  gap: 8px;
  max-width: 30ch;
}
.h-thread li.out {
  justify-self: end;
  text-align: right;
}
.h-thread p {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.h-thread li.out p {
  font-family: var(--page-serif);
  font-style: italic;
}
.h-meta {
  display: flex;
  gap: 10px;
  color: var(--page-muted);
  font: 12px/1.4 var(--mono);
}
.out .h-meta {
  justify-content: flex-end;
}
.h-meta b {
  color: var(--page-ink);
  font-weight: 400;
}
.h-st.read {
  color: var(--page-green);
}
.h-file {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--page-rule-strong);
  font: 12px/1.2 var(--mono);
}
.h-file .att-type {
  padding: 2px 5px;
  background: var(--page-ink);
  color: var(--page-paper);
  font-size: 10px;
}
.h-file small {
  color: var(--page-muted);
  font: inherit;
}
.h-why {
  justify-self: end;
  max-width: 34ch;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--page-lime) 45%, var(--page-paper));
  font: 12.5px/1.45 var(--mono);
  text-align: left;
}
.js .h-thread li.z-rise:not(.out):not(.seen) {
  transform: translate(16px, 12px);
}
.js .h-thread li.out.z-rise:not(.seen) {
  transform: translate(-16px, 12px);
}
.h-right .section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.h-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.h-grid li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 20px;
  border-top: 1px solid var(--page-ink);
}
.h-grid b {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.h-grid span {
  max-width: 40ch;
  color: var(--page-ink-soft);
  font-size: 18px;
}
@media (max-width: 860px) {
  .h-convo,
  .h-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-intro {
    position: static;
  }
  .h-thread li {
    max-width: 92%;
  }
}
