/* 'Piper adapts to you as you work together': three claims, each beside a
 * window that plays its example. */

#adapts h2 {
  max-width: 11em;
}
.cl__lab {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.cl__line {
  margin: 0;
  max-width: 17em;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cl__line b {
  font-weight: 600;
  color: var(--accent);
}
.vw {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  translate: 0 14px;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    translate 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vw.play {
  opacity: 1;
  translate: 0 0;
}
.win {
  flex: 0 0 auto;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 rgb(var(--shadow) / 0.04),
    0 28px 56px -36px rgb(var(--shadow) / 0.45);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  overflow: hidden;
}
.win--chat {
  display: flex;
  flex-direction: column;
}
.ch__log {
  height: 318px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 18px 22px 14px;
  -webkit-mask-image: linear-gradient(transparent, #000 46px);
  mask-image: linear-gradient(transparent, #000 46px);
}
.ch__a {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ch__a p {
  margin: 0;
  color: var(--ink-2);
}
.ch__u {
  align-self: flex-end;
  max-width: 80%;
  padding: 9px 16px;
  border-radius: 18px;
  background: var(--bone-2);
  color: var(--ink-2);
}
.mn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.mn b {
  font-weight: 500;
  color: var(--ink-2);
}
.mn__i {
  color: var(--accent);
  display: grid;
}
.mn__i svg {
  width: 15px;
  height: 15px;
}
.ch__new {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: -14px;
  transition:
    max-height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.3s 0.1s,
    margin 0.45s;
}
.vw.s2 .ch__u,
.vw.s3 .ch__new--a,
.vw.s4 .ch__new--m {
  max-height: 140px;
  opacity: 1;
  margin-top: 0;
}
.cmp {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
}
.cmp__t {
  flex: 1;
  min-height: 21px;
  color: var(--ink);
}
.cmp__t:empty::before {
  content: 'Ask Piper anything\2026';
  color: var(--faint);
}
.cmp__s {
  padding: 6px 14px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 600;
}
.vw.s2 .cmp__s {
  animation: press 0.45s both;
}
.win--mail {
  font-size: 14.5px;
}
.mp__h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
  color: var(--ink);
}
.mp__hi {
  display: grid;
  color: var(--muted);
}
.mp__hi svg {
  width: 16px;
  height: 16px;
}
.mp__wrap {
  display: flex;
  gap: 12px;
  padding: 16px 18px 0;
}
.mp__av {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
}
.mp__form {
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.ml__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13.5px;
}
.ml__k {
  width: 50px;
  color: var(--muted);
}
.ml__chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bone);
  border: 1px solid var(--rule);
  font-size: 12.5px;
  white-space: nowrap;
}
.ml__body {
  padding: 12px 16px 6px;
}
.ml__body p {
  margin: 0 0 9px;
}
.ml__old {
  transition: background 0.15s;
}
.vw.s1 .ml__old {
  background: color-mix(in srgb, var(--viz-3) 26%, transparent);
}
.vw.s2 .ml__old {
  display: none;
}
.mp__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 0 62px;
}
.mp__send {
  padding: 7px 18px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13.5px;
  font-weight: 600;
}
.mp__sent {
  display: none;
  font-size: 13.5px;
  color: var(--ok);
  font-weight: 600;
}
.vw.s3 .mp__send {
  animation: press 0.45s both;
}
.vw.s4 .mp__send {
  display: none;
}
.vw.s4 .mp__sent {
  display: inline;
}
.mp__note {
  padding: 12px 18px 16px 62px;
  opacity: 0;
  transition: opacity 0.35s;
}
.vw.s4 .mp__note {
  opacity: 1;
}
.win--task {
  font-size: 14.5px;
}
.tk__body {
  padding: 16px 20px 6px;
  color: var(--ink-2);
  transition: opacity 0.3s;
}
.tk__body p {
  margin: 0 0 8px;
}
.tk__body ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tk__foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
}
.tk__gap {
  flex: 1;
}
.tk__dis {
  position: relative;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background 0.15s;
}
.tk__btn {
  padding: 6px 14px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--ink-2);
  transition: opacity 0.3s;
}
.tk__btn--go {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.tk__menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  width: 300px;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -20px rgb(var(--shadow) / 0.5);
  opacity: 0;
  translate: 0 6px;
  pointer-events: none;
  transition:
    opacity 0.2s,
    translate 0.25s;
}
.tk__menu i {
  font-style: normal;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.tk__closed {
  display: none;
  font-size: 13.5px;
  color: var(--muted);
}
.vw.s1 .tk__dis {
  background: var(--bone);
}
.vw.s2 .tk__menu {
  opacity: 1;
  translate: 0 0;
}
.vw.s3 .tk__menu .on {
  background: var(--bone-2);
  color: var(--ink);
}
.vw.s4 .tk__menu {
  opacity: 0;
}
.vw.s4 .tk__dis {
  display: none;
}
.vw.s4 .tk__btn,
.vw.s4 .tk__gap {
  display: none;
}
.tk__closed b {
  font-weight: 600;
  color: var(--ink-2);
}
.vw.s4 .tk__closed {
  display: inline;
}
.vw.s4 .tk__body {
  opacity: 0.45;
}
.tk__note {
  padding: 12px 20px 16px;
  opacity: 0;
  transition: opacity 0.35s;
}
.vw.s5 .tk__note {
  opacity: 1;
}
.fc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.fc img {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}
.fc__t {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.fc__t b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
}
.fc__t i {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
}
.fc__o {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.fc__o svg {
  width: 13px;
  height: 13px;
}
#adapts .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 80px;
  align-items: start;
  display: block;
}
#adapts {
  background:
    radial-gradient(50% 60% at 82% 40%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(40% 50% at 8% 100%, color-mix(in srgb, var(--viz-7) 9%, transparent), transparent 70%), var(--paper);
  padding: 104px 0;
}
#adapts .head h2 {
  max-width: none;
}
#adapts .a4r {
  transition:
    opacity 0.5s ease,
    translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}
.a4 {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 56px;
}
.a4t {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#adapts .a4v {
  position: static;
  inset: auto;
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
  max-width: 600px;
  width: 100%;
  justify-self: end;
}
.a4.wait .a4r:not(.in) {
  opacity: 0;
  translate: 0 18px;
}
.a4r {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
  transition:
    opacity 0.5s ease,
    translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.a4r.in {
  opacity: 1;
  translate: 0 0;
}
#adapts .a4v.s2 .ml__old {
  display: inline;
  background: none;
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--danger) 70%, transparent);
}
#adapts .a4v.s2 .ml__new {
  color: var(--ink);
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  border-radius: 3px;
}
#adapts .a4v .ml__new:empty {
  background: none;
}
#adapts .a4v .mp__foot {
  padding: 14px 18px 16px 62px;
}
#adapts .a4v .mp__note {
  padding: 0;
  margin-right: auto;
}
#adapts .a4v .tk__closed {
  display: none !important;
}
#adapts .a4v .tk__note {
  padding: 0;
}
#adapts .a4v:not(.s4) .tk__note {
  display: none;
}
#adapts .ch__a .fc {
  width: 340px;
  max-width: 100%;
}
#adapts .a4v .ch__new {
  transition:
    max-height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.3s 0.1s,
    margin 0.45s !important;
}
#adapts .a4r:nth-child(2) {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
#adapts .a4r:nth-child(2) .a4t {
  order: 2;
}
#adapts .a4r:nth-child(2) .a4v {
  order: 1;
  justify-self: start;
}
#adapts .a4v .mp__note,
#adapts .a4v .tk__note,
#adapts .a4v .tk__menu,
#adapts .a4v .tk__body {
  transition:
    opacity 0.35s ease,
    translate 0.3s ease !important;
}
#adapts .a4 {
  gap: 36px;
  margin-top: 44px;
}
#adapts .a4v.s2:not(.s4) .tk__body {
  opacity: 0.18;
}
#adapts .a4v .tk__menu {
  width: 280px;
}
@media (max-width: 900px) {
  .a4 {
    gap: 52px;
    margin-top: 40px;
  }
  .a4r,
  #adapts .a4r:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  #adapts .a4r:nth-child(2) .a4t {
    order: -1;
  }
  #adapts .a4r:nth-child(2) .a4v {
    justify-self: stretch;
  }
  .cl__line {
    font-size: 26px;
  }
}
@media (max-width: 680px) {
  .cl__line {
    font-size: 23px;
  }
  .win {
    font-size: 14px;
  }
  .ch__log {
    height: 300px;
    padding: 16px 14px 12px;
  }
  .ml__row {
    gap: 8px;
    padding: 8px 12px;
  }
  .ml__k {
    width: auto;
    min-width: 46px;
  }
  .ml__chip {
    white-space: normal;
    overflow-wrap: anywhere;
    border-radius: 10px;
  }
  .mp__wrap {
    padding: 14px 12px 0;
    gap: 8px;
  }
  .mp__av {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .mp__foot,
  .a4v .mp__foot {
    flex-wrap: wrap;
    padding: 12px 12px 14px;
  }
  .a4v .mp__note {
    order: 2;
    flex-basis: 100%;
    margin: 10px 0 0;
  }
  .tk__foot {
    flex-wrap: wrap;
  }
  .tk__note {
    flex-basis: 100%;
  }
  .tk__menu {
    width: min(270px, calc(100vw - 80px));
  }
}
@media (prefers-reduced-motion: reduce) {
  #adapts * {
    transition: none !important;
    animation: none !important;
  }
  .vw * {
    transition: none !important;
    animation: none !important;
  }
  .play * {
    animation: none !important;
  }
  .a4.wait .a4r {
    opacity: 1;
    translate: 0 0;
  }
}
