/* Talk to Reeboot — landing field only. Does not restyle conversation, Safety, or Medmate. */

body.mode-talk #talkExitBtn {
  display: none !important;
}

.talk-home {
  display: none;
  margin-left: 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  word-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.42;
  white-space: nowrap;
}
body.mode-talk .talk-home {
  display: inline-flex;
  align-items: center;
}
.talk-home:hover,
.talk-home:focus-visible {
  opacity: 1;
  color: var(--navy);
}
.talk-home:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

.talk-shell:has(.talk-field) {
  padding: 72px 40px 28px;
}
.talk-stage:has(.talk-field) {
  min-height: calc(100dvh - 100px);
}

.talk-stage.is-in .talk-field {
  animation: talkFieldIn 280ms cubic-bezier(0.16, 0.84, 0.32, 1);
}

@keyframes talkFieldIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.talk-field {
  --pulse-x: 42%;
  --pulse-y: 44%;
  --ease-field: cubic-bezier(0.16, 0.84, 0.32, 1);
  position: relative;
  min-height: calc(100dvh - 100px);
  color: var(--ink);
}

.talk-field[data-aim="between-appointments"],
.talk-field:has([data-slot="between"]:hover),
.talk-field:has([data-slot="between"]:focus-within) { --pulse-x: 49%; --pulse-y: 11%; }
.talk-field[data-aim="everyday-pressure"],
.talk-field:has([data-slot="everyday"]:hover),
.talk-field:has([data-slot="everyday"]:focus-within) { --pulse-x: 11%; --pulse-y: 31%; }
.talk-field[data-aim="work"],
.talk-field:has([data-slot="work"]:hover),
.talk-field:has([data-slot="work"]:focus-within) { --pulse-x: 86%; --pulse-y: 29%; }
.talk-field[data-aim="parenting"],
.talk-field:has([data-slot="parenting"]:hover),
.talk-field:has([data-slot="parenting"]:focus-within) { --pulse-x: 14%; --pulse-y: 63%; }
.talk-field[data-aim="preparing-for-care"],
.talk-field:has([data-slot="prepare"]:hover),
.talk-field:has([data-slot="prepare"]:focus-within) { --pulse-x: 83%; --pulse-y: 61%; }
.talk-field[data-aim="need-a-doctor"],
.talk-field:has([data-slot="doctor"]:hover),
.talk-field:has([data-slot="doctor"]:focus-within) { --pulse-x: 47%; --pulse-y: 83%; }
.talk-field[data-aim="safety"],
.talk-field:has(.talk-safety-arch:hover),
.talk-field:has(.talk-safety-arch:focus-within) { --pulse-x: 42%; --pulse-y: 44%; }

.talk-field-open {
  position: relative;
  z-index: 3;
  max-width: 16rem;
  padding: 4px 0 0;
}

.talk-field-open .talk-eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  word-spacing: 0.08em;
}

.talk-field-title {
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 12px;
}

.talk-field-lead {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 16ch;
}

.talk-field-constellation {
  position: absolute;
  left: 26%;
  width: 60%;
  top: 4%;
  height: 66%;
  z-index: 2;
}

.talk-field-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.talk-field-path {
  fill: none;
  stroke: var(--aqua);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.48;
}

.talk-field:not(.is-safety):not(:has(.talk-safety-arch:hover)):not(:has(.talk-safety-arch:focus-within)) .talk-field-path {
  stroke-dasharray: 6 18;
  animation: talkLineCreep 22s linear infinite;
}

.talk-field.is-aimed:not(.is-safety) .talk-field-path,
.talk-field:has(.talk-entry:hover) .talk-field-path,
.talk-field:has(.talk-entry:focus-within) .talk-field-path {
  opacity: 0.72;
  stroke-width: 1.35;
}

.talk-field.is-safety .talk-field-path,
.talk-field:has(.talk-safety-arch:hover) .talk-field-path,
.talk-field:has(.talk-safety-arch:focus-within) .talk-field-path {
  animation: none;
  opacity: 0.18;
  stroke-dasharray: none;
}

@keyframes talkLineCreep {
  to { stroke-dashoffset: -240; }
}

.talk-field-pulse {
  position: absolute;
  left: var(--pulse-x);
  top: var(--pulse-y);
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--aqua);
  pointer-events: none;
  z-index: 1;
  transition: left 260ms var(--ease-field), top 260ms var(--ease-field), opacity 220ms var(--ease-field);
}

.talk-field:not(.is-safety):not(:has(.talk-safety-arch:hover)):not(:has(.talk-safety-arch:focus-within)) .talk-field-pulse {
  animation: talkPulseBreath 7.5s ease-in-out infinite;
}

.talk-field.is-safety .talk-field-pulse,
.talk-field:has(.talk-safety-arch:hover) .talk-field-pulse,
.talk-field:has(.talk-safety-arch:focus-within) .talk-field-pulse {
  animation: none;
  opacity: 0;
}

@keyframes talkPulseBreath {
  0%, 100% { transform: translate(0, 0); opacity: 0.85; }
  50% { transform: translate(3px, -2px); opacity: 1; }
}

.talk-field-centre {
  position: absolute;
  left: 36%;
  top: 41%;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--aqua);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 220ms var(--ease-field);
}

.talk-field.is-aimed .talk-field-centre,
.talk-field.is-safety .talk-field-centre,
.talk-field:has(.talk-entry:hover) .talk-field-centre,
.talk-field:has(.talk-entry:focus-within) .talk-field-centre,
.talk-field:has(.talk-safety-arch:hover) .talk-field-centre,
.talk-field:has(.talk-safety-arch:focus-within) .talk-field-centre {
  opacity: 0.28;
}

.talk-entry {
  position: absolute;
  max-width: 15.5rem;
  z-index: 3;
  transition: opacity 240ms var(--ease-field), transform 240ms var(--ease-field);
}

.talk-entry[data-slot="between"] { left: 38%; top: 3%; }
.talk-entry[data-slot="everyday"] { left: 0; top: 24%; }
.talk-entry[data-slot="work"] { right: 0; top: 22%; left: auto; text-align: right; }
.talk-entry[data-slot="parenting"] { left: 3%; top: 56%; }
.talk-entry[data-slot="prepare"] { right: 2%; top: 54%; left: auto; text-align: right; }
.talk-entry[data-slot="doctor"] { left: 34%; top: 76%; }

.talk-field.is-aimed .talk-entry:not(.is-on),
.talk-field.is-safety .talk-entry,
.talk-field:has(.talk-entry:hover) .talk-entry:not(:hover),
.talk-field:has(.talk-entry:focus-within) .talk-entry:not(:focus-within),
.talk-field:has(.talk-safety-arch:hover) .talk-entry,
.talk-field:has(.talk-safety-arch:focus-within) .talk-entry {
  opacity: 0.38;
}

.talk-entry.is-on,
.talk-entry:hover,
.talk-entry:focus-within {
  z-index: 4;
  transform: translate3d(0, -3px, 0) scale(1.03);
}

.talk-entry-eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--aqua);
}

.talk-entry-title,
.talk-entry-go,
.talk-safety-go,
.talk-disclose-info {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-align: inherit;
}

.talk-entry-title {
  display: block;
  font-size: clamp(22px, 2.15vw, 32px);
  letter-spacing: -0.03em;
  font-weight: 620;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--ink);
}

.talk-entry.is-on .talk-entry-title,
.talk-entry:hover .talk-entry-title,
.talk-entry:focus-within .talk-entry-title {
  color: var(--navy);
}

.talk-entry-line {
  margin: 10px 0 0;
  max-width: 22rem;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translate3d(0, 4px, 0);
  pointer-events: none;
  transition: opacity 240ms var(--ease-field), transform 240ms var(--ease-field), max-height 240ms var(--ease-field);
}

.talk-entry[data-slot="work"] .talk-entry-line,
.talk-entry[data-slot="prepare"] .talk-entry-line {
  margin-left: auto;
}

.talk-entry-go {
  display: inline-block;
  margin-top: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  min-height: 0;
  padding: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 240ms var(--ease-field), max-height 240ms var(--ease-field), margin 240ms var(--ease-field);
}

.talk-entry.is-on .talk-entry-line,
.talk-entry.is-on .talk-entry-go,
.talk-entry:hover .talk-entry-line,
.talk-entry:hover .talk-entry-go,
.talk-entry:focus-within .talk-entry-line,
.talk-entry:focus-within .talk-entry-go {
  opacity: 1;
  max-height: 8rem;
  transform: none;
  pointer-events: auto;
}

.talk-entry.is-on .talk-entry-go,
.talk-entry:hover .talk-entry-go,
.talk-entry:focus-within .talk-entry-go {
  margin-top: 12px;
  min-height: 32px;
  padding: 8px 0;
}

.talk-entry-title:focus-visible,
.talk-entry-go:focus-visible,
.talk-safety-go:focus-visible,
.talk-disclose-info:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 6px;
}

.talk-field-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  z-index: 3;
}

.talk-safety-arch {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 28rem;
  transition: opacity 220ms var(--ease-field);
}

.talk-safety-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.talk-safety-go {
  display: block;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-height: 36px;
  text-align: left;
}

.talk-safety-go:hover,
.talk-safety-arch.is-on .talk-safety-go,
.talk-safety-arch:focus-within .talk-safety-go {
  color: var(--navy);
}

.talk-safety-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 28ch;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 220ms var(--ease-field), max-height 220ms var(--ease-field);
}

.talk-safety-arch.is-on .talk-safety-note,
.talk-safety-arch:hover .talk-safety-note,
.talk-safety-arch:focus-within .talk-safety-note {
  opacity: 1;
  max-height: 4rem;
}

.talk-disclose {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 22px 0 0;
  max-width: 34rem;
}

.talk-disclose p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.45;
}

.talk-disclose b {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 2px;
}

.talk-disclose-info {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 32px;
  opacity: 0.7;
}

.talk-disclose-info:hover,
.talk-disclose-info[aria-expanded="true"] {
  color: var(--navy);
  opacity: 1;
}

.talk-disclose-full {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 36ch;
}

.talk-disclose-full[hidden] {
  display: none;
}

.talk-field.is-leaving .talk-field-open,
.talk-field.is-leaving .talk-field-floor,
.talk-field.is-leaving .talk-entry:not(.is-chosen),
.talk-field.is-leaving .talk-field-centre {
  opacity: 0;
  pointer-events: none;
}

.talk-field.is-leaving .talk-entry.is-chosen {
  transform: translate3d(0, -4px, 0) scale(1.03);
}

.talk-field.is-leaving .talk-safety-arch:not(.is-chosen) {
  opacity: 0;
}

@media (max-width: 900px) {
  .talk-home {
    letter-spacing: 0.08em;
    word-spacing: 0.22em;
    margin-left: 12px;
  }

  .talk-shell:has(.talk-field) {
    padding: 84px 22px 36px;
  }

  .talk-field {
    min-height: 0;
  }

  .talk-field-open {
    max-width: none;
    margin-bottom: 28px;
  }

  .talk-field-open .talk-eyebrow {
    letter-spacing: 0.1em;
    word-spacing: 0.2em;
  }

  .talk-field-title {
    max-width: none;
    letter-spacing: -0.028em;
    word-spacing: 0.06em;
    font-size: clamp(28px, 8vw, 34px);
  }

  .talk-field-lead {
    max-width: 18ch;
    word-spacing: 0.04em;
  }

  .talk-field-constellation {
    position: relative;
    left: auto;
    width: auto;
    top: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 8px 22px;
  }

  .talk-field-constellation::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--aqua);
    opacity: 0.42;
    pointer-events: none;
  }

  .talk-field.is-safety .talk-field-constellation::before {
    opacity: 0.12;
  }

  .talk-field-line {
    display: none;
  }

  .talk-field-pulse {
    left: 0;
    margin-left: -1px;
  }

  .talk-field[data-aim="between-appointments"] { --pulse-y: 18%; }
  .talk-field[data-aim="everyday-pressure"] { --pulse-y: 6%; }
  .talk-field[data-aim="work"] { --pulse-y: 34%; }
  .talk-field[data-aim="parenting"] { --pulse-y: 50%; }
  .talk-field[data-aim="preparing-for-care"] { --pulse-y: 66%; }
  .talk-field[data-aim="need-a-doctor"] { --pulse-y: 84%; }
  .talk-field { --pulse-x: 0%; --pulse-y: 8%; }

  .talk-field-centre {
    display: none;
  }

  .talk-entry,
  .talk-entry[data-slot="between"],
  .talk-entry[data-slot="everyday"],
  .talk-entry[data-slot="work"],
  .talk-entry[data-slot="parenting"],
  .talk-entry[data-slot="prepare"],
  .talk-entry[data-slot="doctor"] {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    max-width: none;
    text-align: left;
    padding: 10px 0 14px;
  }

  .talk-entry-title {
    font-size: clamp(22px, 6.4vw, 28px);
    letter-spacing: -0.015em;
    word-spacing: 0.14em;
    min-height: 48px;
    text-align: left;
  }

  .talk-entry[data-slot="work"] .talk-entry-line,
  .talk-entry[data-slot="prepare"] .talk-entry-line {
    margin-left: 0;
  }

  .talk-entry.is-on .talk-entry-go {
    min-height: 48px;
  }

  .talk-field.is-aimed .talk-entry:not(.is-on),
  .talk-field.is-safety .talk-entry,
  .talk-field:has(.talk-entry:hover) .talk-entry:not(:hover),
  .talk-field:has(.talk-entry:focus-within) .talk-entry:not(:focus-within),
  .talk-field:has(.talk-safety-arch:hover) .talk-entry,
  .talk-field:has(.talk-safety-arch:focus-within) .talk-entry {
    opacity: 0.4;
  }

  .talk-field-floor {
    position: relative;
    bottom: auto;
    margin-top: 28px;
  }

  .talk-safety-go {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .talk-stage.is-in .talk-field,
  .talk-field-path,
  .talk-field-pulse,
  .talk-entry,
  .talk-entry-line,
  .talk-entry-go,
  .talk-safety-note,
  .talk-safety-arch,
  .talk-field.is-leaving .talk-entry.is-chosen {
    animation: none !important;
    transition: opacity 160ms ease !important;
    transform: none !important;
  }

  .talk-field-pulse {
    transition: opacity 160ms ease !important;
  }
}
