


.btn {
  position: relative;
  transition:
    background-color var(--motion-base) ease,
    color var(--motion-base) ease,
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    translate var(--motion-fast) var(--m-ease),
    scale var(--motion-quick) var(--m-ease);
}
.btn--primary:hover:not([aria-disabled='true']) {
  translate: 0 -1px;
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--color-brand-900) 60%, transparent);
}
.btn:active:not(:disabled, [aria-disabled='true']) {
  scale: 0.98;
  translate: 0 0;
}
.btn--secondary {
  border-color: var(--color-border);
}
.btn__ico {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  transition: translate var(--motion-base) var(--m-ease);
}
.btn:hover:not([aria-disabled='true']) .btn__arrow {
  translate: 3px 0;
}

.btn--primary[aria-disabled='true'],
.btn--primary[aria-disabled='true']:hover {
  background: color-mix(in srgb, var(--color-text-muted) 14%, var(--color-canvas));
  color: var(--color-text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn.is-busy {
  pointer-events: none;
}
.btn.is-busy:not(:has(.btn__spin)) > * {
  opacity: 0;
  transition: opacity var(--motion-fast) var(--m-ease) 120ms;
}
.btn.is-busy:not(:has(.btn__spin))::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  margin: auto;
  box-sizing: border-box;
  border: 2.5px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation:
    m-spin 0.8s linear infinite,
    m-appear var(--motion-fast) var(--m-ease) 120ms both;
}
@keyframes m-appear {
  from {
    opacity: 0;
  }
}

.btn__spin {
  width: 18px;
  height: 18px;
  flex: none;
  border: 2.5px solid color-mix(in srgb, currentColor 35%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: m-spin 0.8s linear infinite;
}
@keyframes m-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn__spin {
    animation-duration: 2s;
  }
  .btn,
  .btn__arrow {
    transition: none;
  }
  .btn--primary:hover:not([aria-disabled='true']) {
    translate: 0 0;
  }
  .btn:hover:not([aria-disabled='true']) .btn__arrow {
    translate: 0 0;
  }
}


.mark {
  width: 56px;
  height: 56px;
  color: var(--m-done);
  animation: m-popin var(--m-spring) var(--m-ease-spring);
}
.mark--big {
  width: 84px;
  height: 84px;
}

.mark--solid {
  flex: none;
  width: 28px;
  height: 28px;
}
.mark.mark--solid circle {
  fill: var(--m-done);
  stroke: none;
}
.mark.mark--solid path {
  stroke: var(--color-on-panel);
  stroke-width: 8;
}
.mark circle {
  fill: var(--m-done-soft);
  stroke: var(--m-done);
  stroke-width: 2;
}
.mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: m-draw 480ms var(--m-ease) 200ms forwards;
}
@keyframes m-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes m-popin {
  50% {
    scale: 1.08;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mark,
  .mark path {
    animation: none;
    stroke-dashoffset: 0;
  }
}


@media (max-width: 700px) {
  .shell-modal.funnel-sheet {
    padding: 0;
    background: color-mix(in srgb, var(--color-marketing-deep) 42%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .funnel-sheet .shell-modal__dialog {
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    padding: var(--space-6) var(--space-5) max(var(--space-5), env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  html[data-motion-ready] .shell-modal.funnel-sheet .shell-modal__dialog {
    transition: translate 420ms var(--motion-ease-sheet);
  }
  
  html[data-motion-ready] .shell-modal.funnel-sheet,
  html[data-motion-ready] .shell-modal.funnel-sheet[hidden] {
    opacity: 1;
    transition:
      background-color 320ms ease,
      -webkit-backdrop-filter 320ms ease,
      backdrop-filter 320ms ease,
      display 260ms allow-discrete,
      overlay 260ms allow-discrete;
  }
  html[data-motion-ready] .shell-modal.funnel-sheet[hidden] {
    background-color: transparent;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
  html[data-motion-ready] .shell-modal.funnel-sheet[hidden] .shell-modal__dialog {
    opacity: 1;
    scale: 1;
    translate: 0 100%;
    transition: translate 260ms cubic-bezier(0.4, 0, 1, 1);
  }
  @starting-style {
    html[data-motion-ready] .shell-modal.funnel-sheet:not([hidden]) {
      opacity: 1;
      background-color: transparent;
      -webkit-backdrop-filter: blur(0);
      backdrop-filter: blur(0);
    }
    html[data-motion-ready] .shell-modal.funnel-sheet:not([hidden]) .shell-modal__dialog {
      opacity: 1;
      scale: 1;
      translate: 0 100%;
    }
  }
}


.hint {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-danger-700);
}
.hint[hidden] {
  display: none;
}


.funnel-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-danger-700);
}
.funnel-alert[hidden] {
  display: none;
}
.funnel-alert svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.field.is-invalid .field__input {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-danger) 14%, transparent);
}

.funnel-sent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--m-done);
  text-align: center;
}
.funnel-sent[hidden] {
  display: none;
}
.funnel-sent svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.funnel-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
  text-wrap: balance;
}
.funnel-note svg {
  width: 15px;
  height: 15px;
  flex: none;
}


.later {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.later__box {
  width: 100%;
  max-width: 24rem;
  margin-top: var(--space-2);
  text-align: center;
}
.later__box[hidden] {
  display: none;
}
.later__say {
  margin: 0 0 var(--space-2);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}
.later__row {
  display: flex;
  gap: var(--space-2);
}
.later__input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  height: 44px;
  padding: 0 var(--space-3);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-canvas);
  color: var(--color-text);
  font: inherit;
  font-size: 0.92rem;
  text-align: center;
}

.later__input::placeholder {
  color: var(--color-text-muted);
}
.later__input:focus-visible {
  outline: none;
  border-color: var(--color-brand-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-600) 12%, transparent);
}
.later__input.is-invalid {
  border-color: var(--color-danger);
}
.later__send {
  height: 44px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--color-brand-600);
  border-radius: var(--funnel-corner);
  background: var(--color-canvas);
  color: var(--color-brand-600);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.later__send:hover {
  background: var(--color-brand-50);
}
.later__err {
  margin: var(--space-2) 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-danger-700);
}
.later__err[hidden] {
  display: none;
}
.later__ok {
  margin: var(--space-2) 0 0;
  max-width: 24rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--m-done);
  text-align: center;
}
.later__ok[hidden] {
  display: none;
}


:is(.stack, .lead-form .send-list__people) {
  scrollbar-color: auto;
  scrollbar-width: auto;
}
:is(.stack, .lead-form .send-list__people)::-webkit-scrollbar {
  height: 5px;
}
:is(.stack, .lead-form .send-list__people)::-webkit-scrollbar-track {
  margin-inline: 10px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--color-brand-300) 22%, var(--color-canvas));
}
:is(.stack, .lead-form .send-list__people)::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: color-mix(in srgb, var(--color-brand-300) 78%, var(--color-brand-600));
}
:is(.stack, .lead-form .send-list__people)::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--color-brand-300) 45%, var(--color-brand-600));
}
