/* Sapio homepage. Loaded after site.css; every class is prefixed with lp-. */

/* Hero */

.lp-hero {
  padding: calc(5rem + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3.5rem, 7vw, 6rem);
}

.lp-hero__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.lp-hero__note {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 34rem;
  font-size: .95rem;
  color: var(--muted);
}

.lp-hero__stage {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1.04;
  border-radius: 28px;
  background: var(--tone);
  transition: background-color .8s var(--ease);
}

.lp-slide {
  grid-area: 1 / 1;
  position: relative;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .6s var(--ease), visibility 0s .6s;
}

.lp-slide:first-child,
.lp-js .lp-slide.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity .6s var(--ease);
}

.lp-js .lp-slide:first-child:not(.is-active) {
  visibility: hidden;
  opacity: 0;
}

.lp-slide__art {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 70%;
  height: auto;
  transform: translateY(12px);
  transition: transform .9s var(--ease);
}

.lp-slide.is-active .lp-slide__art {
  transform: none;
}

.lp-hcard {
  position: absolute;
  bottom: 6%;
  left: 6%;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: min(24rem, 88%);
  padding: 1rem;
  border: 1px solid rgb(18 27 25 / 8%);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 48px -24px rgb(18 27 25 / 28%);
  font-size: .9rem;
  line-height: 1.45;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .7s .15s var(--ease), opacity .5s .15s;
}

.lp-slide:first-child .lp-hcard,
.lp-js .lp-slide.is-active .lp-hcard {
  transform: none;
  opacity: 1;
}

.lp-js .lp-slide:not(.is-active) .lp-hcard {
  transform: translateY(16px);
  opacity: 0;
}

.lp-hcard__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}

.lp-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--tone);
  font-weight: 600;
  color: var(--tone-ink);
}

.lp-hcard__who {
  display: flex;
  flex-direction: column;
  font-size: .8rem;
  line-height: 1.25;
  color: var(--muted);
}

.lp-hcard__who b {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

.lp-hcard__skill {
  margin-left: auto;
  font-size: .8rem;
  color: var(--muted);
}

.lp-bubble {
  max-width: 88%;
  padding: .6rem .85rem;
  border-radius: 16px;
}

.lp-bubble--them {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: #f0efeb;
}

.lp-bubble--you {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--teal-ink);
  color: #fff;
}

.lp-hcard__note {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: .55rem;
  margin-top: .2rem;
  padding: .75rem .8rem;
  border-radius: 14px;
  background: #f7f6f2;
  color: var(--ink-2);
}

.lp-hcard__note svg,
.lp-coachnote svg,
.lp-note svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink-2);
}

.lp-hcard__note b,
.lp-coachnote b,
.lp-note b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.lp-hero__progress {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  gap: 4px;
}

.lp-hero__progress i {
  overflow: hidden;
  font-size: 0;
  width: 1.1rem;
  height: 3px;
  border-radius: 2px;
  background: rgb(18 27 25 / 14%);
  transition: width .4s var(--ease), background-color .4s;
}

.lp-hero__progress i.is-active {
  width: 2rem;
  background: rgb(18 27 25 / 55%);
}

/* Practice */

.lp-practice {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.lp-practice__grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.lp-skills {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lp-skills__list {
  display: flex;
  gap: .4rem;
  margin-inline: calc(-1 * var(--pad));
  padding: 0 var(--pad) .5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}

.lp-skill {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .75rem;
  padding: .45rem 1rem .45rem .45rem;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color .2s, border-color .2s;
}

.lp-skill:hover {
  background: rgb(255 255 255 / 60%);
}

.lp-skill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lp-skill:has(input:focus-visible) {
  outline: 2px solid var(--teal-ink);
  outline-offset: 2px;
}

.lp-skill:has(input:checked) {
  border-color: var(--line);
  background: var(--surface);
}

.lp-skill__art {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border-radius: 10px;
  background: var(--tone);
}

.lp-skill__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
}

.lp-skill__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.lp-skill__name {
  font-weight: 500;
}

.lp-skill__meta {
  font-size: .85rem;
  color: var(--muted);
}

.lp-stage {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.lp-panel {
  --thread: #b9c2bd;

  display: none;
}

@supports not selector(:has(*)) {
  .lp-panel:first-child {
    display: grid;
  }
}

.lp-js .lp-panel.is-entering .lp-panel__talk,
.lp-js .lp-panel.is-entering .lp-panel__art img {
  animation: lp-in .45s var(--ease) both;
}

.lp-panel__art {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--tone);
}

.lp-panel__art img {
  width: 100%;
  height: auto;
}

.lp-panel__copy {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.lp-panel__who {
  font-weight: 600;
  color: var(--tone-ink);
}

.lp-panel__situation {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.lp-panel__talk {
  min-width: 0;
  padding: 1.25rem;
}

/* Connection line */

.lp-tv {
  touch-action: pan-y;
}

.lp-tv__svg {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.lp-tv__path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .5s var(--ease);
}

.lp-tv__pulse {
  fill: var(--surface);
  stroke: var(--thread);
  stroke-width: 2;
  opacity: 0;
  transition: opacity .4s;
}

.lp-panel[data-state="connected"] .lp-tv__pulse {
  opacity: 1;
}

.lp-tv__node circle {
  stroke: var(--surface);
  stroke-width: 3;
}

.lp-tv__node text {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  text-anchor: middle;
}

.lp-tv__node--them circle { fill: var(--tone); }
.lp-tv__node--them text { fill: var(--tone-ink); }
.lp-tv__node--you circle { fill: var(--ink); }

.lp-tv__node--you text {
  font-size: 13px;
  fill: #fff;
}

.lp-tv__label {
  margin: .25rem 0 0;
  font-size: .9rem;
  text-align: center;
  color: var(--muted);
}

.lp-tv__label span {
  display: none;
}

.lp-tv__label b {
  font-weight: 600;
  color: var(--thread-ink, var(--ink));
}

.lp-tv__label [data-for="idle"] {
  display: inline;
}

.lp-panel[data-state="tangled"],
.lp-panel:not([data-state]):has(.lp-choice[data-thread="tangled"][open]) { --thread: var(--coral); --thread-ink: #a8431f; }

.lp-panel[data-state="loose"],
.lp-panel:not([data-state]):has(.lp-choice[data-thread="loose"][open]) { --thread: var(--amber); --thread-ink: #8a5a00; }

.lp-panel[data-state="connected"],
.lp-panel:not([data-state]):has(.lp-choice[data-thread="connected"][open]) { --thread: var(--teal); --thread-ink: var(--teal-ink); }

.lp-panel:is([data-state="tangled"], [data-state="loose"], [data-state="connected"]) [data-for="idle"],
.lp-panel:not([data-state]):has(.lp-choice[open]) [data-for="idle"] {
  display: none;
}

.lp-panel[data-state="tangled"] [data-for="tangled"],
.lp-panel[data-state="loose"] [data-for="loose"],
.lp-panel[data-state="connected"] [data-for="connected"],
.lp-panel:not([data-state]):has(.lp-choice[data-thread="tangled"][open]) [data-for="tangled"],
.lp-panel:not([data-state]):has(.lp-choice[data-thread="loose"][open]) [data-for="loose"],
.lp-panel:not([data-state]):has(.lp-choice[data-thread="connected"][open]) [data-for="connected"] {
  display: inline;
}

/* Conversation */

.lp-convo {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 0;
  padding: 1.25rem 0 1rem;
  list-style: none;
  outline: none;
}

.lp-msg {
  max-width: 85%;
  margin: 0;
  padding: .7rem .95rem;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.lp-msg--them {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: #f0efeb;
}

.lp-msg--you {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--teal-ink);
  color: #fff;
}

.is-new {
  animation: lp-in .4s var(--ease) both;
}

.lp-typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  padding: .9rem 1rem;
  border-radius: 18px 18px 18px 5px;
  background: #f0efeb;
}

.lp-typing i {
  overflow: hidden;
  font-size: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: lp-dots 1.2s infinite ease-in-out;
}

.lp-typing i:nth-child(2) { animation-delay: .15s; }
.lp-typing i:nth-child(3) { animation-delay: .3s; }

/* Reply options */

.lp-choices {
  display: grid;
  gap: .5rem;
}

.lp-panel.is-live .lp-choices,
.lp-panel.is-live .lp-footnote {
  display: none;
}

.lp-choice summary {
  position: relative;
  padding: .8rem 1rem .8rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: .98rem;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, opacity .2s;
}

.lp-choice summary::-webkit-details-marker {
  display: none;
}

.lp-choice summary::before {
  content: "";
  position: absolute;
  top: 1.02rem;
  left: 1rem;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .2s, box-shadow .2s;
}

.lp-choice summary:hover {
  border-color: var(--line-strong);
  background: #faf9f6;
}

.lp-choice[open] summary {
  border-color: var(--ink);
  background: var(--surface);
}

.lp-choice[open] summary::before {
  border: 5px solid var(--ink);
}

.lp-choices:has(.lp-choice[open]) .lp-choice:not([open]) summary {
  opacity: .6;
}

.lp-choices:has(.lp-choice[open]) .lp-choice:not([open]) summary:hover {
  opacity: 1;
}

.lp-coachnote,
.lp-coach {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: .65rem;
  margin: .5rem 0 .25rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: #f7f6f2;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink-2);
  animation: lp-in .35s var(--ease) both;
}

.lp-coachnote p {
  margin: 0;
}

.lp-coach {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  margin: .25rem 0;
}

.lp-note {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: .65rem;
  margin: 0;
}

.lp-coach__disclaimer {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}

.lp-footnote {
  margin: 1rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}

/* Composer */

.lp-composer {
  padding: 1.25rem;
  border-top: 1px solid var(--line);
  background: #fbfaf8;
}

.lp-composer__fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lp-composer__legend {
  width: 100%;
  margin-bottom: .6rem;
  padding: 0;
  font-weight: 500;
}

.lp-composer__box {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  padding: .3rem .3rem .3rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}

.lp-composer__box:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(18 27 25 / 8%);
}

.lp-composer__fields:disabled .lp-composer__box {
  background: #f3f2ee;
}

.lp-composer textarea {
  flex: 1;
  min-width: 0;
  height: 2.6rem;
  max-height: 7.5rem;
  padding: .55rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: 1.5;
  color: var(--ink);
  resize: none;
  overflow-y: auto;
  scrollbar-width: thin;
}

.lp-composer textarea:focus-visible {
  outline: none;
}

.lp-composer textarea::placeholder {
  color: #8b9591;
}

.lp-composer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: .55rem .4rem 0;
  font-size: .8rem;
  color: var(--muted);
}

.lp-kbd {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .lp-kbd {
    display: inline;
  }
}

.lp-count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.lp-count.is-near {
  color: #a1470a;
}

.lp-send {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--teal-ink);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, transform .25s var(--ease);
}

.lp-send:hover:not(:disabled) {
  background: #0b5d57;
}

.lp-send:active:not(:disabled) {
  transform: scale(.92);
}

.lp-send:disabled {
  background: #b9c2bd;
  cursor: not-allowed;
}

.lp-send svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -2px;
}

.lp-composer.is-pending .lp-send svg {
  animation: lp-send .6s var(--ease);
}

.lp-error {
  margin: .6rem 0 0;
  font-size: .9rem;
  color: #a02b1d;
}

.lp-error:empty {
  display: none;
}

.lp-noscript {
  margin: .75rem 0 0;
  font-size: .9rem;
  color: var(--ink-2);
}

.lp-privacy {
  margin: .8rem 0 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
}

.lp-done {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.lp-done strong {
  font-weight: 600;
}

.lp-done p {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-2);
}

.lp-done a {
  justify-self: start;
  margin-top: .3rem;
  font-weight: 500;
  color: var(--teal-ink);
}

/* How it works */

.lp-how {
  background: var(--dark);
  color: #e9efed;
}

.lp-how .lp-label { color: #8fa39e; }

.lp-how__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.lp-how .lp-h2 {
  max-width: 14ch;
  margin-top: 1.25rem;
  color: #fff;
}

.lp-tour {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-tour li + li {
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.lp-tour__item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: .75rem;
  width: 100%;
  padding: 1.25rem 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.lp-tour__num {
  grid-row: span 2;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.9;
  color: #7f938e;
  transition: color .3s;
}

.lp-tour__title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #fff;
}

.lp-tour__text {
  max-width: 30rem;
  margin-top: .3rem;
  line-height: 1.55;
  color: #a9b8b4;
}

.lp-js .lp-tour__item[aria-pressed="false"] :is(.lp-tour__title, .lp-tour__text) {
  opacity: .5;
  transition: opacity .3s;
}

.lp-js .lp-tour__item[aria-pressed="false"]:hover :is(.lp-tour__title, .lp-tour__text) {
  opacity: .8;
}

.lp-tour__item[aria-pressed="true"] .lp-tour__num {
  color: var(--teal);
}

.lp-how__device {
  justify-self: center;
}

/* Skills */

.lp-cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color .25s;
}

.lp-card:hover {
  border-color: var(--line-strong);
}

.lp-card:has(.lp-card__cta:focus-visible) {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
}

.lp-card__art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tone);
}

.lp-card__art img {
  width: 72%;
  height: auto;
  transition: transform .6s var(--ease);
}

.lp-card:hover .lp-card__art img {
  transform: translateY(-4px) scale(1.03);
}

.lp-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.35rem 1.4rem;
}

.lp-card__meta {
  font-size: .88rem;
  color: var(--muted);
}

.lp-card__name {
  margin: .2rem 0 .35rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.02em;
}

.lp-card__desc {
  line-height: 1.5;
  color: var(--ink-2);
}

.lp-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.lp-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
}

.lp-card__cta:focus-visible {
  outline: none;
}

/* Layout */

@media (min-width: 40em) {
  .lp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-hcard {
    left: -4%;
  }
}

@media (max-width: 39.99em) {
  .lp-hero__stage {
    aspect-ratio: auto;
  }

  .lp-slide__art {
    position: relative;
    top: auto;
    right: auto;
    display: block;
    width: 68%;
    margin: 2.5rem auto 0;
  }

  .lp-hcard {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
    margin: -1.5rem .75rem .75rem;
    font-size: .88rem;
  }

  .lp-cards {
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    margin-inline: calc(-1 * var(--pad));
    padding: 0 var(--pad) .5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }

  .lp-card {
    scroll-snap-align: start;
  }
}

@media (min-width: 64em) {
  .lp-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

  .lp-practice__grid {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1.5rem;
  }

  .lp-skills {
    position: sticky;
    top: 6.5rem;
  }

  .lp-skills__list {
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .lp-panel {
    grid-template-columns: 17rem minmax(0, 1fr);
  }

  .lp-panel__art {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem;
  }

  .lp-panel__art img {
    width: 92%;
    justify-self: center;
  }

  .lp-panel__talk {
    padding: 1.5rem 1.75rem 1.5rem;
  }

  .lp-composer {
    padding: 1.25rem 1.75rem 1.5rem;
  }

  .lp-how__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "copy device" "tour device";
    grid-template-rows: auto 1fr;
    row-gap: 0;
  }

  .lp-how__copy { grid-area: copy; }
  .lp-how__device { grid-area: device; }
  .lp-tour { grid-area: tour; align-self: start; margin-top: 2.5rem; }

  .lp-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

/* Bounded conversation area: the page never grows while you practice. */

.lp-panel__talk {
  display: flex;
  flex-direction: column;
}

.lp-scroll {
  position: relative;
  flex: none;
  min-height: 0;
  height: min(32rem, 64svh);
  margin-inline: -.25rem;
  padding-inline: .25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

@media (min-width: 64em) {
  .lp-panel,
  .lp-panel__talk {
    height: 38rem;
  }

  .lp-scroll {
    flex: 1;
    height: auto;
  }
}

/* Hero card playback */

.lp-slide__art {
  animation: lp-bob 7s ease-in-out infinite;
}

.lp-hcard__them {
  display: flex;
}

.lp-hcard__typing {
  display: none;
}

.lp-hcard.is-typing .lp-hcard__typing {
  display: inline-flex;
}

.lp-hcard.is-typing .lp-hcard__them .lp-bubble {
  display: none;
}

.lp-hrow {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .55s var(--ease), opacity .45s var(--ease);
}

.lp-hrow > span {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lp-hrow .lp-bubble--you {
  align-self: flex-end;
}

.lp-hcard {
  gap: 0;
}

.lp-hcard__head {
  margin-bottom: .1rem;
}

.lp-hrow .lp-hcard__them,
.lp-hrow .lp-bubble--you,
.lp-hrow .lp-hcard__note {
  margin-top: .6rem;
  transition: transform .55s var(--ease);
}

.lp-js .lp-hrow:not(.is-shown) {
  opacity: 0;
}

.lp-js .lp-hrow:not(.is-shown) :is(.lp-hcard__them, .lp-bubble--you, .lp-hcard__note) {
  transform: translateY(10px);
}

@media (min-width: 40em) {
  .lp-hrow > span {
    overflow: hidden;
  }

  .lp-js .lp-hrow:not(.is-shown) {
    grid-template-rows: 0fr;
  }
}

/* Scroll reveals */

.lp-js [data-reveal] {
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.lp-js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

.lp-tour__item {
  position: relative;
}

.lp-tour__item::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 2.75rem;
  right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
}

.lp-js .lp-tour.is-playing .lp-tour__item[aria-pressed="true"]::after {
  animation: lp-progress var(--dur, 4s) linear forwards;
}

@keyframes lp-send {
  40% { transform: translate(5px, -5px) scale(.8); opacity: 0; }
  41% { transform: translate(-5px, 5px) scale(.8); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

@keyframes lp-plus {
  0% { opacity: 0; transform: translateY(4px); }
  25% { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(-14px); }
}

@keyframes lp-flame {
  40% { transform: scale(1.3) rotate(-8deg); }
}

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

@keyframes lp-progress {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-js [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* Hero */

.lp-hl {
  color: var(--teal-ink);
}

.lp-hero {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.lp-hero__note {
  margin-top: 2rem;
}

/* Practice: arrival highlight */

.lp-stage {
  transition: box-shadow .6s var(--ease), border-color .6s var(--ease);
}

.lp-stage.is-arriving {
  border-color: var(--teal);
  box-shadow: 0 0 0 6px rgb(20 184 166 / 14%), 0 30px 60px -30px rgb(18 27 25 / 25%);
}

.lp-panel__art img {
  animation: lp-bob 8s ease-in-out infinite;
}

.lp-skill {
  transition: background-color .2s, border-color .2s, transform .25s var(--ease);
}

.lp-skill:has(input:checked) {
  box-shadow: 0 10px 24px -18px rgb(18 27 25 / 35%);
}

.lp-skill:has(input:checked) .lp-skill__name {
  font-weight: 600;
}

/* Skills */

.lp-card {
  transition: border-color .25s, transform .4s var(--ease), box-shadow .4s var(--ease);
}

.lp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -28px rgb(18 27 25 / 35%);
}

.lp-more {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.lp-more__label {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}

.lp-more__list {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.lp-more__list li + li::before {
  content: "\00b7";
  margin: 0 .6rem;
  color: var(--line-strong);
}

@media (min-width: 64em) {
  .lp-panel,
  .lp-panel__talk {
    height: 36rem;
  }

  .lp-panel__art {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .lp-panel__art .lp-panel__copy {
    order: -1;
  }

  .lp-panel__art img {
    width: 100%;
    margin-top: auto;
  }
}

/* Arriving at practice or How it works shows the whole interactive area in one screen. */

#practice,
#features {
  scroll-margin-top: 5.5rem;
}

.lp-composer {
  padding: .9rem 1.25rem 1rem;
}

.lp-composer__meta {
  margin-top: .45rem;
}

.lp-practice__grid > .lp-privacy {
  max-width: 44rem;
  margin: .9rem 0 0;
}

.lp-sim {
  --w: min(76vw, 20rem, calc((100svh - 8rem) * 9 / 19));
}

@media (max-width: 63.99em) {
  .lp-panel__art {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: .85rem;
    padding: .8rem 1rem;
  }

  .lp-panel__who {
    font-size: .92rem;
  }

  .lp-panel__situation {
    font-size: .88rem;
    line-height: 1.4;
  }

  .lp-panel__talk {
    padding: .75rem 1rem 1rem;
  }

  .lp-tv__svg {
    width: min(100%, 20rem);
  }

  .lp-tv__label {
    font-size: .84rem;
  }

  .lp-scroll {
    height: clamp(14rem, calc(100vh - 30rem), 30rem);
    height: clamp(14rem, calc(100svh - 30rem), 30rem);
  }

  .lp-convo {
    padding-top: .75rem;
  }

  .lp-composer {
    padding: .75rem 1rem .85rem;
  }
}

@media (min-width: 64em) {
  .lp-panel,
  .lp-panel__talk {
    height: clamp(22rem, calc(100vh - 14rem), 36rem);
    height: clamp(22rem, calc(100svh - 14rem), 36rem);
  }

  .lp-practice__grid > .lp-privacy {
    grid-column: 2;
    margin-top: 0;
  }
}

@media (max-width: 63.99em) {
  .lp-practice__grid {
    gap: .6rem;
  }

  .lp-skill {
    gap: .55rem;
    padding: .3rem .8rem .3rem .3rem;
  }

  .lp-skill__art {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
  }

  .lp-skill__meta {
    display: none;
  }

  .lp-scroll {
    height: clamp(10rem, calc(100vh - 30.5rem), 30rem);
    height: clamp(10rem, calc(100svh - 30.5rem), 30rem);
  }
}

.lp-scroll {
  padding-bottom: 1.25rem;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 1.75rem), transparent);
}

/* Phones: steps become a swipeable row above the phone, so the step and its result share one screen. */

@media (max-width: 63.99em) {
  .lp-how__grid {
    gap: 1.25rem;
  }

  .lp-how__copy { order: 1; }
  .lp-tour { order: 2; }
  .lp-how__device { order: 3; }

  .lp-how .lp-h2 {
    margin-top: .75rem;
    max-width: none;
    font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.4rem);
  }

  .lp-tour {
    display: flex;
    gap: .6rem;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) .25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }

  .lp-tour li {
    flex: 0 0 min(80%, 20rem);
    scroll-snap-align: start;
  }

  .lp-tour li + li {
    border-top: 0;
  }

  .lp-tour__item {
    height: 100%;
    padding: .85rem 1rem 1rem;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 16px;
    background: rgb(255 255 255 / 4%);
    transition: border-color .3s, background-color .3s;
  }

  .lp-tour__item[aria-pressed="true"] {
    border-color: rgb(20 184 166 / 55%);
    background: rgb(255 255 255 / 8%);
  }

  .lp-tour__item::after {
    right: 1rem;
    bottom: .45rem;
    left: 1rem;
  }

  .lp-tour__title {
    font-size: 1.02rem;
  }

  .lp-tour__text {
    font-size: .88rem;
    line-height: 1.45;
  }

  .lp-sim {
    --w: clamp(min(17rem, 84vw), calc((100svh - 17rem) * 9 / 19), min(84vw, 20rem));
  }
}

@media (max-width: 63.99em) {
  .lp-tour__item {
    grid-template-columns: 1.25rem minmax(0, 1fr);
    column-gap: .4rem;
  }

  .lp-tour__num {
    line-height: 1.6;
  }

}

/* Skill thumbnails show the whole illustration instead of a zoomed crop. */

.lp-skill__art img {
  object-fit: contain;
  transform: none;
}

@media (min-width: 64em) {
  .lp-skill__art {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
  }
}

/* Practice panel follows the app's chat: header, thread line, scene card, inline coaching. */

.lp-chathead {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.lp-chathead__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--tone-ink) 55%, transparent);
  font-weight: 600;
  color: var(--tone-ink);
}

.lp-chathead__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.lp-chathead__name {
  font-weight: 600;
}

.lp-chathead__rel {
  overflow: hidden;
  font-size: .86rem;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lp-tv {
  margin-top: .6rem;
}

.lp-tv__svg,
.lp-tv__svg:is(*) {
  width: 100%;
  height: 2rem;
  margin: 0;
}

.lp-tv__end--them {
  fill: #b9c2bd;
}

.lp-tv__end--you {
  fill: var(--teal);
}

.lp-tv__label {
  margin-top: 0;
  font-size: .84rem;
}

.lp-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  margin: .75rem 0 0;
  padding: .85rem 1rem .95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: .93rem;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-2);
}

.lp-scene svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
}

.lp-panel__skill {
  font-weight: 600;
  color: var(--tone-ink);
}

.lp-panel__desc {
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-2);
}

@media (max-width: 63.99em) {
  .lp-panel__art {
    display: none;
  }

  .lp-scene {
    font-size: .88rem;
  }
}

@media (min-width: 64em) {
  .lp-panel {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .lp-panel__art {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .35rem;
  }

  .lp-panel__art img {
    order: -1;
    width: 100%;
    margin: 0 0 auto;
    animation: lp-bob 8s ease-in-out infinite;
  }
}

/* Coaching card: tinted by how the reply landed, like the app. */

.lp-choice[data-thread="tangled"],
.lp-coach[data-thread="tangled"] { --c: var(--coral); --c-ink: #a8431f; }

.lp-choice[data-thread="loose"],
.lp-coach[data-thread="loose"] { --c: var(--amber); --c-ink: #8a5a00; }

.lp-choice[data-thread="connected"],
.lp-coach[data-thread="connected"] { --c: var(--teal); --c-ink: var(--teal-ink); }

.lp-coachnote,
.lp-coach {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin: .5rem 0 .25rem 8%;
  padding: .85rem 1rem .95rem;
  border: 1px solid color-mix(in srgb, var(--c, var(--line-strong)) 28%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--c, #cfcbc1) 9%, var(--surface));
}

.lp-coachnote__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-weight: 600;
  color: var(--c-ink, var(--ink));
}

.lp-coachnote__head svg {
  width: 1.5rem;
  height: .75rem;
  color: var(--c, var(--muted));
}

.lp-note {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: .6rem;
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.lp-note svg,
.lp-coachnote .lp-note svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  color: var(--c, var(--ink-2));
}

.lp-note b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

/* Send button doubles as the app's message counter ring. */

.lp-send,
.lp-send:hover:not(:disabled) {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  color: var(--teal-ink);
}

.lp-send__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  transition: opacity .2s;
}

.lp-send__ring circle {
  fill: none;
  stroke-width: 3;
}

.lp-send__track {
  stroke: var(--line);
}

.lp-send__left {
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--left, 1));
  transition: stroke-dashoffset .6s var(--ease);
}

.lp-send__count {
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lp-send__icon,
.lp-send svg.lp-send__icon {
  position: absolute;
  inset: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin: auto;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s, transform .25s var(--ease);
}

.lp-composer.has-text .lp-send:not(:disabled) {
  background: var(--teal-ink);
  color: #fff;
}

.lp-composer.has-text .lp-send:not(:disabled) .lp-send__ring,
.lp-composer.has-text .lp-send:not(:disabled) .lp-send__count {
  opacity: 0;
}

.lp-composer.has-text .lp-send:not(:disabled) .lp-send__icon {
  opacity: 1;
  transform: none;
}

.lp-send:disabled {
  background: transparent;
  color: var(--muted);
}

/* Simulated app screen, using the app's own dark palette. */

.lp-sim {
  --u: calc(var(--w) / 20);
  width: var(--w);
  --sim-bg: #0e1525;
  --sim-bubble: #202938;
  --sim-you: #0e766d;
  --sim-text: #dce5e4;
  --sim-muted: #8793a3;
  --sim-line: #283042;
  --sim-amber: #e5a62b;
  --sim-teal: #16b7a8;
  --left: .8;

  position: relative;
  aspect-ratio: 9 / 19;
  padding: calc(.5625 * var(--u));
  border-radius: calc(3 * var(--u));
  background: #050a14;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%), 0 50px 90px -30px rgb(0 0 0 / 60%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--sim-text);
}

.lp-sim__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: calc(2.5 * var(--u));
  background: var(--sim-bg);
}

.lp-sim__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(.85 * var(--u)) calc(1.5 * var(--u)) calc(.2 * var(--u));
  font-size: calc(.76 * var(--u));
  font-weight: 600;
}

.lp-sim__status svg {
  width: calc(2.9 * var(--u));
  height: calc(.7 * var(--u));
  fill: currentColor;
}

.lp-sim__head {
  display: flex;
  align-items: center;
  gap: calc(.55 * var(--u));
  padding: calc(.45 * var(--u)) calc(.8 * var(--u)) calc(.2 * var(--u));
}

.lp-sim__back {
  flex: none;
  width: calc(1.15 * var(--u));
  height: calc(1.15 * var(--u));
  fill: none;
  stroke: var(--sim-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-sim__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(2 * var(--u));
  height: calc(2 * var(--u));
  border-radius: 50%;
  background: #6f4b01;
  box-shadow: 0 0 0 calc(.125 * var(--u)) var(--sim-bg), 0 0 0 calc(.2188 * var(--u)) var(--sim-amber);
  font-size: calc(.8 * var(--u));
  font-weight: 600;
  color: #f6ead0;
}

.lp-sim__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.lp-sim__who b {
  font-size: calc(.82 * var(--u));
  font-weight: 600;
}

.lp-sim__who span {
  overflow: hidden;
  font-size: calc(.66 * var(--u));
  color: var(--sim-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lp-sim__points {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(.25 * var(--u));
  margin-left: auto;
  padding: calc(.3 * var(--u)) calc(.6 * var(--u));
  border-radius: 999px;
  background: #0e2934;
  font-size: calc(.72 * var(--u));
  color: var(--sim-teal);
}

.lp-sim__points img {
  width: calc(1.15 * var(--u));
  height: auto;
}

.lp-sim__points b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.lp-sim__plus {
  position: absolute;
  top: calc(-.8 * var(--u));
  right: calc(.4 * var(--u));
  font-size: calc(.66 * var(--u));
  font-style: normal;
  font-weight: 600;
  opacity: 0;
}

.lp-sim.is-scoring .lp-sim__plus {
  animation: lp-plus 1.4s var(--ease);
}

.lp-sim__thread {
  display: block;
  width: calc(100% - var(--u));
  height: calc(1.25 * var(--u));
  margin: calc(.3 * var(--u)) calc(.5 * var(--u)) calc(.1 * var(--u));
  overflow: visible;
}

.lp-sim__line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  transition: opacity .6s var(--ease);
}

.lp-sim__line--idle {
  stroke: #56627a;
}

.lp-sim__line--on {
  stroke: var(--sim-teal);
  opacity: 0;
}

.lp-sim.is-connected .lp-sim__line--on,
.lp-sim:not(.is-live) .lp-sim__line--on {
  opacity: 1;
}

.lp-sim.is-connected .lp-sim__line--idle,
.lp-sim:not(.is-live) .lp-sim__line--idle {
  opacity: 0;
}

.lp-sim__dot {
  fill: #8a95a8;
}

.lp-sim__dot--you {
  fill: var(--sim-teal);
}

.lp-sim__chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 0 calc(.65 * var(--u)) calc(.35 * var(--u));
  overflow: hidden;
}

.lp-sim__scene {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: calc(.3 * var(--u));
  margin: calc(.3 * var(--u)) 0 auto;
  padding: calc(.6 * var(--u)) calc(.7 * var(--u)) calc(.65 * var(--u));
  border: 1px solid var(--sim-line);
  border-radius: calc(.875 * var(--u));
  font-size: calc(.68 * var(--u));
  line-height: 1.45;
  text-align: center;
  color: var(--sim-muted);
}

.lp-sim__scene svg {
  width: calc(.9 * var(--u));
  height: calc(.9 * var(--u));
}

.lp-sim__row {
  display: grid;
  flex: none;
  grid-template-rows: 1fr;
  transition: grid-template-rows .5s var(--ease), opacity .4s;
}

.lp-sim__row > * {
  min-height: 0;
  overflow: hidden;
}

.lp-sim.is-live .lp-sim__row:not(.is-shown),
.lp-sim:not(.is-live) [data-sim-typing] {
  grid-template-rows: 0fr;
  opacity: 0;
}

.lp-sim__msg {
  width: fit-content;
  max-width: 82%;
  margin: calc(.45 * var(--u)) 0 0;
  padding: calc(.55 * var(--u)) calc(.75 * var(--u));
  border-radius: calc(.875 * var(--u));
  background: var(--sim-bubble);
  font-size: calc(.74 * var(--u));
  line-height: 1.4;
}

.lp-sim__msg--you {
  margin-left: auto;
  background: var(--sim-you);
  color: #fff;
}

.lp-sim__dots {
  display: flex;
  gap: calc(.1875 * var(--u));
  padding: calc(.7 * var(--u)) calc(.8 * var(--u));
}

.lp-sim__dots i {
  display: block;
  width: calc(.375 * var(--u));
  height: calc(.375 * var(--u));
  overflow: hidden;
  border-radius: 50%;
  background: var(--sim-muted);
  font-size: 0;
  animation: lp-dots 1.2s infinite ease-in-out;
}

.lp-sim__dots i:nth-child(2) { animation-delay: .15s; }
.lp-sim__dots i:nth-child(3) { animation-delay: .3s; }

.lp-sim__coach {
  display: grid;
  gap: calc(.45 * var(--u));
  margin: calc(.45 * var(--u)) 0 0 12%;
  padding: calc(.6 * var(--u)) calc(.7 * var(--u)) calc(.65 * var(--u));
  border-radius: calc(.875 * var(--u));
  background: #102b2e;
  font-size: calc(.68 * var(--u));
  line-height: 1.4;
}

.lp-sim__coach-head {
  display: flex;
  align-items: center;
  gap: calc(.35 * var(--u));
  margin: 0;
  font-size: calc(.74 * var(--u));
  font-weight: 600;
  color: var(--sim-teal);
}

.lp-sim__coach-head > svg {
  width: calc(1.1 * var(--u));
  height: calc(.55 * var(--u));
}

.lp-sim__coach-pts {
  display: inline-flex;
  align-items: center;
  gap: calc(.15 * var(--u));
  font-weight: 500;
}

.lp-sim__coach-pts img {
  width: calc(.95 * var(--u));
  height: auto;
}

.lp-sim__tip {
  display: grid;
  grid-template-columns: calc(.85 * var(--u)) minmax(0, 1fr);
  gap: calc(.4 * var(--u));
  margin: 0;
  color: #c9d2d6;
}

.lp-sim__tip svg {
  width: calc(.85 * var(--u));
  height: calc(.85 * var(--u));
  margin-top: calc(.1 * var(--u));
  color: var(--sim-teal);
}

.lp-sim__tip b {
  display: block;
  font-weight: 600;
  color: var(--sim-text);
}

.lp-sim__input {
  display: flex;
  align-items: center;
  gap: calc(.45 * var(--u));
  margin: calc(.25 * var(--u)) calc(.6 * var(--u)) calc(1.3 * var(--u));
}

.lp-sim__field {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0 calc(.9 * var(--u));
  border-radius: 999px;
  background: var(--sim-bubble);
  font-size: calc(.76 * var(--u));
  line-height: calc(2.1 * var(--u));
  white-space: nowrap;
}

.lp-sim__placeholder {
  position: absolute;
  left: calc(.9 * var(--u));
  color: var(--sim-muted);
}

.lp-sim__field:has([data-sim-draft]:not(:empty)) .lp-sim__placeholder {
  display: none;
}

.lp-sim__caret {
  display: none;
  width: calc(.0938 * var(--u));
  height: var(--u);
  margin-left: calc(.0625 * var(--u));
  vertical-align: calc(-.1875 * var(--u));
  background: var(--sim-teal);
  animation: lp-caret 1s steps(1) infinite;
}

.lp-sim.is-typing .lp-sim__caret {
  display: inline-block;
}

.lp-sim__ring {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: calc(2.1 * var(--u));
  height: calc(2.1 * var(--u));
  border-radius: 50%;
  font-size: calc(.72 * var(--u));
  color: var(--sim-teal);
  transition: background-color .25s, transform .25s var(--ease);
}

.lp-sim__ring > svg:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.lp-sim__ring circle {
  fill: none;
  stroke: var(--sim-line);
  stroke-width: 3;
}

.lp-sim__ring .lp-sim__ring-left {
  stroke: var(--sim-teal);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--left));
  transition: stroke-dashoffset .6s var(--ease);
}

.lp-sim__ring b {
  font-weight: 600;
}

.lp-sim__send {
  position: absolute;
  width: calc(.9 * var(--u));
  height: calc(.9 * var(--u));
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linejoin: round;
  opacity: 0;
}

.lp-sim.is-typing .lp-sim__ring {
  background: var(--sim-you);
}

.lp-sim.is-typing .lp-sim__ring > :not(.lp-sim__send) {
  opacity: 0;
}

.lp-sim.is-typing .lp-sim__send {
  opacity: 1;
}

.lp-sim.is-sending .lp-sim__ring {
  transform: scale(.88);
}

.lp-send {
  display: grid;
  place-items: center;
}

.lp-send > * {
  grid-area: 1 / 1;
}

.lp-send .lp-send__ring {
  width: 100%;
  height: 100%;
  margin: 0;
}

.lp-tv {
  margin-bottom: .35rem;
}

.lp-sim__field {
  height: calc(2.1 * var(--u));
}

.lp-sim__chat {
  justify-content: flex-start;
}

.lp-sim__scene {
  margin-bottom: calc(.15 * var(--u));
}

/* The practice line keeps its original, more expressive shapes. */

.lp-tv {
  margin-top: .1rem;
  margin-bottom: 0;
}

.lp-tv__svg,
.lp-tv__svg:is(*) {
  height: 4.25rem;
}

.lp-tv__path {
  stroke-width: 2.5;
}

.lp-tv__label {
  margin-top: -.35rem;
}

@media (max-width: 63.99em) {
  .lp-tv__svg,
  .lp-tv__svg:is(*) {
    height: 3.75rem;
  }

  .lp-scroll {
    height: clamp(10rem, calc(100vh - 32.5rem), 30rem);
    height: clamp(10rem, calc(100svh - 32.5rem), 30rem);
  }
}

/* Hero card echoes the app: ringed avatar, thread line, tinted coaching card. */

.lp-hcard .lp-avatar {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--tone-ink) 55%, transparent);
}

.lp-hcard__head {
  padding-bottom: .35rem;
  border-bottom: 0;
}

.lp-hcard__thread {
  display: block;
  width: 100%;
  height: 1rem;
  overflow: visible;
}

.lp-hcard__line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  transition: opacity .6s var(--ease);
}

.lp-hcard__line--idle { stroke: #c3cbc7; }
.lp-hcard__line--on { stroke: var(--teal); opacity: 0; }
.lp-hcard.is-connected .lp-hcard__line--on { opacity: 1; }
.lp-hcard.is-connected .lp-hcard__line--idle { opacity: 0; }
.lp-hcard__dot { fill: #b9c2bd; }
.lp-hcard__dot--you { fill: var(--teal); }

.lp-slide:first-child .lp-hcard:not(.lp-js *) .lp-hcard__line--on { opacity: 1; }
.lp-slide:first-child .lp-hcard:not(.lp-js *) .lp-hcard__line--idle { opacity: 0; }

.lp-hcard__note {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .7rem .85rem .8rem;
  border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--teal) 9%, var(--surface));
}

.lp-hrow .lp-hcard__note {
  margin-left: 8%;
}

.lp-hcard__note-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--teal-ink);
}

.lp-hcard__note-head svg,
.lp-hcard__note .lp-hcard__note-head svg {
  width: 1.35rem;
  height: .7rem;
  color: var(--teal);
}

.lp-hcard__note-item {
  display: grid;
  grid-template-columns: 1.05rem minmax(0, 1fr);
  gap: .5rem;
  color: var(--ink-2);
}

.lp-hcard__note-item svg,
.lp-hcard__note .lp-hcard__note-item svg {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .15rem;
  color: var(--teal);
}

.lp-hcard__note-item b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

/* Hero segments: pick a moment by hovering or tapping; auto-play continues from there. */

.lp-hero__progress {
  z-index: 2;
  align-items: center;
  gap: 0;
  top: .75rem;
  left: .85rem;
}

.lp-hero__seg {
  display: grid;
  place-items: center;
  height: 1.5rem;
  padding: 0 2px;
  border: 0;
  background: none;
  cursor: pointer;
}

.lp-hero__seg::before {
  content: "";
  width: 1.1rem;
  height: 3px;
  border-radius: 2px;
  background: rgb(18 27 25 / 16%);
  transition: width .4s var(--ease), background-color .25s, height .2s;
}

.lp-hero__seg:hover::before {
  background: rgb(18 27 25 / 38%);
  height: 4px;
}

.lp-hero__seg.is-active::before {
  width: 2rem;
  background: rgb(18 27 25 / 62%);
}

.lp-hero__seg:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 0;
  border-radius: 6px;
}

.lp-hero__name {
  margin-left: .55rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--tone-ink);
  transition: color .6s var(--ease);
}

.lp-hcard__skill {
  display: none;
}
