@font-face {
  font-family: "Geist";
  src: url("../../amplicore/assets/fonts/geist-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../../amplicore/assets/fonts/geist-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../../amplicore/assets/fonts/inter-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../../amplicore/assets/fonts/inter-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas-width: 1920;
  --canvas-height: 1055;
  --green: #2ccd5c;
  --paper: #f5f1e9;
}

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

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #000;
}

body {
  overflow-x: hidden;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.assistant-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.assistant-canvas {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1920px;
  height: 1055px;
  overflow: hidden;
  background: #000;
  transform-origin: left top;
  isolation: isolate;
}

.experience-ticker {
  position: absolute;
  z-index: 8;
  top: 40px;
  left: 28px;
  width: 1844px;
  height: 83px;
  display: flex;
  align-items: center;
  gap: 13.883px;
  padding: 9.255px 18.511px 9.255px 9.255px;
  overflow: hidden;
  border-radius: 32.394px;
  background: #292929;
}

.ticker-badge {
  position: relative;
  z-index: 2;
  flex: 0 0 83.299px;
  width: 83.299px;
  height: 64.49px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 25.452px;
  color: #fff;
  background: linear-gradient(90deg, #2ccd5c 0%, #2ccd5c 49.55%, #00ffd9 100%);
  font-size: 15.156px;
  font-weight: 400;
  line-height: 18.511px;
  letter-spacing: 0.3702px;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter 180ms ease, transform 180ms ease;
}

.ticker-badge:hover {
  filter: brightness(1.08);
  transform: scale(1.018);
}

.ticker-badge:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.assistant-exit {
  position: absolute;
  z-index: 12;
  top: 151px;
  right: 48px;
  min-width: 132px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 20, 20, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: "Geist", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.assistant-exit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assistant-exit:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: #292929;
  transform: translateY(-1px);
}

.assistant-exit:active {
  transform: scale(0.98);
}

.assistant-exit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.ticker-window {
  position: relative;
  flex: 0 0 1719px;
  width: 1719px;
  height: 37px;
  overflow: hidden;
}

.ticker-track {
  position: absolute;
  top: 0;
  left: 39.03px;
  height: 37px;
  display: flex;
  align-items: center;
  gap: 13.883px;
  width: max-content;
  animation: ticker-motion 32s linear infinite;
  will-change: transform;
}

.ticker-sequence {
  display: flex;
  align-items: center;
  gap: 18.511px;
  flex: none;
  height: 37px;
}

.ticker-sequence span {
  flex: none;
  color: #fff;
  font-size: 18.511px;
  font-weight: 400;
  line-height: 27.766px;
  letter-spacing: 1.4809px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-sequence i {
  display: block;
  flex: 0 0 1.157px;
  width: 1.157px;
  height: 18.511px;
  background: rgba(255, 255, 255, 0.2);
}

@keyframes ticker-motion {
  to {
    transform: translate3d(calc(-50% - 6.9415px), 0, 0);
  }
}

.assistant-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.portrait {
  --follow-x: 0px;
  --follow-y: 0px;
  position: absolute;
  z-index: 3;
  top: 195.85px;
  left: 656.59px;
  width: 592.218px;
  height: 592.218px;
  transform: translate3d(var(--follow-x), var(--follow-y), 0);
  transition:
    top 560ms cubic-bezier(0.16, 1, 0.3, 1),
    left 560ms cubic-bezier(0.16, 1, 0.3, 1),
    width 560ms cubic-bezier(0.16, 1, 0.3, 1),
    height 560ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: top, left, width, height, transform;
}

.portrait-expression {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.996);
  transform-origin: 50% 62%;
  pointer-events: none;
  user-select: none;
  transition: opacity 110ms ease, transform 110ms ease;
  will-change: opacity, transform;
}

.portrait-expression.is-active {
  opacity: 1;
  transform: scale(1);
}

.assistant-canvas[data-mode="answer"] .portrait {
  top: 173px;
  left: 720px;
  width: 480px;
  height: 480px;
}

.assistant-canvas[data-mode="case"] .portrait {
  top: 271.54px;
  left: 259.72px;
  width: 348.43px;
  height: 348.43px;
}

.response-panel {
  position: absolute;
  z-index: 5;
  top: 785px;
  left: 322.331px;
  width: 1260.737px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    top 560ms cubic-bezier(0.16, 1, 0.3, 1),
    left 560ms cubic-bezier(0.16, 1, 0.3, 1),
    width 560ms cubic-bezier(0.16, 1, 0.3, 1),
    height 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.response-copy {
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2.0854px;
  text-wrap: balance;
}

.response-line {
  display: block;
}

.response-line.is-pending {
  visibility: hidden;
}

.assistant-canvas[data-mode="answer"] .response-panel {
  top: 674px;
  left: 260px;
  width: 1400px;
  height: 250px;
}

.assistant-canvas[data-mode="answer"] .response-copy {
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -1.55px;
}

.assistant-canvas[data-mode="answer"] .response-panel[data-length="medium"] .response-copy {
  font-size: 28px;
  line-height: 1.07;
  letter-spacing: -1.2px;
}

.assistant-canvas[data-mode="answer"] .response-panel[data-length="long"] .response-copy {
  font-size: 22px;
  line-height: 1.09;
  letter-spacing: -0.72px;
}

.assistant-canvas[data-mode="case"] .response-panel {
  top: 625px;
  left: 165.98px;
  width: 608.301px;
  height: 294px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.assistant-canvas[data-mode="case"] .response-copy {
  font-size: 32px;
  line-height: 1.03;
  letter-spacing: -1.45px;
  text-wrap: pretty;
}

.assistant-canvas[data-mode="case"] .response-panel[data-length="medium"] .response-copy {
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.92px;
}

.assistant-canvas[data-mode="case"] .response-panel[data-length="long"] .response-copy {
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.54px;
}

.thinking {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.thinking[hidden] {
  display: none;
}

.thinking i {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
  background: #fff;
  animation: thinking-wave 700ms ease-in-out infinite;
}

.thinking i:nth-child(2) {
  opacity: 0.72;
  animation-delay: 110ms;
}

.thinking i:nth-child(3) {
  opacity: 0.44;
  animation-delay: 220ms;
}

@keyframes thinking-wave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.case-visual {
  position: absolute;
  z-index: 4;
  top: 222.19px;
  left: 1012.64px;
  width: 809.911px;
  height: 554.703px;
  margin: 0;
  opacity: 0;
  transform: translate3d(18px, 0, 0) scale(0.985);
  transition: opacity 460ms ease, transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-visual[hidden] {
  display: none;
}

.case-visual.is-visible {
  opacity: 1;
  transform: none;
}

.case-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.ask-form {
  position: absolute;
  z-index: 10;
  top: 944px;
  left: 494.13px;
  width: 931.739px;
  height: 71.106px;
  display: flex;
  align-items: center;
  gap: 19.616px;
  padding: 8.275px 8.275px 8.275px 27.89px;
  overflow: hidden;
  border: 0.919px solid rgba(255, 255, 255, 0.22);
  border-radius: 1224.746px;
  background: rgba(5, 10, 13, 0.48);
  box-shadow:
    0 22.067px 61.299px rgba(0, 0, 0, 0.17),
    inset 0 1.226px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.ask-form:focus-within {
  border-color: rgba(44, 205, 92, 0.9);
  box-shadow:
    0 0 0 4px rgba(44, 205, 92, 0.12),
    0 22.067px 61.299px rgba(0, 0, 0, 0.17),
    inset 0 1.226px 0 rgba(255, 255, 255, 0.08);
}

.question {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 1.226px 2.452px;
  border: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
  font-family: "Geist", Arial, sans-serif;
  font-size: 25.745px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.2758px;
}

.question::placeholder {
  color: var(--paper);
  opacity: 1;
}

.question:disabled {
  opacity: 0.58;
}

.submit {
  position: relative;
  flex: 0 0 auto;
  height: 56.395px;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12.26px;
  padding: 0 24.519px 0 26.971px;
  border: 0;
  border-radius: 1224.746px;
  color: #fff;
  background: var(--green);
  box-shadow:
    0 3.678px 8.582px rgba(0, 0, 0, 0.2),
    inset 0 -1.226px 0 rgba(0, 0, 0, 0.08);
  font-family: "Geist", Arial, sans-serif;
  font-size: 17.164px;
  font-weight: 500;
  line-height: 22.067px;
  letter-spacing: -0.4291px;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, filter 180ms ease;
}

.submit:hover:not(:disabled) {
  background: #31dc66;
  transform: translateY(-1px);
}

.submit:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
}

.submit:disabled {
  cursor: default;
}

.submit svg {
  width: 18.39px;
  height: 18.39px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit::after {
  content: "";
  width: 16px;
  height: 16px;
  display: none;
  border: 1.8px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: submit-spin 700ms linear infinite;
}

.assistant-canvas.is-loading .submit svg {
  display: none;
}

.assistant-canvas.is-loading .submit::after {
  display: block;
}

@keyframes submit-spin {
  to {
    transform: rotate(1turn);
  }
}

.assistant-canvas.is-error .response-copy {
  color: #ff9f8d;
}

.assistant-canvas.is-error .ask-form {
  border-color: rgba(255, 159, 141, 0.64);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1023px) {
  :root {
    --assistant-inline: clamp(16px, 4.2vw, 32px);
  }

  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body {
    font-family: "Geist", Arial, sans-serif;
  }

  .assistant-shell {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: var(--assistant-viewport-height, 100dvh);
    min-height: 0;
    overflow: hidden;
    transform: translate3d(0, var(--assistant-viewport-offset-top, 0px), 0);
  }

  .assistant-canvas {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding:
      max(12px, env(safe-area-inset-top))
      max(var(--assistant-inline), env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(var(--assistant-inline), env(safe-area-inset-left));
    overflow: hidden;
    transform: none !important;
    font-family: "Geist", Arial, sans-serif;
  }

  .experience-ticker {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 60px);
    height: 56px;
    display: flex;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    border-radius: 19px;
  }

  .ticker-badge {
    flex-basis: 65px;
    width: 65px;
    height: 44px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.5px;
  }

  .ticker-window {
    flex: 1 1 auto;
    width: auto;
    height: 30px;
  }

  .ticker-track {
    top: 0;
    left: 0;
    height: 30px;
    gap: 12px;
    animation-duration: 38s;
  }

  .ticker-sequence {
    height: 30px;
    gap: 14px;
  }

  .ticker-sequence span {
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.7px;
  }

  .ticker-sequence i {
    flex-basis: 1px;
    width: 1px;
    height: 14px;
  }

  .assistant-exit {
    top: max(12px, env(safe-area-inset-top));
    right: max(var(--assistant-inline), env(safe-area-inset-right));
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.16);
    background: #202020;
  }

  .assistant-exit span {
    display: none;
  }

  .assistant-exit svg {
    width: 21px;
    height: 21px;
  }

  .assistant-stage {
    position: relative;
    inset: auto;
    grid-row: 2;
    justify-self: center;
    width: min(100%, 760px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 14px 0 24px;
    scroll-padding-block: 16px;
  }

  .assistant-stage::-webkit-scrollbar {
    display: none;
  }

  .assistant-canvas.is-intro .assistant-stage {
    justify-content: center;
  }

  .portrait,
  .assistant-canvas[data-mode="answer"] .portrait,
  .assistant-canvas[data-mode="case"] .portrait {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
    align-self: center;
    width: min(78vw, 44dvh, 390px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }

  .assistant-canvas[data-mode="answer"] .portrait {
    width: min(58vw, 32dvh, 280px);
  }

  .assistant-canvas[data-mode="case"] .portrait {
    width: min(48vw, 27dvh, 230px);
  }

  .response-panel,
  .assistant-canvas[data-mode="answer"] .response-panel,
  .assistant-canvas[data-mode="case"] .response-panel {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
    width: min(100%, 700px);
    height: auto;
    min-height: 0;
    margin: 12px auto 0;
    padding: 0 2px;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    text-align: center;
  }

  .response-copy,
  .assistant-canvas[data-mode="answer"] .response-copy,
  .assistant-canvas[data-mode="case"] .response-copy {
    width: 100%;
    font-size: clamp(21px, 5.8vw, 32px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  .assistant-canvas[data-mode="answer"] .response-panel,
  .assistant-canvas[data-mode="case"] .response-panel {
    margin-top: 16px;
  }

  .assistant-canvas[data-mode="answer"] .response-panel[data-length="medium"] .response-copy,
  .assistant-canvas[data-mode="case"] .response-panel[data-length="medium"] .response-copy {
    font-size: clamp(18px, 4.8vw, 27px);
    line-height: 1.13;
    letter-spacing: -0.025em;
  }

  .assistant-canvas[data-mode="answer"] .response-panel[data-length="long"] .response-copy,
  .assistant-canvas[data-mode="case"] .response-panel[data-length="long"] .response-copy {
    font-size: clamp(16px, 4.2vw, 22px);
    line-height: 1.24;
    letter-spacing: -0.018em;
  }

  .response-line + .response-line {
    margin-top: 0.18em;
  }

  .thinking {
    min-height: 36px;
    margin: 4px auto 0;
  }

  .thinking i {
    width: 8px;
    height: 8px;
  }

  .case-visual {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
    align-self: center;
    width: min(100%, 720px);
    height: auto;
    aspect-ratio: 809.911 / 554.703;
    margin: 24px 0 4px;
    overflow: hidden;
    transform: translate3d(0, 14px, 0) scale(0.985);
  }

  .case-visual img {
    position: absolute;
    inset: 0;
  }

  .ask-form {
    position: relative;
    top: auto;
    left: auto;
    grid-row: 3;
    justify-self: center;
    width: min(100%, 760px);
    height: 64px;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 6px 6px 18px;
    border-width: 1px;
    background: rgba(12, 15, 14, 0.94);
    box-shadow:
      0 12px 38px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .question {
    height: 44px;
    padding: 0;
    font-size: max(16px, 4vw);
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .submit {
    min-width: 122px;
    height: 52px;
    gap: 8px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .submit svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 374px) {
  .experience-ticker {
    width: calc(100% - 54px);
  }

  .assistant-exit {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }

  .ask-form {
    height: 60px;
    padding: 5px 5px 5px 15px;
  }

  .submit {
    min-width: 108px;
    height: 50px;
    padding-inline: 12px;
  }

  .submit svg {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .assistant-stage {
    padding-top: 22px;
  }

  .response-copy,
  .assistant-canvas[data-mode="answer"] .response-copy,
  .assistant-canvas[data-mode="case"] .response-copy {
    font-size: 32px;
  }

  .assistant-canvas[data-mode="answer"] .response-panel[data-length="medium"] .response-copy,
  .assistant-canvas[data-mode="case"] .response-panel[data-length="medium"] .response-copy {
    font-size: 27px;
  }

  .assistant-canvas[data-mode="answer"] .response-panel[data-length="long"] .response-copy,
  .assistant-canvas[data-mode="case"] .response-panel[data-length="long"] .response-copy {
    font-size: 22px;
  }

  .question {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1023px) {
  .portrait,
  .case-visual,
  .response-panel {
    transform: none !important;
  }
}
