.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(12px);
}

.topnav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: #405a53;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.topnav a:hover {
  color: var(--green-dark);
  background: rgba(23,108,89,.08);
}

.shell h1,
.shell h2,
.shell h3 {
  letter-spacing: 0;
}

.hero {
  grid-template-columns: minmax(0,1.04fr) minmax(430px,.96fr);
}

.hero-copy {
  max-width: 780px;
}

.market-note {
  max-width: 580px !important;
  margin-top: 14px !important;
  color: #9fbfb4 !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

.demo-action-panel {
  display: grid;
  grid-template-columns: minmax(230px,.72fr) minmax(360px,1fr);
  gap: 14px;
  align-items: center;
  width: min(720px,100%);
  margin-top: 24px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: linear-gradient(135deg,rgba(255,255,255,.105),rgba(255,255,255,.052));
  box-shadow: 0 22px 52px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
}

.demo-action-copy {
  padding: 3px 0 3px 3px;
}

.demo-action-copy small {
  display: block;
  color: #a9c9be;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.demo-action-copy b {
  display: block;
  margin-top: 5px;
  color: #fff;
  font: 600 16px Georgia,serif;
  letter-spacing: -.01em;
}

.demo-action-copy span {
  display: block;
  max-width: 310px;
  margin-top: 5px;
  color: #bfd6ce;
  font-size: 10px;
  line-height: 1.45;
}

.demo-action-controls {
  display: grid;
  grid-template-columns: minmax(210px,1fr) minmax(150px,.58fr);
  gap: 10px;
}

.guided-demo {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  color: #d8ebe4;
  background: rgba(255,255,255,.06);
  font-size: 10px;
  font-weight: 850;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.guided-demo:hover {
  transform: translateY(-1px);
  border-color: rgba(169,224,200,.5);
  background: rgba(255,255,255,.12);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  background: #f4f7f3;
}

.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 4px;
  flex: none;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.mode-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.mode-switch button.active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 6px 16px rgba(23,108,89,.18);
}

.demo-toolbar > p {
  display: none;
}

.script-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-left: auto;
}

.script-controls label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.script-controls select {
  min-width: 190px;
  max-width: 260px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 32px 0 11px;
  color: var(--ink);
  background: #fff;
}

.script-controls .cs {
  position: relative;
  width: min(250px, 30vw);
}

.script-controls .cs > select {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  clip: rect(0 0 0 0);
}

.script-controls .cs-button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-size: 11px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.script-controls .cs-button:hover,
.script-controls .cs-button[aria-expanded="true"] {
  border-color: rgba(23,108,89,.5);
  box-shadow: 0 0 0 3px rgba(23,108,89,.08);
}

.script-controls .cs-button::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.script-controls .cs-button[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px,-2px);
}

.script-controls .cs-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.script-controls .cs-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(17,53,45,.18);
  list-style: none;
  animation: dropdownIn .18s cubic-bezier(.2,.8,.2,1) both;
}

.script-controls .cs-list[hidden] { display: none; }

.script-controls .cs-option {
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  cursor: pointer;
}

.script-controls .cs-option:hover,
.script-controls .cs-option.active { background: #edf4ef; }
.script-controls .cs-option.selected { color: var(--green); font-weight: 800; }
.script-controls .cs-option.selected::after { content: "✓"; float: right; }

.script-controls button,
.message-form button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.script-controls .reset-demo {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.message-form {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #f8faf7;
}

.message-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.message {
  animation: messageIn .3s cubic-bezier(.2,.8,.2,1) both;
}

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

.demo-action-controls .voice-picker,
.demo-action-controls .browser-call {
  margin: 0;
  min-height: 50px;
}

.demo-action-controls .voice-picker {
  min-width: 0;
}

.market-visual {
  min-height: 360px;
}

.market-visual .voice-core {
  width: 116px;
  height: 116px;
}

.visual-card {
  position: absolute;
  z-index: 3;
  width: 178px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.06));
  box-shadow: 0 26px 60px rgba(0,0,0,.15);
  backdrop-filter: blur(14px);
}

.visual-card small {
  display: block;
  color: #b6d5ca;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.visual-card b {
  display: block;
  margin-top: 6px;
  color: #fff;
  font: 600 16px Georgia,serif;
}

.visual-card span {
  display: block;
  margin-top: 5px;
  color: #c6ded5;
  font-size: 10px;
  line-height: 1.4;
}

.visual-card.missed {
  left: 0;
  top: 18px;
}

.hero-copy > .kicker,
.hero-copy > h1,
.hero-copy > p,
.vet-chips,
.market-note,
.demo-action-panel,
.tailored-cta {
  animation: marketRise .7s cubic-bezier(.2,.8,.2,1) both;
}

.hero-copy > h1 { animation-delay: .06s; }
.hero-copy > p { animation-delay: .12s; }
.vet-chips { animation-delay: .18s; }
.market-note { animation-delay: .24s; }
.demo-action-panel { animation-delay: .30s; }
.tailored-cta { animation-delay: .36s; }

.visual-card,
.market-visual .voice-core,
.market-visual .orbit,
.voice-label {
  animation: marketFloatIn .8s cubic-bezier(.2,.8,.2,1) both;
}

.visual-card.missed { animation-delay: .18s; }
.market-visual .orbit-one { animation-delay: .22s; }
.market-visual .orbit-two { animation-delay: .26s; }
.market-visual .voice-core { animation-delay: .30s; }
.voice-label { animation-delay: .34s; }
.visual-card.captured { animation-delay: .38s; }
.visual-card.alert { animation-delay: .46s; }

.market-visual .orbit {
  animation-name: marketFloatIn, slowOrbit;
  animation-duration: .8s, 12s;
  animation-timing-function: cubic-bezier(.2,.8,.2,1), linear;
  animation-delay: .22s, 1s;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
}

.visual-card {
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.visual-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.26);
  background: linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.075));
}

.market-position,
.market-story,
.workflow-section,
.integration-ladder,
.systems-section,
.pilot-section,
.safety-strip,
.console {
  animation: sectionRise .65s cubic-bezier(.2,.8,.2,1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 22%;
}

.visual-card.captured {
  right: 0;
  top: 82px;
}

.visual-card.alert {
  right: 58px;
  bottom: 14px;
}

.market-position,
.workflow-section,
.systems-section,
.pilot-section {
  margin: 18px 0;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 27px;
  background: rgba(255,253,249,.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.market-position {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(420px,1.05fr);
  gap: 24px;
  padding: 30px;
}

.position-copy h2,
.workflow-heading h2,
.systems-section h2,
.pilot-section h2 {
  font: 600 clamp(28px,3vw,42px)/1.05 Georgia,serif;
  letter-spacing: -.035em;
}

.position-copy p,
.workflow-section p,
.systems-section p,
.pilot-section p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.position-copy p {
  margin-top: 14px;
  max-width: 650px;
}

.lane-grid {
  display: grid;
  gap: 10px;
}

.lane-grid article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8faf6;
}

.lane-grid .active-lane {
  border-color: rgba(23,108,89,.28);
  background: linear-gradient(135deg,#103c33,#176c59);
  box-shadow: 0 20px 55px rgba(17,71,58,.18);
}

.lane-grid small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lane-grid b {
  display: block;
  margin-top: 7px;
  font: 600 20px Georgia,serif;
}

.lane-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.lane-grid .active-lane small,
.lane-grid .active-lane span {
  color: #c9ded6;
}

.lane-grid .active-lane b {
  color: #fff;
}

.workflow-section {
  padding: 30px;
}

.workflow-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
}

.workflow-steps article {
  position: relative;
  min-height: 205px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg,#fffdf9,#f4f8f4);
}

.workflow-steps i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 24px;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.workflow-steps h3 {
  font: 600 21px Georgia,serif;
}

.workflow-steps p {
  margin-top: 8px;
  font-size: 11px;
}

.systems-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.systems-section article {
  padding: 30px;
}

.systems-section article:first-child {
  border-right: 1px solid var(--line);
}

.systems-section p {
  margin-top: 12px;
}

.systems-section ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.systems-section li {
  position: relative;
  padding-left: 22px;
  color: #2a443d;
  font-size: 12px;
  line-height: 1.5;
}

.systems-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3baa7a;
  box-shadow: 0 0 0 5px rgba(59,170,122,.1);
}

.pilot-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  background: radial-gradient(circle at 92% 10%,rgba(217,190,142,.22),transparent 24rem),rgba(255,253,249,.9);
}

.pilot-section div {
  max-width: 820px;
}

.pilot-section p {
  margin-top: 12px;
}

.pilot-section button {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  color: #fff;
  background: var(--green);
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 16px 38px rgba(23,108,89,.18);
}

.pilot-section button:hover {
  background: var(--green-dark);
}

@media (max-width: 1160px) {
  .topnav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .market-visual {
    display: none;
  }

  .workflow-steps {
    grid-template-columns: repeat(2,1fr);
  }

  .workflow-steps article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .market-position,
  .systems-section {
    grid-template-columns: 1fr;
  }

  .systems-section article:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pilot-section,
  .workflow-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pilot-section button {
    width: 100%;
  }

  .demo-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-toolbar > p { display: none; }

  .script-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .script-controls label { display: none; }

  .script-controls select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 620px) {
  html,
  body,
  .shell { max-width: 100%; }

  .topbar { gap: 8px; }
  .topbar .brand { min-width: 0; }
  .topbar .brand strong { font-size: 17px; white-space: nowrap; }
  .portal-link {
    position: static !important;
    flex: none;
    padding: 9px 12px !important;
    font-size: 9px !important;
    box-shadow: none !important;
  }

  .hero,
  .hero-copy,
  .demo-action-panel,
  .console,
  .workspace,
  .transcript-card,
  .side-column { min-width: 0; width: 100%; }

  .hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(39px, 12.5vw, 50px);
    line-height: 1;
  }

  .kicker { max-width: 100%; line-height: 1.45; }

  .demo-action-panel,
  .demo-action-controls {
    grid-template-columns: 1fr;
  }

  .demo-action-copy span {
    max-width: none;
  }

  .market-position,
  .workflow-section,
  .systems-section article,
  .pilot-section {
    padding: 22px;
    border-radius: 22px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-steps article:last-child {
    grid-column: auto;
  }

  .mode-switch { width: 100%; }

  .script-controls {
    grid-template-columns: 1fr 1fr;
  }

  .script-controls select { grid-column: 1 / -1; }
  .script-controls button { width: 100%; }
  .message-form { padding: 10px; }
}

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

@keyframes marketFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sectionRise {
  from {
    opacity: .01;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slowOrbit {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > .kicker,
  .hero-copy > h1,
  .hero-copy > p,
  .vet-chips,
  .market-note,
  .demo-action-panel,
  .tailored-cta,
  .visual-card,
  .market-visual .voice-core,
  .market-visual .orbit,
  .voice-label,
  .market-position,
  .market-story,
  .workflow-section,
  .integration-ladder,
  .systems-section,
  .pilot-section,
  .safety-strip,
  .console {
    animation: none !important;
  }
}

.hero::before { display: none; }

.market-visual {
  display: grid;
  grid-template-columns: minmax(210px,1fr) 48px minmax(180px,.82fr);
  align-items: center;
  min-height: 340px;
}

.voice-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.voice-stage .voice-label {
  bottom: 8px;
}

.handoff-link {
  position: relative;
  height: 2px;
  border-radius: 99px;
  background: rgba(174,228,205,.22);
}

.handoff-link::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid #aee4cd;
  border-right: 1px solid #aee4cd;
  transform: translateY(-50%) rotate(45deg);
}

.handoff-link i {
  position: absolute;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aee4cd;
  box-shadow: 0 0 0 4px rgba(174,228,205,.08);
  animation: handoffFlow 2.1s linear infinite;
}

.handoff-link i:nth-child(2) { animation-delay: .7s; }
.handoff-link i:nth-child(3) { animation-delay: 1.4s; }

.visual-handoff {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 19px;
  background: rgba(255,255,255,.085);
  box-shadow: 0 24px 54px rgba(0,0,0,.14);
  backdrop-filter: blur(12px);
  animation: marketFloatIn .7s .28s cubic-bezier(.2,.8,.2,1) both;
}

.visual-handoff-head {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.visual-handoff-head span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #afd0c4;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.visual-handoff-head span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #72d4a9;
  box-shadow: 0 0 0 4px rgba(114,212,169,.1);
}

.visual-handoff-head b {
  display: block;
  margin-top: 7px;
  color: #fff;
  font: 600 17px Georgia,serif;
}

.handoff-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 14px;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  animation: handoffItemIn .45s cubic-bezier(.2,.8,.2,1) both;
}

.handoff-item:nth-child(2) { animation-delay: .38s; }
.handoff-item:nth-child(3) { animation-delay: .46s; }
.handoff-item:nth-child(4) { animation-delay: .54s; }
.handoff-item span { color: #bad4cb; font-size: 9px; }
.handoff-item b { color: #fff; font-size: 9px; }

.visual-handoff > small {
  display: block;
  padding: 12px 16px 14px;
  color: #91b9ab;
  font-size: 8px;
}

@keyframes handoffFlow {
  from { left: 0; opacity: 0; transform: scale(.7); }
  18%, 78% { opacity: 1; }
  to { left: calc(100% - 6px); opacity: 0; transform: scale(1); }
}

@keyframes handoffItemIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1160px) {
  .market-visual { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .handoff-link i,
  .visual-handoff,
  .handoff-item {
    animation: none !important;
  }
}

/* Focused demo experience: product education lives on the landing page. */
.market-position,
.market-story,
.workflow-section,
.integration-ladder,
.systems-section,
.pilot-section,
.safety-strip {
  display: none;
}

.hero {
  grid-template-columns: minmax(0, 860px);
  min-height: 480px;
  padding-block: 58px;
}

.hero-copy {
  max-width: 860px;
}

.hero-copy > p {
  max-width: 700px;
}

.demo-start-actions {
  display: grid;
  grid-template-columns: minmax(220px,1fr) minmax(190px,.78fr);
  gap: 10px;
  width: min(610px,100%);
  margin-top: 28px;
  animation: marketRise .65s .18s cubic-bezier(.2,.8,.2,1) both;
}

.demo-start-actions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 64px;
  padding: 12px 15px;
  border-radius: 15px;
  text-align: left;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.demo-start-actions button:hover { transform: translateY(-2px); }
.demo-start-actions span { min-width: 0; }
.demo-start-actions small,
.demo-start-actions b { display: block; }
.demo-start-actions small {
  margin-bottom: 4px;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}
.demo-start-actions b { font-size: 12px; }
.demo-start-actions i { flex: none; font-size: 17px; font-style: normal; }

.start-guided {
  border: 0;
  color: #103c33;
  background: #aee4cd;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}
.start-guided small { color: #276b59; }
.start-guided:hover { background: #c5eddb; box-shadow: 0 18px 40px rgba(0,0,0,.18); }

.start-voice {
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  background: rgba(255,255,255,.08);
}
.start-voice small { color: #a9c9be; }
.start-voice:hover { background: rgba(255,255,255,.14); }

.demo-assurance {
  margin-top: 10px !important;
  color: #9fbfb4 !important;
  font-size: 10px !important;
  animation: marketRise .65s .25s cubic-bezier(.2,.8,.2,1) both;
}

.visual-card.missed,
.visual-card.alert { display: none; }
.visual-card.captured { right: 14px; top: 86px; }

.demo-steps {
  grid-template-columns: repeat(3,1fr);
}

.demo-steps div {
  min-width: 0;
  gap: 14px;
}

.demo-steps strong {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  background: var(--green);
  font: 800 11px Inter, sans-serif;
}

.demo-steps span,
.demo-steps b,
.demo-steps small { display: block; }
.demo-steps b { color: var(--ink); font-size: 11px; }
.demo-steps small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }

.console {
  scroll-margin-top: 18px;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}

.console.is-busy { box-shadow: 0 28px 78px rgba(18,53,45,.16); }

.mode-panel {
  animation: modePanelIn .26s cubic-bezier(.2,.8,.2,1) both;
}

.phone-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

.phone-controls .voice-picker {
  min-width: 210px;
  min-height: 40px;
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.phone-controls .voice-picker small { color: var(--muted); }
.phone-controls .voice-picker i { color: var(--green); background: #edf4ef; }
.phone-controls .browser-call { min-height: 40px; }
.phone-controls .browser-call-hint {
  max-width: 110px;
  margin: 0 !important;
  color: var(--muted) !important;
  line-height: 1.35 !important;
}

.manual-input {
  border-top: 1px solid var(--line);
  background: #f8faf7;
}

.manual-input summary {
  padding: 11px 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  list-style-position: inside;
}

.manual-input[open] summary { color: var(--green); }
.manual-input .message-form { border-top: 1px solid var(--line); }

.field-row {
  animation: fieldRowIn .28s cubic-bezier(.2,.8,.2,1) both;
}

.demo-reveal {
  opacity: 0;
  transform: translateY(22px);
}

.demo-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .58s cubic-bezier(.2,.8,.2,1), transform .58s cubic-bezier(.2,.8,.2,1);
}

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

@keyframes fieldRowIn {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: none; }
}

.typing-message {
  width: fit-content;
  min-width: 132px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(23,108,89,.06);
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 12px;
}

.typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: typingDot .9s ease-in-out infinite;
}

.typing-dots i:nth-child(2) { animation-delay: .14s; }
.typing-dots i:nth-child(3) { animation-delay: .28s; }

.typing-label {
  color: #4f7067;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.field-row.field-updated {
  animation: fieldUpdated .72s cubic-bezier(.2,.8,.2,1) both;
}

.field-row.field-updated dd { color: var(--green); }

.status-pill.status-updated {
  animation: statusUpdated .55s cubic-bezier(.2,.8,.2,1) both;
}

.lead-panel.progress-updated .progress-track {
  animation: progressUpdated .55s ease both;
}

.notification-panel.notification-updated {
  animation: notificationUpdated .7s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-5px) scale(.98); }
  to { opacity: 1; transform: none; }
}

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

@keyframes fieldUpdated {
  0% { opacity: .6; background: rgba(174,228,205,.45); transform: translateX(5px); }
  100% { opacity: 1; background: transparent; transform: none; }
}

@keyframes statusUpdated {
  0% { transform: scale(.88); box-shadow: 0 0 0 0 rgba(23,108,89,.22); }
  100% { transform: none; box-shadow: 0 0 0 7px rgba(23,108,89,0); }
}

@keyframes progressUpdated {
  50% { background: #dcece4; }
}

@keyframes notificationUpdated {
  0% { transform: translateY(4px); border-color: rgba(42,155,214,.45); }
  100% { transform: none; border-color: rgba(42,155,214,.13); }
}

@media (max-width: 980px) {
  .demo-steps { grid-template-columns: 1fr; }
  .demo-steps div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .demo-steps div:last-child { border-bottom: 0; }
}

@media (max-width: 820px) {
  .phone-controls {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
  }
  .phone-controls .voice-picker { min-width: 0; }
  .phone-controls .browser-call-hint { grid-column: 1 / -1; max-width: none; }
  .script-controls .cs { width: 100%; min-width: 0; }
}

@media (max-width: 620px) {
  .hero { min-height: 0; }
  .demo-start-actions { grid-template-columns: 1fr; }
  .demo-start-actions button { min-height: 58px; }
  .demo-steps div { padding: 14px 18px; }
  .script-controls { width: 100%; margin-left: 0; }
  .script-controls .cs { grid-column: 1 / -1; }
  .phone-controls { grid-template-columns: 1fr; }
  .phone-controls .browser-call { width: 100%; }
  .console-heading { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-start-actions,
  .demo-assurance,
  .mode-panel,
  .field-row,
  .typing-dots i,
  .field-row.field-updated,
  .status-pill.status-updated,
  .lead-panel.progress-updated .progress-track,
  .notification-panel.notification-updated,
  .demo-reveal,
  .demo-reveal.is-visible {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
