/* Palette, type and Sutra geometry reference: https://yal.inc/ */
@font-face {
  font-family: "General Sans";
  src: url("/chat/static/brand/general-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/chat/static/brand/general-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/chat/static/brand/general-sans-semibold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1a2626;
  --muted: #5c6b6b;
  --teal: #00989c;
  --cyan: #03e9ef;
  --line: #e0e6e6;
  --paper: #f7fafa;
  font-family:
    "General Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(#b7cbd24d 0.85px, transparent 0.85px);
  background-size: 22px 22px;
  mask-image: linear-gradient(transparent, #000 25%, #000 80%, transparent);
  pointer-events: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
button,
a,
input {
  outline-offset: 5px;
}
:focus-visible {
  outline: 2px solid var(--teal);
}
[hidden] {
  display: none !important;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.page-shell {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 48px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 19px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.yal-logo {
  display: block;
  width: 94px;
  height: auto;
}
.brand-divider {
  height: 31px;
  width: 1px;
  background: #c8d1d1;
}
.brand-caption {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.2px;
}
.header-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.connection-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00989c;
  box-shadow: 0 0 0 4px #00989c0d;
}
.intro {
  padding: 32px 0 29px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--teal);
}
h1 {
  font-size: clamp(33px, 4.1vw, 54px);
  line-height: 1.12;
  letter-spacing: -2.4px;
  font-weight: 600;
  margin: 12px 0;
}
h1 span {
  color: var(--teal);
}
.intro > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.workspace {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  height: 645px;
}
.call-panel {
  --voice-energy: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 25px 28px 22px;
  overflow: hidden;
  color: #efffff;
  background: radial-gradient(
    ellipse at 50% 31%,
    #10444b 0,
    #0a2229 40%,
    #061320 85%
  );
  border: 1px solid #173740;
  border-radius: 24px;
  box-shadow: 0 14px 34px #06132012;
}
.call-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(#6fcad818 0.7px, transparent 1px);
  background-size: 17px 17px;
  mask-image: linear-gradient(#000, #0005 50%, transparent 70%);
}
.call-panel :focus-visible {
  outline-color: #64ecf0;
}
.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 30px;
  position: relative;
  z-index: 2;
}
.sutra-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3.7px;
  color: #d7eff0;
}
.sutra-label > span {
  display: block;
  font-size: 7px;
  letter-spacing: 1.35px;
  margin-top: 6px;
  color: #739ca6;
}
.call-clock {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #97eff1;
  background: #80f5f00d;
  border: 1px solid #64ecf024;
  padding: 5px 9px;
  border-radius: 6px;
}
.voice-scene {
  position: relative;
  width: min(440px, calc(100% + 30px));
  height: 295px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  perspective: 800px;
}
.sutra-aura {
  position: absolute;
  width: 300px;
  height: 255px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    #00cbd331,
    #00989c12 40%,
    transparent 70%
  );
  transform: scale(calc(1 + var(--voice-energy) * 0.28));
  transition: transform 0.1s;
  animation: aura-breathe 6s ease-in-out infinite;
  pointer-events: none;
}
.sutra-grid {
  position: absolute;
  width: 325px;
  height: 235px;
  transform: perspective(360px) rotateX(61deg) rotateZ(-23deg) translateY(28px);
  background-image:
    linear-gradient(#64ecf014 1px, transparent 1px),
    linear-gradient(90deg, #64ecf014 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse, black, transparent 68%);
}
#sutra-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#sutra-solid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.voice-scene[data-renderer="webgl"] #sutra-solid {
  opacity: 1;
}
.voice-scene[data-renderer="webgl"] .sutra-mark {
  visibility: hidden;
}
.voice-scene[data-renderer="webgl"] .thread-flow {
  animation: none;
}
.sutra-mark {
  position: relative;
  width: 285px;
  height: 285px;
  will-change: transform;
  transform-style: preserve-3d;
  animation: sutra-float 7s ease-in-out infinite;
  filter: drop-shadow(0 12px 15px #0008);
}
.voice-scene[data-animated] .sutra-mark {
  animation: none;
}
.voice-scene.motion-paused * {
  animation-play-state: paused !important;
}
.sutra-symbol {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sutra-train-mask {
  stroke-dasharray: 86 14;
  stroke-dashoffset: var(--sutra-flow, 0);
}
.voice-scene:not([data-phase="travelling"]) .sutra-ribbon,
.voice-scene.motion-paused .sutra-ribbon {
  mask: none;
}
.voice-scene:not([data-phase="travelling"]) .thread-flow {
  animation-play-state: paused;
}
.thread-flow {
  animation: thread-travel 4s linear infinite;
}
.thread-glow {
  opacity: calc(0.24 + var(--voice-energy) * 0.4);
}
.scene-coordinate {
  position: absolute;
  bottom: 19px;
  font:
    7px ui-monospace,
    SFMono-Regular,
    monospace;
  color: #6da5ad;
  letter-spacing: 1.6px;
  opacity: 0.75;
}
.coordinate-left {
  left: 5px;
}
.coordinate-right {
  right: 5px;
}
.voice-bars {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  opacity: 0.35;
  transition: opacity 0.3s;
}
.voice-bars i {
  display: block;
  height: 3px;
  width: 2px;
  border-radius: 3px;
  background: #64ecf0;
  transition: transform 0.1s;
}
.call-status {
  text-align: center;
  min-height: 112px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.4px;
  background: #07343c;
  border: 1px solid #4ddadd25;
  color: #9ce6e6;
  padding: 5px 11px;
  border-radius: 20px;
}
.status-pill::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #03e9ef;
  border-radius: 50%;
  box-shadow: 0 0 7px #03e9ef66;
}
.call-status h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.75px;
  margin: 12px 0 7px;
}
#note {
  color: #8dacb7;
  font-size: 11px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 330px;
  min-height: 20px;
}
.call-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  min-height: 48px;
}
.call-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 30px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.call-actions button:enabled:hover {
  transform: translateY(-2px);
}
.primary-button {
  min-width: 188px;
  background: linear-gradient(110deg, #03e9ef, #00b1ad);
  color: #062b32;
  box-shadow: 0 0 25px #00b1ad1c;
}
.primary-button:enabled:hover {
  box-shadow: 0 0 30px #03e9ef40;
  background: #64ecf0;
}
.primary-button .button-arrow {
  width: 17px;
  margin-left: 16px;
  opacity: 0.7;
}
.end-button {
  color: #ffb7b7;
  background: #bd3d491c;
  border-color: #ff8a8f3b !important;
}
.mic-button {
  color: #d1eeef;
  background: #89dbe512;
  border-color: #64ecf033 !important;
}
.mic-button[aria-pressed="true"] {
  background: #ffffff12;
  color: #93a7b4;
}
.secondary-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 15px;
}
.quiet-button {
  display: flex;
  gap: 6px;
  align-items: center;
  background: none;
  border: 0;
  padding: 7px 0;
  color: #92acb6;
  font-size: 10px;
}
.quiet-button:enabled:hover {
  color: #d1ffff;
}
.quiet-button .icon {
  width: 15px;
  height: 15px;
}
.action-divider {
  height: 12px;
  width: 1px;
  background: #21404c;
}
#support {
  margin: 7px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  max-width: 370px;
  color: #ffb5a1;
}
#support:empty {
  display: none;
}
.privacy {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8198a5;
  font-size: 9px;
  margin: auto 0 0;
  padding-top: 18px;
  text-align: center;
}
.privacy .icon {
  width: 11px;
  height: 11px;
}
.conversation-panel {
  background: #ffffffef;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  min-height: 0;
  box-shadow: 0 5px 20px #0a222903;
}
.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 25px 26px 23px;
  border-bottom: 1px solid #eff3f3;
}
.conversation-header .eyebrow {
  font-size: 8px;
}
.conversation-header h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  font-weight: 500;
  margin: 7px 0 0;
}
.transcript-status {
  font-size: 9px;
  color: #6c7e7e;
  background: #eff3f3;
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap;
}
.transcript-status.live {
  color: #007c80;
  background: #e1f6f5;
}
.conversation-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}
#log {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c8d1d1 transparent;
  padding: 8px 25px 22px;
  overscroll-behavior: contain;
}
.transcript-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 20px;
}
.empty-symbol {
  position: relative;
  background: #e9f7f7;
  color: #00989c;
  width: 57px;
  height: 57px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
  transform: rotate(-7deg);
}
.empty-symbol .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.3;
}
.empty-symbol > span {
  position: absolute;
  top: -8px;
  right: -7px;
  color: #00b1ad;
  font-size: 20px;
}
.transcript-empty h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}
.transcript-empty p {
  font-size: 12px;
  line-height: 1.8;
  color: #718383;
  margin: 0;
}
.empty-caption {
  font-size: 10px;
  margin-top: 28px;
  color: #748787;
  letter-spacing: 0.2px;
}
.msg {
  display: flex;
  margin: 21px 0 0;
  animation: message-in 0.25s ease-out;
}
.msg > div {
  max-width: 91%;
  min-width: 0;
}
.who {
  color: #668080;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px 2px;
}
.bubble {
  font-size: 13px;
  line-height: 1.9;
  padding: 12px 15px;
  border-radius: 2px 14px 14px;
  background: #eff5f5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.me {
  justify-content: flex-end;
}
.me .who {
  text-align: right;
  margin-right: 2px;
}
.me .bubble {
  background: #def5f3;
  color: #155355;
  border-radius: 14px 2px 14px 14px;
}
.composer-wrap {
  padding: 0 20px 16px;
}
#interim {
  min-height: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
#interim:not(:empty) {
  margin: 0 5px 10px;
}
#form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 7px 6px 15px;
  background: #f7fafa;
  border: 1px solid #e0e6e6;
  border-radius: 12px;
}
#form:focus-within {
  border-color: #00989c;
  box-shadow: 0 0 0 3px #00989c0c;
}
#text {
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  padding: 8px 0;
  color: var(--ink);
}
#text::placeholder {
  color: #7a8a8a;
}
#text:disabled {
  opacity: 0.75;
}
#send {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--teal);
  color: white;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
#send:disabled {
  background: #e5eeee;
  color: #8fa4a4;
  opacity: 1;
}
.composer-hint {
  font-size: 9px;
  line-height: 1.6;
  color: #708585;
  text-align: center;
  margin: 10px 0 0;
}
.page-footer {
  padding: 25px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #718383;
  font-size: 10px;
}
.journey {
  list-style: none;
  display: flex;
  gap: 26px;
  padding: 0;
  margin: 0;
}
.journey li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.journey li > span {
  font-size: 9px;
  color: #00989c;
  background: #e4f2f2;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
[data-mode="speaking"] .thread-flow {
  animation-duration: 1.5s;
}
[data-mode="listening"] .thread-flow {
  animation-duration: 2.7s;
}
[data-mode="thinking"] .thread-flow {
  animation-duration: 1.8s;
}
[data-mode="speaking"] .voice-bars,
[data-mode="listening"] .voice-bars {
  opacity: 0.9;
}
[data-mode="paused"] .sutra-mark {
  filter: saturate(0.2) drop-shadow(0 8px 15px #0005);
}
[data-mode="paused"] .thread-flow {
  animation-play-state: paused;
}
[data-mode="connecting"] .status-pill::before,
[data-mode="thinking"] .status-pill::before {
  animation: status-pulse 1.5s ease-in-out infinite;
}
@keyframes sutra-float {
  0%,
  100% {
    transform: rotateX(4deg) rotateY(-12deg) rotateZ(-5deg) translateY(0);
  }
  50% {
    transform: rotateX(-7deg) rotateY(15deg) rotateZ(5deg) translateY(-7px);
  }
}
@keyframes thread-travel {
  to {
    stroke-dashoffset: -100;
  }
}
@keyframes aura-breathe {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}
@keyframes status-pulse {
  50% {
    opacity: 0.3;
  }
}
@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1440px) {
  .workspace {
    height: 665px;
  }
  .voice-scene {
    height: 315px;
  }
  .sutra-mark {
    width: 306px;
    height: 306px;
  }
}
@media (max-width: 1000px) {
  .page-shell {
    padding: 0 28px;
  }
  .workspace {
    gap: 16px;
  }
  .call-panel {
    padding-inline: 20px;
  }
  .conversation-header {
    padding-inline: 21px;
  }
  .page-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .journey {
    gap: 22px;
  }
}
@media (max-width: 700px) {
  .page-shell {
    padding: 0 20px;
  }
  .site-header {
    min-height: 82px;
  }
  .brand {
    gap: 12px;
    font-size: 13px;
  }
  .yal-logo {
    width: 79px;
  }
  .brand-caption {
    font-size: 9px;
  }
  .header-note {
    display: none;
  }
  .intro {
    padding: 26px 0 23px;
  }
  h1 {
    letter-spacing: -1.4px;
    font-size: 35px;
  }
  .intro > p {
    max-width: 295px;
    font-size: 12px;
  }
  .intro .eyebrow {
    font-size: 7px;
    letter-spacing: 1.25px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 19px;
    height: auto;
  }
  .call-panel {
    min-height: 609px;
    padding: 21px 20px;
  }
  .voice-scene {
    height: 270px;
    width: calc(100% + 30px);
  }
  .sutra-mark {
    width: 263px;
    height: 263px;
  }
  .sutra-grid {
    width: 280px;
  }
  .scene-coordinate {
    font-size: 6px;
    letter-spacing: 1.1px;
  }
  .call-status h2 {
    font-size: 22px;
  }
  .conversation-panel {
    height: 485px;
  }
  .page-footer {
    padding: 24px 1px 30px;
  }
  .journey {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .journey li {
    font-size: 8px;
    gap: 5px;
  }
  .journey li > span {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}
@media (max-width: 370px) {
  .page-shell {
    padding-inline: 12px;
  }
  .journey {
    flex-direction: column;
    gap: 10px;
  }
  .call-actions button {
    padding-inline: 14px;
    gap: 7px;
  }
  h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .sutra-mark {
    will-change: auto;
    transform: none !important;
  }
}
