/* Live demo card styles from marketing-base.css and lander-v3.css; scoped to /b. */

.demo-section .surf-try svg {
  color: currentColor;
}
.demo-section .surf-try:focus-visible {
  outline: var(--hs-size-focus-ring) solid var(--hs-border-focus);
  outline-offset: 2px;
}

.demo-section .surf.is-live .surf-live {
  display: flex;
}
.demo-section .live-end:focus-visible {
  outline: var(--hs-size-focus-ring) solid var(--hs-border-focus);
  outline-offset: 2px;
}

.demo-section .surf {
  transition:
    transform var(--hs-duration-base) var(--hs-ease-standard),
    box-shadow var(--hs-duration-base) var(--hs-ease-standard),
    border-color var(--hs-duration-base) var(--hs-ease-standard);
}
.demo-section .surf:hover {
  transform: translateY(-2px);
  box-shadow: var(--hs-elevation-overlay);
}

.demo-section .surf {
  background: var(--hs-bg-raised);
  border: var(--hs-size-hairline) solid var(--hs-border-default);
  border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-elevation-raised);
  display: grid;
  /* head / body / foot, with the body taking the slack so all three cards
     end up the same height whatever their content */
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.demo-section .surf-head {
  display: flex;
  align-items: center;
  gap: var(--hs-space-3);
  padding: var(--hs-space-4) var(--hs-space-5);
  border-bottom: var(--hs-size-hairline) solid var(--hs-border-subtle);
}
.demo-section .surf-ic {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--hs-radius-sm);
  display: grid;
  place-items: center;
}
.demo-section .surf-ic--voice {
  background: var(--hs-accent-muted);
  color: var(--hs-accent-ink);
}
.demo-section .surf-ic--sms {
  background: rgba(0, 122, 255, 0.12);
  color: var(--ios-blue);
}
.demo-section .surf-ic--web {
  background: var(--hs-accent2-subtle);
  color: var(--hs-accent2-ink);
}
.demo-section .surf-t {
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-base);
  font-weight: var(--hs-weight-bold);
  letter-spacing: var(--hs-tracking-tight);
  color: var(--hs-fg-primary);
}
.demo-section .surf-body {
  padding: var(--hs-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-2);
  background: var(--hs-bg-sunken);
}
.demo-section .surf-bub {
  max-width: 92%;
  padding: 8px var(--hs-space-4);
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-weight-medium);
  line-height: var(--hs-leading-snug);
  letter-spacing: var(--hs-tracking-tight);
}
.demo-section .surf-bub--out {
  align-self: flex-end;
  background: linear-gradient(180deg, var(--ios-blue-hi), var(--ios-blue));
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.demo-section .surf-bub--in {
  align-self: flex-start;
  background: var(--hs-bg-raised);
  color: var(--hs-fg-primary);
  border: var(--hs-size-hairline) solid var(--hs-border-default);
  border-radius: 16px 16px 16px 4px;
}
.demo-section .surf-bub--sm {
  font-size: var(--hs-text-xs);
  max-width: 100%;
}
.demo-section .surf-foot {
  margin: 0;
  padding: var(--hs-space-3) var(--hs-space-5);
  border-top: var(--hs-size-hairline) solid var(--hs-border-subtle);
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-xs);
  color: var(--hs-fg-tertiary);
  line-height: var(--hs-leading-snug);
}
.demo-section .surf-foot b {
  color: var(--hs-accent-ink);
  font-weight: var(--hs-weight-bold);
}

@media (max-width: 620px) {
  .demo-section .surf-cta {
    flex-wrap: wrap;
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(3px);
    opacity: 1;
  }
}

.demo-section .surf-try.cta-hello:hover {
  background: var(--hs-bg-raised);
  color: var(--hs-fg-primary);
}

@keyframes typedot {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes bubIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.demo-section .surf-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: var(--hs-space-2);
  min-height: 72px;
  padding: var(--hs-space-3) var(--hs-space-4);
}

.demo-section .surf-try {
  /* The card is a fixed 468px, so a body with a tall min-content steals the
     footer row and squashes the button to half a pill. Its height is not
     negotiable. */
  flex: none;
}

.demo-section .surf-live {
  display: none;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.demo-section .surf.is-live {
  grid-template-rows: 1fr;
}

.demo-section .surf.is-live .surf-body,
.demo-section .surf.is-live .surf-head,
.demo-section .surf.is-live .surf-cta {
  display: none;
}
.demo-section .live-end {
  flex: none;
  border: 0;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: var(--hs-radius-circle);
  background: var(--hs-danger-solid);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.demo-section .surf-live--call {
  padding: 0;
}

.demo-section .surf-track {
  grid-auto-rows: 468px;
}

.demo-section .surf-live--call .call-mount {
  display: none;
  flex: 1;
  min-height: 0;
}
.demo-section .surf-live--call .call-mount:not([hidden]) {
  display: flex;
  flex-direction: column;
}
.demo-section .surf-live--call .call-mount:not([hidden]) > * {
  flex: 1;
  min-height: 0;
}
.demo-section .surf-live--call .call-mount:not([hidden]) ~ .hs-callcard {
  display: none;
}
.demo-section .surf-live--call .hs-callcard[hidden] {
  display: none;
}
.demo-section .surf-live--call .hs-callcard {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: var(--hs-space-6) var(--hs-space-6) var(--hs-space-6);
  background: #0e1b11;
  border: 1px solid #1c2c24;
  color: #f9faf2;
}
.demo-section .surf-live--call .call-top {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-3);
  font-family: var(--hs-font-ui);
  font-size: 13px;
}
.demo-section .surf-live--call .call-tag {
  color: #9fb3a9;
  font-weight: var(--hs-weight-semibold);
}
.demo-section .surf-live--call .call-timer {
  color: #9fb3a9;
  font-variant-numeric: tabular-nums;
  font-family: var(--hs-font-mono);
}
.demo-section .surf-live--call .call-audio-settings-btn[hidden] {
  display: none;
}
.demo-section .surf-live--call .call-audio-settings-btn {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249, 250, 242, 0.16);
  border-radius: var(--hs-radius-circle);
  background: rgba(249, 250, 242, 0.08);
  color: #cfe0d8;
}
.demo-section .surf-live--call .call-audio-settings-btn:hover {
  background: rgba(249, 250, 242, 0.16);
}
.demo-section .surf-live--call .call-audio-settings-btn:focus-visible {
  outline: var(--hs-size-focus-ring) solid var(--hs-border-focus);
  outline-offset: 2px;
}
.demo-section .surf-live--call .call-audio-settings-panel[hidden] {
  display: none;
}
.demo-section .surf-live--call .call-audio-settings-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: min(280px, 100%);
  padding: 12px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px -24px rgba(10, 10, 10, 0.35);
}
.demo-section .surf-live--call .call-audio-settings-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--hs-font-ui);
  font-size: 11px;
  font-weight: var(--hs-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--hs-tracking-caps);
  color: #6b7280;
}
.demo-section .surf-live--call .call-audio-settings-select {
  width: 100%;
  font: inherit;
  font-size: 13px;
  font-family: var(--hs-font-ui);
  border: 1px solid #e7e5e1;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fcfbfa;
  color: #0a0a0a;
}

.demo-section .surf-live--call .call-id {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0 8px;
}

.demo-section .surf-live--call .call-id .ring {
  width: 56px;
  height: 56px;
  margin-bottom: 2px;
  border-radius: var(--hs-radius-circle);
  background: #16261c center/cover no-repeat;
  border: 2px solid rgba(67, 229, 164, 0.4);
  overflow: hidden;
}
.demo-section .surf-live--call .call-id b {
  font-family: var(--hs-font-display);
  font-size: 16px;
  font-weight: var(--hs-weight-bold);
}
.demo-section .surf-live--call .call-id span {
  font-family: var(--hs-font-ui);
  font-size: 13px;
  color: #9fb3a9;
}
.demo-section .surf.is-live .surf-live--call .call-id span {
  color: #43e5a4;
}

.demo-section .surf-live--call .call-tx {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 6px 0 8px;
  padding-bottom: 14px;
  overflow-y: auto;
  scrollbar-width: none;
}
.demo-section .surf-live--call .call-tx::-webkit-scrollbar {
  width: 0;
}
.demo-section .surf-live--call .call-tx .b {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 13px;
  font-family: var(--hs-font-ui);
  font-size: 13.5px;
  line-height: 1.45;
  animation: bubIn var(--hs-duration-expand) var(--hs-ease-spring) backwards;
}
.demo-section .surf-live--call .call-tx .b.them {
  align-self: flex-start;
  background: #1c2c24;
  color: #cfe0d8;
  border-bottom-left-radius: 4px;
}
.demo-section .surf-live--call .call-tx .b.julia {
  align-self: flex-end;
  background: #43e5a4;
  color: #0e1b11;
  border-bottom-right-radius: 4px;
  font-weight: var(--hs-weight-semibold);
}
.demo-section .surf-live--call .call-action-wrap {
  flex: none;
  margin-top: auto;
  padding-top: 12px;
}
.demo-section .surf-live--call .call-action {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border: 0;
  border-radius: var(--hs-radius-pill);
  cursor: pointer;
  font-family: var(--hs-font-ui);
  font-size: 14px;
  font-weight: var(--hs-weight-bold);
  transition:
    filter 0.18s ease,
    transform 0.12s ease;
}
.demo-section .surf-live--call .call-action.live {
  background: #3a1c1c;
  color: #ff9b9b;
}
.demo-section .surf-live--call .call-action:hover {
  filter: brightness(1.08);
}
.demo-section .surf-live--call .call-action:active {
  transform: scale(0.98);
}
.demo-section .surf-live--call .call-action:focus-visible {
  outline: var(--hs-size-focus-ring) solid var(--hs-border-focus);
  outline-offset: 2px;
}
.demo-section .surf-live--call .call-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 22px;
  flex: none;
}
.demo-section .surf-live--call .call-eq span {
  display: block;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #43e5a4;
  transform: scaleY(0.34);
}
.demo-section .surf.is-live .surf-live--call .call-eq span {
  animation: eqWave 1.1s var(--hs-ease-standard) infinite;
}
.demo-section .surf-live--call .call-eq span:nth-child(2) {
  animation-delay: 0.12s;
}
.demo-section .surf-live--call .call-eq span:nth-child(3) {
  animation-delay: 0.24s;
}
.demo-section .surf-live--call .call-eq span:nth-child(4) {
  animation-delay: 0.36s;
}
.demo-section .surf-live--call .call-eq span:nth-child(5) {
  animation-delay: 0.18s;
}
.demo-section .surf-live--call .call-eq span:nth-child(6) {
  animation-delay: 0.3s;
}
@keyframes eqWave {
  0%,
  100% {
    transform: scaleY(0.34);
  }
  50% {
    transform: scaleY(1);
  }
}

.demo-section .surf-live--chat {
  background: #ffffff;
}
.demo-section .cs-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #fafcfb;
  border-bottom: 1px solid #ecedea;
}
.demo-section .cs-av {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #0e241b center/cover no-repeat;
}
.demo-section .cs-id {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.demo-section .cs-id b {
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-weight-bold);
  color: #0a0a0a;
  line-height: 1.2;
}
.demo-section .cs-id i {
  font-style: normal;
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-2xs);
  color: #6b7280;
}
.demo-section .cs-thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px;
  background: #f4f7f5;
  overflow: hidden;
}
.demo-section .cs-thread .surf-bub {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-weight-medium);
  line-height: var(--hs-leading-normal);
  animation: bubIn var(--hs-duration-expand) var(--hs-ease-spring) backwards;
}
.demo-section .cs-thread .surf-bub--in {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #e7edea;
  color: #0a0a0a;
}

.demo-section .cs-thread .surf-bub--out {
  align-self: flex-end;
  border: 0;
  background: linear-gradient(180deg, var(--ios-blue-hi), var(--ios-blue));
  color: #ffffff;
}
.demo-section .cs-foot {
  flex: none;
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #e7edea;
}

.demo-section .cs-form {
  display: flex;
}
.demo-section .cs-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 3px 0 4px;
  border: 1px solid #d5e0da;
  border-radius: 22px;
  background: #ffffff;
  transition: border-color 0.15s ease;
}
.demo-section .cs-field:focus-within {
  border-color: rgba(14, 27, 17, 0.45);
}
.demo-section .cs-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 11px 6px 11px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--hs-font-ui);
  font-size: 15px;
  line-height: 20px;
  color: #0a0a0a;
}
.demo-section .cs-input::placeholder {
  color: #8f9a94;
}
.demo-section .cs-input:focus,
.demo-section .cs-input:focus-visible {
  outline: none;
  outline-offset: 0;
  border-radius: 0;
  box-shadow: none;
}
.demo-section .cs-send {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  margin: 3px 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #43e5a4;
  color: #0e1b11;
}

.demo-section .cs-send::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
}
.demo-section .cs-send:hover {
  background: #2fcf8e;
}
.demo-section .cs-send:active {
  background: #1fb87a;
}
.demo-section .cs-form:not(.cs-form--draft) .cs-send {
  background: #eef3f0;
  color: #a9b5af;
  cursor: default;
}
.demo-section .cs-send:focus-visible {
  outline: var(--hs-size-focus-ring) solid var(--hs-border-focus);
  outline-offset: 2px;
}
.demo-section .surf-live--chat .live-end {
  width: 26px;
  height: 26px;
  background: rgba(10, 10, 10, 0.06);
  color: #6b7280;
}
.demo-section .surf-live--chat .live-end:hover {
  background: var(--hs-danger-solid);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .demo-section .surf:hover,
  .demo-section .surf-try:hover {
    transform: none;
  }
}

.demo-section .surf-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hs-space-4);
}
.demo-section .surf-ic--mail {
  background: var(--hs-accent2-subtle);
  color: var(--hs-accent2-ink);
}

.demo-section .surf-body--ring {
  align-items: center;
  justify-content: center;
  gap: var(--hs-space-4);
  text-align: center;
  overflow: hidden;
}

.demo-section .surf-body--ring[data-phase="talk"] {
  justify-content: flex-start;
  gap: var(--hs-space-3);
}
.demo-section .ring-id {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hs-space-4);
}
.demo-section .surf-body--ring[data-phase="talk"] .ring-id {
  flex-direction: row;
  align-self: stretch;
  gap: var(--hs-space-3);
  text-align: left;
}
.demo-section .ring-av {
  position: relative;
  width: 66px;
  height: 66px;
  flex: none;
  border-radius: var(--hs-radius-circle);
  background: var(--hs-neutral-200) center/cover no-repeat;
  box-shadow:
    0 0 0 3px var(--hs-bg-raised),
    var(--hs-elevation-raised);
  transition:
    width var(--hs-duration-expand) var(--hs-ease-standard),
    height var(--hs-duration-expand) var(--hs-ease-standard);
}
.demo-section .surf-body--ring[data-phase="talk"] .ring-av {
  width: 38px;
  height: 38px;
}
.demo-section .ring-wave {
  position: absolute;
  inset: -4px;
  border-radius: var(--hs-radius-circle);
  border: 2px solid var(--hs-accent-solid);
  opacity: 0;
  animation: ringWave 2.4s var(--hs-ease-standard) infinite;
}
.demo-section .ring-wave:nth-child(2) {
  animation-delay: 1.2s;
}
@keyframes ringWave {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.75);
    opacity: 0;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}
.demo-section .ring-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.demo-section .surf-body--ring[data-phase="talk"] .ring-meta {
  align-items: flex-start;
}
.demo-section .surf-body--ring[data-phase="talk"] .ring-meta b {
  font-size: var(--hs-text-base);
}
.demo-section .ring-meta i {
  font-style: normal;
  font-family: var(--hs-font-mono);
  font-size: var(--hs-text-2xs);
  letter-spacing: var(--hs-tracking-wide);
  text-transform: uppercase;
  color: var(--hs-accent-ink);
}
.demo-section .ring-meta b {
  font-family: var(--hs-font-display);
  font-size: var(--hs-text-lg);
  font-weight: var(--hs-weight-bold);
  color: var(--hs-fg-primary);
}
.demo-section .ring-meta em {
  font-style: normal;
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-xs);
  color: var(--hs-fg-tertiary);
}
.demo-section .ring-keys {
  display: flex;
  align-items: center;
  gap: var(--hs-space-5);
}
.demo-section .ring-key {
  width: 38px;
  height: 38px;
  border-radius: var(--hs-radius-circle);
  display: grid;
  place-items: center;
}

.demo-section .ring-key--yes {
  background: var(--hs-accent-solid);
  color: var(--hs-fg-on-accent);
  animation: ringNudge 2.4s var(--hs-ease-standard) infinite;
}
@keyframes ringNudge {
  0%,
  62%,
  100% {
    transform: translateY(0) rotate(0);
  }
  68% {
    transform: translateY(-3px) rotate(-8deg);
  }
  74% {
    transform: translateY(-3px) rotate(8deg);
  }
  80% {
    transform: translateY(0) rotate(0);
  }
}

.demo-section .surf-body--ring[data-phase="ring"] .ring-eq,
.demo-section .surf-body--ring[data-phase="ring"] .ring-tx {
  display: none;
}
.demo-section .surf-body--ring[data-phase="talk"] .ring-keys {
  display: none;
}

.demo-section .surf-body--ring[data-phase="talk"] .ring-wave {
  animation: none;
  opacity: 0;
}

.demo-section .ring-eq {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  height: 20px;
  flex: none;
}
.demo-section .ring-eq span {
  display: block;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--hs-accent-solid);
  transform: scaleY(0.34);
  animation: eqWave 1.1s var(--hs-ease-standard) infinite;
}
.demo-section .ring-eq span:nth-child(2) {
  animation-delay: 0.12s;
}
.demo-section .ring-eq span:nth-child(3) {
  animation-delay: 0.24s;
}
.demo-section .ring-eq span:nth-child(4) {
  animation-delay: 0.36s;
}
.demo-section .ring-eq span:nth-child(5) {
  animation-delay: 0.18s;
}

.demo-section .ring-tx {
  flex: 1 1 auto;
  min-height: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--hs-space-2);
  overflow: hidden;
  text-align: left;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px);
  mask-image: linear-gradient(180deg, transparent 0, #000 28px);
}
.demo-section .ring-b {
  margin: 0;
  max-width: 88%;
  padding: 8px var(--hs-space-4);
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-weight-medium);
  line-height: var(--hs-leading-snug);
  letter-spacing: var(--hs-tracking-tight);
  animation: bubIn var(--hs-duration-expand) var(--hs-ease-spring) backwards;
}
.demo-section .ring-b--them {
  align-self: flex-start;
  background: var(--hs-bg-raised);
  color: var(--hs-fg-primary);
  border: var(--hs-size-hairline) solid var(--hs-border-default);
  border-radius: 16px 16px 16px 4px;
}
.demo-section .ring-b--julia {
  align-self: flex-end;
  background: var(--hs-accent-solid);
  color: var(--hs-fg-on-accent);
  border-radius: 16px 16px 4px 16px;
}

@media (prefers-reduced-motion: reduce) {
  .demo-section .ring-wave {
    animation: none;
    opacity: 0.4;
    transform: scale(1.35);
  }
  .demo-section .ring-key--yes {
    animation: none;
  }
  .demo-section .ring-eq span {
    animation: none;
    transform: scaleY(0.6);
  }
  .demo-section .ring-b {
    animation: none;
  }
  .demo-section .ring-av {
    transition: none;
  }

  .demo-section .cs-typing i {
    animation: none;
    opacity: 0.55;
  }
  .demo-section .cs-roll,
  .demo-section .mail-feed,
  .demo-section .mail-item--next,
  .demo-section .mail-reply[data-mail-late] {
    transition: none;
  }
}

.demo-section .surf-body--cs {
  padding: 0;
  gap: 0;
  background: #ffffff;
  overflow: hidden;
}

.demo-section .cs-thread--rest {
  justify-content: flex-start;
  padding-bottom: 10px;
}

.demo-section .cs-roll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--hs-duration-slow) var(--hs-ease-standard);
}

.demo-section .cs-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.demo-section .cs-typing i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: csDot 1.25s var(--hs-ease-standard) infinite;
}
.demo-section .cs-typing i:nth-child(2) {
  animation-delay: 0.16s;
}
.demo-section .cs-typing i:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes csDot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.demo-section .surf-body--mail {
  padding: 0;
  gap: 0;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.demo-section .surf-body--mail.is-scrolled {
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, #000 22px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, #000 22px);
}

.demo-section .mail-feed {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: none;
  transition: transform 900ms var(--hs-ease-standard);
}

.demo-section .mail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--hs-space-4);
}

.demo-section .mail-item .mail-subj,
.demo-section .mail-item .mail-copy,
.demo-section .mail-item .mail-who b {
  font-size: var(--hs-text-sm);
}

.demo-section .mail-item .mail-reply {
  margin: 4px calc(var(--hs-space-4) * -1) calc(var(--hs-space-4) * -1);
}

.demo-section .mail-item--next {
  opacity: 0;
  transition: opacity 700ms var(--hs-ease-standard);
}
.demo-section .mail-item--next.is-in {
  opacity: 1;
}
.demo-section .mail-item .mail-reply[data-mail-late] {
  opacity: 0;
  transition: opacity 600ms var(--hs-ease-standard);
}
.demo-section .mail-item .mail-reply[data-mail-late].is-in {
  opacity: 1;
}
.demo-section .mail-ava--b {
  background: var(--hs-accent-subtle);
  color: var(--hs-accent-ink);
}
.demo-section .mail-from {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-section .mail-ava {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: var(--hs-radius-circle);
  display: grid;
  place-items: center;
  background: var(--hs-accent2-subtle);
  color: var(--hs-accent2-ink);
  font-family: var(--hs-font-ui);
  font-size: 10px;
  font-weight: var(--hs-weight-bold);
}
.demo-section .mail-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.demo-section .mail-who b {
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-weight-bold);
  color: var(--hs-fg-primary);
}
.demo-section .mail-who i {
  font-style: normal;
  font-family: var(--hs-font-ui);
  font-size: 10px;
  color: var(--hs-fg-tertiary);
}
.demo-section .mail-subj {
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-weight-bold);
  color: var(--hs-fg-primary);
}
.demo-section .mail-copy {
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-xs);
  line-height: var(--hs-leading-normal);
  color: var(--hs-fg-secondary);
}
.demo-section .mail-copy b {
  color: var(--hs-fg-primary);
  font-weight: var(--hs-weight-bold);
}
.demo-section .mail-reply {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--hs-space-4);
  background: var(--hs-accent-subtle);
  border-top: var(--hs-size-hairline) solid var(--hs-accent-ring);
}
.demo-section .mail-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-accent-muted);
  color: var(--hs-accent-ink);
  font-family: var(--hs-font-ui);
  font-size: 10px;
  font-weight: var(--hs-weight-bold);
}

.demo-section .surf-live--email {
  background: #ffffff;
  transition: opacity var(--hs-duration-slow) var(--hs-ease-standard);
}
.demo-section .surf-live--email .cs-head {
  background: var(--hs-bg-sunken);
  border-bottom-color: var(--hs-border-default);
}
.demo-section .surf-live--email .cs-id b {
  color: var(--hs-fg-primary);
}
.demo-section .surf-live--email .cs-id i {
  color: var(--hs-fg-tertiary);
}

.demo-section .cs-av--julia {
  border-radius: var(--hs-radius-circle);
  background-color: var(--hs-neutral-200);
}

.demo-section .mail-live {
  flex: none;
  max-height: 62%;
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-3);
  padding: var(--hs-space-4);
  background: var(--hs-bg-sunken);
  border-bottom: var(--hs-size-hairline) solid var(--hs-border-default);
  overflow-y: auto;
}

.demo-section .mail-live:empty {
  display: none;
}
.demo-section .mail-note {
  margin: 0;
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-xs);
  line-height: var(--hs-leading-normal);
  color: var(--hs-fg-secondary);
  text-align: center;
}
.demo-section .mail-note--bad {
  color: var(--hs-danger-fg);
}

.demo-section .surf-live--email.is-mail-out {
  opacity: 0;
}
.demo-section .surf-live--email.is-mail-done .mail-form {
  display: none;
}
.demo-section .surf-live--email.is-mail-done .mail-live {
  flex: 1;
  max-height: none;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-bottom: 0;
}
.demo-section .mail-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hs-space-2);
  max-width: 30ch;
  text-align: center;
  animation: mailDoneIn var(--hs-duration-slow) var(--hs-ease-standard) both;
}
.demo-section .mail-done-tick {
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  border-radius: var(--hs-radius-circle);
  display: grid;
  place-items: center;
  background: var(--hs-accent-subtle);
  color: var(--hs-accent-ink);
}
.demo-section .mail-done-t {
  margin: 0;
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-base);
  font-weight: var(--hs-weight-bold);
  letter-spacing: var(--hs-tracking-tight);
  color: var(--hs-fg-primary);
}
.demo-section .mail-done-d {
  margin: 0;
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-xs);
  line-height: var(--hs-leading-normal);
  color: var(--hs-fg-secondary);
  overflow-wrap: anywhere;
}
@keyframes mailDoneIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.demo-section .surf.is-mail-back .surf-head,
.demo-section .surf.is-mail-back .surf-body,
.demo-section .surf.is-mail-back .surf-cta {
  animation: mailBackIn var(--hs-duration-slow) var(--hs-ease-standard) both;
}
@keyframes mailBackIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.demo-section .mail-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--hs-space-4);
  background: #ffffff;
  overflow-y: auto;
}
.demo-section .mail-intro {
  margin: 0 0 var(--hs-space-3);
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-xs);
  line-height: var(--hs-leading-normal);
  color: var(--hs-fg-secondary);
}
.demo-section .mail-lab {
  margin-top: var(--hs-space-2);
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-2xs);
  font-weight: var(--hs-weight-bold);
  letter-spacing: var(--hs-tracking-wide);
  text-transform: uppercase;
  color: var(--hs-fg-tertiary);
}
.demo-section .mail-lab em {
  font-style: normal;
  font-weight: var(--hs-weight-medium);
  text-transform: none;
  letter-spacing: 0;
  color: var(--hs-fg-tertiary);
  opacity: 0.75;
}
.demo-section .mail-in {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--hs-border-default);
  border-radius: var(--hs-radius-sm);
  background: #ffffff;
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-sm);
  color: var(--hs-fg-primary);
}
.demo-section .mail-q {
  resize: none;
  line-height: var(--hs-leading-snug);
}
.demo-section .mail-in::placeholder {
  color: #9ca3af;
}
.demo-section .mail-in:focus-visible {
  outline: none;
  border-color: var(--hs-border-field-focus, #606963);
  box-shadow: none;
}

.demo-section .mail-actions {
  margin-top: auto;
  position: sticky;
  bottom: calc(var(--hs-space-4) * -1);
  padding: var(--hs-space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
}

.demo-section .mail-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.demo-section .mail-send {
  flex: none;
  height: var(--hs-size-control-md);
  border: 0;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-forest-900);
  color: var(--hs-neutral-25);
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-weight-bold);
  letter-spacing: var(--hs-tracking-tight);
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(14, 27, 17, 0.55);
  transition:
    background-color var(--hs-duration-base) var(--hs-ease-standard),
    box-shadow var(--hs-duration-base) var(--hs-ease-standard);
}

@media (hover: hover) and (pointer: fine) {
  .demo-section .mail-send:hover {
    background: var(--hs-forest-800);
    box-shadow: 0 14px 30px -12px rgba(14, 27, 17, 0.45);
  }
}
.demo-section .mail-send:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}
.demo-section .mail-send:disabled:hover {
  background: var(--hs-forest-900);
}
.demo-section .mail-send:focus-visible {
  outline: var(--hs-size-focus-ring) solid var(--hs-forest-700);
  outline-offset: 3px;
}
.demo-section .mail-fine {
  margin: 0;
  font-family: var(--hs-font-ui);
  font-size: 10px;
  color: var(--hs-fg-tertiary);
  text-align: center;
}

.demo-section .surf-dots {
  display: none;
}

@media (max-width: 940px) {
  .demo-section .surf-grid {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* overflow-y: hidden would crop the cards' own shadow, so the frame keeps
       a little room for it and takes the same amount back off the flow. */
    padding-block: 10px;
    margin-block: -10px;
  }
  .demo-section .surf-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .demo-section .surf-track {
    display: flex;
    align-items: stretch;
    grid-template-columns: none;
  }
  .demo-section .surf {
    flex: 0 0 calc(100% - 60px);
    /* grid-auto-rows above is a grid property and does nothing to a flex row,
       so the card carries the row height itself -- the live transcript only
       scrolls inside a definite one. */
    height: 468px;
    scroll-snap-align: start;
  }

  .demo-section .surf-grid.is-swipe {
    overflow: hidden;
    scroll-snap-type: none;
    /* Full bleed. A thrown card has to leave the screen, not the text column,
       or it stops at an invisible wall two thumbs short of the edge. The
       cards keep their own inset below, so nothing moves except the clip. */
    margin-inline: -24px;
    /* The pile's shadow is the deepest thing in the frame and `overflow:
       hidden` was cutting it off in a straight line across the page -- worst
       while a card is held, because the held shadow is the one that reaches
       furthest. The bottom card sits 40px down, tilts, and throws about 22px
       of shadow under that, which is more than the track's own slack. So the
       clip keeps 24px of room below the track and the flow takes the same
       amount back, which puts the tail of the shadow in the band the dots sit
       in -- where it belongs, and where nothing else needs the space. */
    padding-block: 10px 24px;
    margin-block: -10px -24px;
  }
  .demo-section .surf-grid.is-swipe .surf-track {
    display: block;
    position: relative;
    /* Card, plus the tail of the pile showing under it. Nothing in here is in
       flow, so this height is the section's only idea of how tall the deck
       is. Keep it in step with the card height above and with the deepest
       slot in surfSwipe() -- the bottom card sits 40px down and tilts, which
       reaches about 491px, and the rest is its shadow. */
    height: 516px;
    /* Down the page is the browser's; across the pile is ours. Without this
       the first sideways move is a scroll fight nobody wins. */
    touch-action: pan-y;
  }
  .demo-section .surf-grid.is-swipe .surf {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Centred by the auto margins, so the script's transform is a pure offset
       from the middle and never has to know the frame width. */
    width: min(100% - 76px, 420px);
    margin-inline: auto;
    scroll-snap-align: none;
    will-change: transform;
    /* Only box-shadow, and deliberately not transform: the shared card
       transition would fight the spring every frame. Nothing fades either --
       a card at 94% lets the one under it show through its middle, which
       during a throw reads as two cards printed on top of each other. Depth
       here is size, offset and shadow, all of which stay opaque. */
    transition: box-shadow var(--hs-duration-base) var(--hs-ease-standard);
  }

  .demo-section .surf-grid.is-swipe .surf:nth-child(1) {
    --deck-rgb: 67, 229, 164;
  }
  .demo-section .surf-grid.is-swipe .surf:nth-child(2) {
    --deck-rgb: 0, 122, 255;
  }
  .demo-section .surf-grid.is-swipe .surf:nth-child(3) {
    --deck-rgb: 163, 71, 234;
  }
  .demo-section .surf-grid.is-swipe .surf {
    box-shadow:
      0 1px 3px rgba(14, 27, 17, 0.07),
      0 10px 20px -12px rgba(var(--deck-rgb), 0.5),
      0 22px 40px -20px rgba(var(--deck-rgb), 0.42);
  }

  .demo-section .surf-grid.is-swipe .surf:not(.is-active) {
    pointer-events: none;
  }
  .demo-section .surf-grid.is-swipe.is-grabbing {
    user-select: none;
  }
  .demo-section .surf-grid.is-swipe.is-grabbing .surf {
    transition: none;
  }

  .demo-section .surf-grid.is-swipe .surf.is-held {
    box-shadow:
      0 2px 6px rgba(14, 27, 17, 0.1),
      0 16px 28px -14px rgba(var(--deck-rgb), 0.6),
      0 34px 56px -22px rgba(var(--deck-rgb), 0.5);
  }

  .demo-section .surf-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--hs-space-5);
    /* The frame above now reaches down into this row so its shadow is not cut
       off, and the cards inside it are positioned -- so without a z-index of
       its own this row would sit under a thrown card's shadow instead of on
       top of it. 41 clears the 40 a card in the air takes. */
    position: relative;
    z-index: 41;
  }
  .demo-section .surf-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: var(--hs-radius-circle);
    background: var(--hs-border-strong);
    cursor: pointer;
    transition:
      width var(--hs-duration-slow) var(--hs-ease-overshoot),
      background-color var(--hs-duration-base) var(--hs-ease-standard);
  }
  .demo-section .surf-dot.is-on {
    width: 26px;
    border-radius: 999px;
    background: var(--hs-accent-solid);
  }
  .demo-section .surf-dot:focus-visible {
    outline: var(--hs-size-focus-ring) solid var(--hs-border-focus);
    outline-offset: 3px;
  }
}

.demo-section .surf-live--call .call-id .ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}
.demo-section .surf-live--call .call-action-label {
  flex: 1 1 auto;
  min-width: 0;
}
.demo-section .surf-live--call .call-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #43e5a4;
  font-weight: var(--hs-weight-bold);
}
.demo-section .surf-live--call .hs-status {
  margin-top: 10px;
  min-height: 1.25rem;
  text-align: center;
  font-family: var(--hs-font-ui);
  font-size: 13px;
  color: #9fb3a9;
}
.demo-section .surf-live--call .hs-status.ok {
  color: #43e5a4;
}
.demo-section .surf-live--call .hs-status.err {
  color: #ffb4ab;
}
.demo-section .surf-live--call .call-idle-close {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--hs-radius-circle);
  background: rgba(249, 250, 242, 0.14);
  color: #fcfbfa;
}
.demo-section .surf-live--call .call-idle-close svg {
  width: 14px;
  height: 14px;
}

.demo-section .surf-live--call .call-mic-block[hidden] {
  display: none;
}
.demo-section .surf-live--call .call-mic-block {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-2);
  padding: var(--hs-space-4);
  margin: 6px 0 8px;
  border-radius: var(--hs-radius-md);
  background: rgba(249, 250, 242, 0.06);
  text-align: left;
}
.demo-section .surf-live--call .call-mic-block__title {
  margin: 0;
  font-family: var(--hs-font-ui);
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-weight-bold);
  color: #fcfbfa;
}
.demo-section .surf-live--call .call-mic-block__body,
.demo-section .surf-live--call .call-mic-block__steps {
  margin: 0;
  font-family: var(--hs-font-ui);
  font-size: 13px;
  line-height: var(--hs-leading-normal);
  color: #cfe0d8;
}
.demo-section .surf-live--call .call-mic-block__steps {
  padding-left: 1.1rem;
}
.demo-section .surf-live--call .call-mic-block__retry {
  align-self: flex-start;
  margin-top: var(--hs-space-2);
  min-height: 36px;
  padding: 0 14px;
  cursor: pointer;
  border: 0;
  border-radius: var(--hs-radius-pill);
  background: #43e5a4;
  color: #0e1b11;
  font-family: var(--hs-font-ui);
  font-size: 13px;
  font-weight: var(--hs-weight-bold);
}

@keyframes pb-dock-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
