/* Parker landing hero — product-led, desktop chat flow */
:root {
  --panel-open-dur: 400ms;
  --panel-close-dur: 350ms;
  --panel-translate-y: 100px;
  --panel-blur: 2px;
  --panel-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.t-panel-slide {
  transform: translateY(var(--panel-translate-y));
  opacity: 0;
  filter: blur(var(--panel-blur));
  pointer-events: none;
  transition:
    transform var(--panel-close-dur) var(--panel-ease),
    opacity   var(--panel-close-dur) var(--panel-ease),
    filter    var(--panel-close-dur) var(--panel-ease);
  will-change: transform, opacity, filter;
}
.t-panel-slide[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transition:
    transform var(--panel-open-dur) var(--panel-ease),
    opacity   var(--panel-open-dur) var(--panel-ease),
    filter    var(--panel-open-dur) var(--panel-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-panel-slide { transition: none !important; }
}

/* Sidebar mirrors Parker desktop */
.hero-app-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 19px 12px 13px;
  overflow: hidden;
  border-right: 1px solid rgba(247, 243, 238, .08);
  background:
    radial-gradient(circle at 18% 2%, rgba(232, 122, 82, .11), transparent 28%),
    #1e1a17;
  color: #f7f3ee;
}

.hero-app-side-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 5px 16px;
}

.hero-app-brand {
  color: #f7f3ee;
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}

.hero-app-brand span { color: #e87a52; }

.hero-app-firm {
  max-width: 90px;
  margin-left: auto;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(247, 243, 238, .1);
  border-radius: 999px;
  background: rgba(247, 243, 238, .055);
  color: rgba(247, 243, 238, .56);
  font-size: 6.5px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-app-new,
.hero-app-nav-item,
.hero-app-conversation {
  display: flex;
  align-items: center;
}

.hero-app-new {
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(232, 122, 82, .3);
  border-radius: 9px;
  background: rgba(192, 79, 40, .16);
  color: #fffaf5;
  font-size: 7.5px;
  font-weight: 600;
}

.hero-app-new svg,
.hero-app-nav-item svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.hero-app-nav {
  display: grid;
  gap: 2px;
  margin-top: 7px;
}

.hero-app-nav-item {
  gap: 8px;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(247, 243, 238, .52);
  font-size: 7px;
}

.hero-app-nav-item.is-active {
  background: rgba(247, 243, 238, .06);
  color: #f7f3ee;
}

.hero-app-recents-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 9px 7px;
  color: rgba(247, 243, 238, .3);
  font-size: 5.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero-app-recents-head svg {
  width: 10px;
  height: 10px;
}

.hero-app-recents {
  display: grid;
  gap: 2px;
}

.hero-app-conversation {
  position: relative;
  min-height: 29px;
  padding: 0 9px;
  overflow: hidden;
  border-radius: 8px;
  color: rgba(247, 243, 238, .54);
  font-size: 6.7px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    color 250ms var(--ease-out),
    background-color 250ms var(--ease-out);
}

.workspace-demo.has-active-chat .hero-app-conversation:first-child {
  background: rgba(192, 79, 40, .17);
  color: #f7f3ee;
}

.hero-app-user {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 5px 0;
  border-top: 1px solid rgba(247, 243, 238, .09);
}

.hero-app-user-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #c04f28, #e87a52);
  color: #fff;
  font-size: 6.5px;
  font-weight: 700;
}

.hero-app-user-copy {
  min-width: 0;
}

.hero-app-user-copy strong,
.hero-app-user-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-app-user-copy strong {
  color: rgba(247, 243, 238, .8);
  font-size: 6.6px;
  font-weight: 500;
}

.hero-app-user-copy small {
  margin-top: 1px;
  color: rgba(247, 243, 238, .31);
  font-size: 5.5px;
}

.hero-app-user svg {
  width: 11px;
  height: 11px;
  color: rgba(247, 243, 238, .32);
}

/* App main area */
.hero-app-main {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 52% 26% at 56% 0%, rgba(192, 79, 40, .07), transparent 72%),
    #f7f3ee;
  color: #1a1612;
}

.hero-app-screen {
  --panel-translate-y: 16px;
  position: absolute;
  inset: 0;
}

.hero-app-welcome {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(36px, 4vw, 58px) clamp(28px, 3.5vw, 46px) 28px;
}

.demo-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
}

.demo-identity strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -.025em;
}

.demo-presence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8a837a;
  font-size: 6.2px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.demo-presence::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2e8c46;
  box-shadow: 0 0 0 2px rgba(46, 140, 70, .1);
}

.hero-app-welcome h2 {
  max-width: 430px;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 3.6vw, 50px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
}

.hero-app-welcome h2 em {
  color: #c04f28;
  font-style: italic;
}

.demo-welcome-copy {
  max-width: 420px;
  margin-top: 17px;
  color: #625b54;
  font-size: 8.4px;
  line-height: 1.65;
}

.demo-composer {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(26, 22, 18, .11);
  border-radius: 13px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 10px 28px rgba(26, 22, 18, .08);
}

.demo-welcome-composer {
  margin-top: 26px;
}

.demo-attach,
.demo-send {
  flex: none;
  display: grid;
  place-items: center;
}

.demo-attach {
  width: 25px;
  height: 25px;
  color: #625b54;
}

.demo-attach svg { width: 13px; height: 13px; }

.demo-composer-text {
  flex: 1;
  min-width: 0;
  color: #8a837a;
  font-size: 8px;
  line-height: 1.45;
}

.demo-composer-text.is-typing {
  color: #1a1612;
}

.demo-composer-text.is-typing::after,
.demo-reply.is-streaming::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 9px;
  margin-left: 2px;
  background: #c04f28;
  vertical-align: -1px;
  animation: demo-caret 720ms step-end infinite;
}

.demo-send {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #c04f28;
  color: #fff;
  box-shadow: 0 6px 16px rgba(192, 79, 40, .2);
}

.demo-send svg { width: 12px; height: 12px; }

.demo-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.demo-suggestion {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(26, 22, 18, .08);
  border-radius: 11px;
  background: rgba(255, 253, 249, .56);
}

.demo-suggestion strong,
.demo-suggestion small {
  display: block;
}

.demo-suggestion strong {
  color: #302a25;
  font-size: 6.7px;
  line-height: 1.45;
}

.demo-suggestion small {
  margin-top: 3px;
  color: #8a837a;
  font-size: 5.8px;
  line-height: 1.4;
}

/* Active thread */
.hero-app-thread {
  display: flex;
  flex-direction: column;
  background: #f7f3ee;
}

.demo-thread-head {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 25px;
  border-bottom: 1px solid rgba(26, 22, 18, .075);
  background: rgba(247, 243, 238, .84);
}

.demo-thread-heading {
  min-width: 0;
}

.demo-thread-title {
  overflow: hidden;
  color: #1a1612;
  font-size: 8.2px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-thread-presence {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: #8a837a;
  font-size: 5.8px;
}

.demo-thread-presence::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2e8c46;
  box-shadow: 0 0 0 2px rgba(46, 140, 70, .1);
}

.demo-channel {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(192, 79, 40, .1);
  color: #a8401e;
  font-size: 5.8px;
  font-weight: 600;
}

.demo-thread-scroll {
  flex: 1;
  min-height: 0;
  padding: 30px 29px 16px;
  overflow: hidden;
}

.demo-user-message {
  max-width: 82%;
  margin-left: auto;
  padding: 9px 12px;
  border-radius: 13px 13px 5px 13px;
  background: #c04f28;
  color: #fff;
  font-size: 7.5px;
  line-height: 1.52;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 250ms var(--ease-out),
    transform 250ms var(--ease-out);
}

.demo-user-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-assistant {
  margin-top: 28px;
}

.demo-work-trace {
  color: #8a837a;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 250ms var(--ease-out),
    transform 250ms var(--ease-out);
}

.demo-work-trace.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-work-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4a4540;
  font-size: 7px;
  font-weight: 550;
}

.demo-work-summary svg {
  width: 10px;
  height: 10px;
  color: #8a837a;
}

.demo-work-elapsed {
  margin-left: auto;
  color: #8a837a;
  font-size: 5.8px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.demo-work-steps {
  display: grid;
  gap: 6px;
  margin: 10px 0 0 16px;
  padding-left: 10px;
  border-left: 1px solid rgba(26, 22, 18, .09);
}

.demo-work-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8a837a;
  font-size: 6.3px;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.demo-work-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-step-check {
  width: 12px;
  height: 12px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(46, 140, 70, .1);
  color: #2e8c46;
  font-size: 7px;
  font-weight: 700;
}

.demo-work-current {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #4a4540;
  font-size: 6.5px;
}

.demo-working-mark {
  width: 19px;
  height: 19px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 6px;
  background: rgba(192, 79, 40, .1);
}

.demo-working-mark span {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #c04f28;
  animation: demo-thinking 1.1s ease-in-out infinite;
}

.demo-working-mark span:nth-child(2) { animation-delay: 120ms; }
.demo-working-mark span:nth-child(3) { animation-delay: 240ms; }

.demo-work-trace.is-complete .demo-work-current {
  display: none;
}

.demo-answer {
  margin-top: 16px;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}

.demo-answer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-reply {
  min-height: 39px;
  color: #302a25;
  font-size: 7.4px;
  line-height: 1.66;
}

.demo-file {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(26, 22, 18, .09);
  border-radius: 11px;
  background: rgba(255, 253, 249, .88);
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

.demo-file.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-file-icon {
  width: 30px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(192, 79, 40, .09);
  color: #c04f28;
  font-size: 6px;
  font-weight: 700;
}

.demo-file-copy {
  min-width: 0;
}

.demo-file-copy strong,
.demo-file-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-file-copy strong {
  color: #302a25;
  font-size: 6.6px;
  font-weight: 600;
}

.demo-file-copy small {
  margin-top: 2px;
  color: #8a837a;
  font-size: 5.6px;
}

.demo-preview {
  color: #a8401e;
  font-size: 6px;
  font-weight: 600;
}

.demo-thread-foot {
  flex: none;
  padding: 10px 24px 15px;
}

.demo-thread-foot .demo-composer {
  min-height: 46px;
  padding-block: 8px;
  box-shadow: 0 6px 18px rgba(26, 22, 18, .055);
}

@keyframes demo-caret {
  50% { opacity: 0; }
}

@keyframes demo-thinking {
  0%, 60%, 100% { opacity: .42; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 620px) {
  .workspace-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-app-side {
    display: none;
  }

  .hero-app-welcome {
    padding: 33px 20px 22px;
  }

  .hero-app-welcome h2 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .demo-welcome-copy {
    font-size: 8px;
  }

  .demo-suggestions {
    grid-template-columns: 1fr;
  }

  .demo-suggestion:last-child {
    display: none;
  }

  .demo-thread-head {
    padding-inline: 18px;
  }

  .demo-thread-scroll {
    padding: 24px 20px 12px;
  }

  .demo-thread-foot {
    padding: 9px 16px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-working-mark span,
  .demo-composer-text.is-typing::after,
  .demo-reply.is-streaming::after {
    animation: none !important;
  }

  .demo-user-message,
  .demo-work-trace,
  .demo-work-step,
  .demo-answer,
  .demo-file,
  .hero-app-conversation {
    transition: none !important;
  }
}
