@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ground: #0b0b0b;
  --text: #f2f2f2;
  --text-quiet: #8a8a8a;
  --text-faint: #626262;
  --surface: #1f1f1f;
  --surface-raised: #272727;
  --line: #2a2a2a;
  --warning: #e8a33d;
  --success: #5ac077;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  background: var(--ground);
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.win {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: clip;
  background: var(--ground);
  color: var(--text);
  font-family: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}
.room {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grip {
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  z-index: 7000;
}

.mark {
  position: absolute;
  left: 48px;
  top: 36px;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.wordmark {
  --mark: 28px;
  display: block;
  width: calc(var(--mark) * 3.071);
  height: calc(var(--mark) * 0.98);
  margin: calc(var(--mark) * 0.106) 0 calc(var(--mark) * -0.086);
  padding: 0;
  border: 0;
  background: url("fig-bot-podstawowa-gladka.svg") center / 100% 100% no-repeat;
}
div.wordmark {
  cursor: default;
}
@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) {
  .wordmark {
    background-image: url("fig-bot-podstawowa.svg");
  }
}
.tagline {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -0.011em;
  color: var(--text-quiet);
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 46px;
  margin: 0;
  padding: 0 5px 0 18px;
  border-radius: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease;
}
.composer:focus-within {
  border-color: #3d3d3d;
}
.composer input,
.composer textarea {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
  letter-spacing: -0.011em;
  color: var(--text);
  caret-color: var(--text);
}
.composer input {
  line-height: 20px;
}
.composer textarea {
  max-height: 150px;
  padding: 12px 0;
  resize: none;
  line-height: 20px;
  overflow-y: auto;
  scrollbar-width: none;
}
.composer ::placeholder {
  color: var(--text-quiet);
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-bottom: 4px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--text);
  color: #0e0e0e;
  transition: background 0.15s ease;
}
.composer.is-empty .send {
  background: #3b3b3b;
  color: #7a7a7a;
  cursor: default;
}
.icon {
  display: block;
}

.start {
  position: absolute;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 0 24px;
  pointer-events: none;
}
.start::before {
  content: "";
  flex: 0 0 max(24px, calc(50% - 144px));
  margin-bottom: -24px;
}
.hero-slot {
  width: 124px;
  height: 128px;
  flex-shrink: 0;
}
.start h1 {
  margin: 0;
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-align: center;
  text-wrap: balance;
  opacity: var(--k-ask, 1);
  transform: translateY(calc((1 - var(--k-ask, 1)) * 6px));
}
.start .composer {
  width: min(544px, 100%);
  opacity: var(--k-comp, 1);
  transform: translateY(calc((1 - var(--k-comp, 1)) * 6px));
  pointer-events: auto;
}

.talk {
  position: absolute;
  z-index: 5000;
  left: 45%;
  right: 5%;
  top: 0;
  height: 100%;
  max-width: 470px;
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0s linear 0.35s;
}
.win.is-talking .talk {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.talk::after {
  content: "";
  flex: 1 1 0;
  min-height: 0;
}
.said {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
}
.said .row {
  display: flex;
  flex-shrink: 0;
  opacity: 0.62;
  animation: said 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.said .row.is-yours {
  justify-content: flex-end;
}
.said .bubble {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  max-width: min(340px, 92%);
  background: #1c1c1c;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -0.011em;
  color: var(--text);
  text-wrap: pretty;
}
.said .is-yours .bubble {
  max-width: min(320px, 88%);
  background: var(--text);
  color: #111111;
  overflow-wrap: anywhere;
}
@keyframes said {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.say {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  min-height: 30px;
  padding-left: 4px;
}
.say h1 {
  margin: 0;
  min-height: 30px;
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-wrap: balance;
}
.say p {
  margin: 0;
  font-size: 15px;
  line-height: 21px;
  letter-spacing: -0.011em;
  color: #bdbdbd;
  text-wrap: pretty;
}
.say p:empty {
  display: none;
}
.answer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  margin: 0;
}
.talk > .answer {
  min-height: 80px;
}
.talk .composer {
  align-items: center;
}
.talk .send {
  margin-bottom: 0;
}
.ready {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.button {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 22px;
  background: #2c2c2c;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.011em;
  color: #d5d9e2;
  transition: background 0.15s ease;
}
.button.is-primary {
  background: #ffffff;
  color: #0a0a0a;
}
.button:disabled {
  opacity: 0.6;
  cursor: default;
}
.note {
  min-height: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding-left: 4px;
  font-size: 13px;
  line-height: 18px;
  color: #7a7a7a;
}
.note span {
  text-wrap: pretty;
}
.note .warning {
  color: var(--warning);
}
.note .is-whole-line {
  flex-basis: 100%;
}
.note button,
.note a {
  padding: 0;
  border: 0;
  background: none;
  color: #bdbdbd;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #5a5a5a;
}
.note button:hover,
.note a:hover {
  color: var(--text);
}
.code {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
}
.code input {
  flex: 1 1 0;
  min-width: 0;
  max-width: 44px;
  height: 52px;
  padding: 0;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  outline: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 24px;
  color: var(--text);
  text-transform: uppercase;
  caret-color: transparent;
  transition: border-color 0.12s ease;
}
.code input::selection {
  background: transparent;
}
.code input:focus {
  border-color: var(--text);
}
.code input:nth-child(4) {
  margin-right: 10px;
}

.chat {
  position: absolute;
  z-index: 5000;
  inset: 0 0 78px;
  padding: 64px 16px 24px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
.column {
  width: min(624px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.from-you {
  align-self: flex-end;
  max-width: min(420px, 88%);
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--text);
  font-size: 15px;
  line-height: 22px;
  color: #111111;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.from-bot {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.avatar {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.avatar canvas {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 40px;
  height: 40px;
  display: block;
}
.chat .bubble {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 520px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #1c1c1c;
  font-size: 15px;
  line-height: 22px;
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}
.bubble p {
  margin: 0;
}
.bubble b,
.bubble .heading {
  font-weight: 500;
  color: #ffffff;
}
.bubble .item {
  display: flex;
  gap: 8px;
}
.bubble .marker {
  flex-shrink: 0;
  min-width: 10px;
  color: var(--text-quiet);
}
.bubble code,
.bubble pre {
  font-family: var(--mono);
  font-size: 13px;
}
.bubble pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #141414;
  line-height: 18px;
  overflow-x: auto;
  white-space: pre;
}
.dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--text-quiet);
  animation: dot 1s ease-in-out infinite;
}
.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
.line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 42px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-quiet);
}
.line.is-warning {
  color: var(--warning);
}
.link {
  padding: 0;
  border: 0;
  background: transparent;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 13px;
  line-height: 18px;
  color: #8fb6f8;
}
.dock {
  position: absolute;
  z-index: 5000;
  left: 0;
  right: 0;
  bottom: 16px;
  padding: 0 16px;
  pointer-events: none;
}
.dock .composer {
  width: min(586px, 100%);
  margin: 0 auto;
  transform: translateX(19px);
  pointer-events: auto;
}
.dock .composer ::placeholder {
  color: var(--text-faint);
}
.composer.is-closed {
  opacity: 0.5;
}
.composer.is-closed .send {
  cursor: default;
}

@media (max-width: 700px) {
  .mark {
    left: 20px;
    top: 20px;
  }
  .start {
    padding: 0 12px;
  }
  .talk {
    left: 16px;
    right: 16px;
    top: 27%;
    height: 69%;
    max-width: none;
    padding-top: 0;
  }
  .talk::after {
    display: none;
  }
  .talk > .answer {
    min-height: 0;
  }
  .say h1 {
    font-size: 20px;
    line-height: 26px;
    min-height: 26px;
  }
  .code input {
    height: 46px;
  }
  .button {
    flex: 1 1 auto;
  }
  .dock .composer {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dots i,
  .said .row {
    animation: none;
  }
  .dots i {
    opacity: 0.7;
  }
  .talk,
  .win.is-talking .talk {
    transition: none;
  }
}
