.voice-page main {
  width: min(1120px, calc(100vw - clamp(32px, 7vw, 112px)));
}

.voice-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: 560px;
  padding: 52px 0 70px;
}

.voice-hero h1 {
  max-width: 620px;
  font-size: clamp(38px, 4.35vw, 58px);
  line-height: 1.04;
}

.voice-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.capability-chips,
.mode-switch,
.flow-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.capability-chips span,
.flow-state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.voice-hero .capability-chips {
  margin-top: 22px;
}

.voice-hero .capability-chips span::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sage);
  content: "";
}

.voice-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 30px 70px rgba(75, 84, 62, 0.12);
}

.console-top,
.console-agent,
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.console-top {
  border-bottom: 1px solid rgba(89, 101, 75, 0.12);
  padding-bottom: 20px;
}

.console-top span,
.console-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.console-live {
  color: #4f6545 !important;
}

.console-live::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #789468;
  content: "";
}

.console-agent {
  justify-content: flex-start;
  padding: 26px 0 18px;
}

.agent-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--moss);
  font-size: 20px;
  font-weight: 850;
}

.console-agent strong,
.console-agent small {
  display: block;
}

.console-agent small {
  margin-top: 4px;
  color: var(--muted);
}

.waveform {
  display: flex;
  align-items: center;
  height: 92px;
  gap: 5px;
  border-block: 1px solid rgba(89, 101, 75, 0.1);
}

.waveform i {
  width: 4px;
  height: var(--bar);
  border-radius: 999px;
  background: var(--sage);
  animation: voice-wave 1.25s ease-in-out infinite alternate;
  animation-delay: calc(var(--order) * -70ms);
}

.handoff-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 22px 0;
}

.handoff-line span {
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 8px;
  padding: 12px 8px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}

.console-footer {
  border-top: 1px solid rgba(89, 101, 75, 0.12);
  padding-top: 18px;
}

.voice-section {
  padding: 80px 0;
  border-top: 1px solid rgba(89, 101, 75, 0.13);
}

.voice-section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.voice-section-heading > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.flow-shell {
  --flow-progress: 0%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(89, 101, 75, 0.14);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
  background:
    radial-gradient(circle at 82% 10%, rgba(144, 163, 125, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(243, 239, 229, 0.8));
  box-shadow: 0 28px 70px rgba(75, 84, 62, 0.09);
}

.flow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.flow-controls,
.flow-live-label,
.flow-play-toggle {
  display: flex;
  align-items: center;
}

.flow-controls {
  gap: 16px;
}

.flow-live-label {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.flow-live-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #789468;
  box-shadow: 0 0 0 5px rgba(120, 148, 104, 0.13);
  animation: flow-live-pulse 1.8s ease-out infinite;
}

.flow-shell.is-paused .flow-live-label i {
  background: var(--clay);
  box-shadow: none;
  animation: none;
}

.mode-switch button,
.flow-play-toggle {
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 7px;
  padding: 9px 13px;
  color: var(--moss);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mode-switch button:hover,
.mode-switch button:focus-visible,
.flow-play-toggle:hover,
.flow-play-toggle:focus-visible,
.mode-switch button.is-active,
.flow-play-toggle:hover {
  border-color: var(--moss);
  color: var(--paper);
  background: var(--moss);
  outline: none;
  transform: translateY(-2px);
}

.flow-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  padding-top: 28px;
}

.flow-track {
  position: absolute;
  top: 14px;
  right: calc(12.5% - 2px);
  left: calc(12.5% - 2px);
  z-index: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(89, 101, 75, 0.14);
}

.flow-track > span {
  display: block;
  width: var(--flow-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--moss));
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-track > i {
  position: absolute;
  top: 50%;
  left: var(--flow-progress);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 5px 18px rgba(104, 73, 54, 0.3);
  transform: translate(-50%, -50%);
  transition: left 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-track > i::after {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(165, 102, 67, 0.45);
  border-radius: inherit;
  content: "";
  animation: flow-signal 1.5s ease-out infinite;
}

.voice-page .flow-node {
  position: relative;
  z-index: 1;
  display: block;
  justify-items: initial;
  gap: 0;
  min-width: 0;
  min-height: 182px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 14px;
  padding: 18px;
  color: inherit;
  background: rgba(247, 244, 235, 0.92);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 260ms ease, box-shadow 260ms ease, opacity 260ms ease, transform 260ms ease, background 260ms ease;
}

.voice-page .flow-node::after {
  display: none;
  content: none;
}

.flow-node:hover,
.flow-node:focus-visible {
  border-color: rgba(89, 101, 75, 0.45);
  outline: none;
  transform: translateY(-3px);
}

.flow-node.is-active {
  border-color: rgba(89, 101, 75, 0.62);
  background: var(--paper);
  box-shadow: 0 20px 46px rgba(75, 84, 62, 0.15);
  transform: translateY(-7px);
}

.flow-node.is-complete {
  border-color: rgba(120, 148, 104, 0.28);
  background: rgba(236, 240, 228, 0.9);
}

.flow-node.is-upcoming {
  opacity: 0.68;
}

.flow-node-top {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.flow-icon {
  display: grid !important;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 50%;
  color: var(--moss);
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(75, 84, 62, 0.09);
  transition: color 260ms ease, background 260ms ease, transform 260ms ease;
}

.flow-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.flow-node.is-active .flow-icon {
  color: var(--paper);
  background: var(--moss);
  transform: scale(1.08);
}

.flow-node.is-complete .flow-icon {
  color: #557047;
}

.flow-number {
  color: rgba(89, 101, 75, 0.45);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.flow-node strong,
.flow-node span {
  display: block;
}

.flow-node strong {
  font-size: 19px;
}

.flow-node .flow-node-copy {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.flow-detail {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
  border-top: 1px solid rgba(89, 101, 75, 0.12);
  padding-top: 24px;
}

.flow-detail > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.flow-detail-step {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-detail p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.routing-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(89, 101, 75, 0.14);
  border-radius: 18px;
  padding: clamp(20px, 3.5vw, 38px);
  background:
    radial-gradient(circle at 52% 42%, rgba(143, 163, 123, 0.15), transparent 24%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(247, 244, 235, 0.84));
  box-shadow: 0 28px 70px rgba(75, 84, 62, 0.09);
}

.routing-toolbar,
.routing-live,
.routing-examples,
.routing-assurances {
  display: flex;
  align-items: center;
}

.routing-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.routing-live {
  gap: 9px;
  color: var(--moss);
}

.routing-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #789468;
  box-shadow: 0 0 0 5px rgba(120, 148, 104, 0.13);
  animation: flow-live-pulse 1.8s ease-out infinite;
}

.routing-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.62fr) minmax(270px, 1fr) minmax(290px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 470px;
}

.routing-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.routing-lines marker path {
  fill: var(--moss);
}

.routing-line {
  fill: none;
  stroke: rgba(89, 101, 75, 0.38);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  transition: opacity 240ms ease, stroke 240ms ease, stroke-width 240ms ease;
}

.routing-line-inbound,
.routing-line-return {
  stroke: rgba(89, 101, 75, 0.72);
}

.routing-shell.has-selection .routing-line[data-route-line] {
  opacity: 0.2;
}

.routing-shell.has-selection .routing-line.is-active {
  opacity: 1;
  stroke: var(--clay);
  stroke-width: 3.4;
}

.routing-call-card,
.routing-center-card,
.routing-roles {
  position: relative;
  z-index: 1;
}

.routing-call-card,
.routing-center-card {
  border: 1px solid rgba(89, 101, 75, 0.17);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 40px rgba(75, 84, 62, 0.11);
  text-align: center;
}

.routing-call-card {
  padding: 26px 18px;
}

.routing-call-icon,
.routing-center-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 50%;
  color: var(--paper);
  background: linear-gradient(145deg, var(--sage), var(--moss));
  box-shadow: 0 12px 28px rgba(75, 84, 62, 0.18);
}

.routing-call-icon {
  width: 58px;
  height: 58px;
  font-size: 25px;
}

.routing-center-icon {
  width: 86px;
  height: 86px;
  font-size: 38px;
}

.routing-card-kicker {
  display: block;
  color: var(--moss);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.routing-call-card h3,
.routing-center-card h3 {
  margin: 8px 0 0;
}

.routing-call-card p,
.routing-center-card > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.routing-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  margin-top: 15px;
  gap: 4px;
}

.routing-wave i {
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: var(--sage);
  animation: route-wave 850ms ease-in-out infinite alternate;
}

.routing-wave i:nth-child(2), .routing-wave i:nth-child(6) { height: 20px; animation-delay: -300ms; }
.routing-wave i:nth-child(3), .routing-wave i:nth-child(5) { height: 28px; animation-delay: -600ms; }
.routing-wave i:nth-child(4) { height: 34px; animation-delay: -450ms; }

.routing-center-card {
  padding: 30px clamp(20px, 3vw, 34px) 24px;
  border-color: rgba(89, 101, 75, 0.48);
}

.routing-center-state {
  min-height: 76px;
  margin-top: 24px;
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 10px;
  padding: 14px;
  background: var(--soft);
  text-align: left;
}

.routing-center-state strong,
.routing-center-state span {
  display: block;
}

.routing-center-state strong {
  color: var(--moss);
  font-size: 14px;
}

.routing-center-state span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.routing-return {
  min-height: 42px;
  margin-top: 13px;
  border: 1px solid rgba(89, 101, 75, 0.2);
  border-radius: 8px;
  padding: 8px 13px;
  color: var(--moss);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.routing-return:hover,
.routing-return:focus-visible {
  color: var(--paper);
  background: var(--moss);
  outline: none;
}

.routing-roles {
  display: grid;
  gap: 12px;
}

.routing-roles button {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  border: 1px solid rgba(89, 101, 75, 0.15);
  border-radius: 13px;
  padding: 13px 16px;
  color: inherit;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 28px rgba(75, 84, 62, 0.08);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.routing-roles button:hover,
.routing-roles button:focus-visible,
.routing-roles button.is-active {
  border-color: rgba(89, 101, 75, 0.58);
  box-shadow: 0 18px 34px rgba(75, 84, 62, 0.14);
  outline: none;
  transform: translateX(5px);
}

.routing-roles button[data-route-target="complaints"].is-active {
  border-color: var(--clay);
}

.routing-role-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--moss);
  font-size: 14px;
  font-weight: 850;
}

.routing-role-icon.is-clay { background: var(--clay); }
.routing-role-icon.is-extension { color: var(--moss); background: var(--sand); }

.routing-roles strong,
.routing-roles small {
  display: block;
}

.routing-roles strong {
  font-size: 15px;
}

.routing-roles small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.routing-roles b {
  color: var(--moss);
  font-size: 26px;
  font-weight: 400;
}

.routing-examples {
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 18px;
  border: 1px solid rgba(89, 101, 75, 0.14);
  border-radius: 12px;
  padding: 14px;
  background: rgba(239, 231, 214, 0.42);
}

.routing-examples > span {
  flex: 0 0 100%;
  color: var(--moss);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.routing-examples button {
  min-height: 44px;
  border: 1px solid rgba(89, 101, 75, 0.3);
  border-radius: 9px;
  padding: 9px 14px;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 6px 14px rgba(75, 84, 62, 0.07);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.routing-examples button:hover,
.routing-examples button:focus-visible,
.routing-examples button.is-active {
  border-color: var(--moss);
  color: var(--paper);
  background: var(--moss);
  outline: none;
  transform: translateY(-2px);
}

.routing-assurances {
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(239, 231, 214, 0.4);
  font-size: 11px;
  font-weight: 750;
}

.routing-assurances span::before {
  margin-right: 7px;
  color: var(--sage);
  content: "●";
}

.capability-grid,
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability-card,
.roadmap-card {
  min-height: 220px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 253, 248, 0.82);
}

.capability-card p,
.roadmap-card p,
.roadmap-card li {
  color: var(--muted);
  line-height: 1.62;
}

.capability-card .mini-status,
.roadmap-card .mini-status {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--moss);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.roadmap-card.planned .mini-status {
  color: #9c5e3d;
}

.app-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 240px));
  justify-content: center;
  gap: clamp(22px, 4vw, 42px);
}

.app-concept {
  overflow: visible;
  margin: 0;
  max-width: 240px;
  background: transparent;
}

.app-concept img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 603 / 1311;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 24px 52px rgba(75, 84, 62, 0.14);
}

.app-concept figcaption {
  padding: 18px 4px 0;
}

.app-concept strong,
.app-concept span {
  display: block;
}

.app-concept span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.open-bug {
  margin-top: 18px;
  border-left: 3px solid var(--clay);
  padding: 16px 18px;
  color: var(--muted);
  background: rgba(239, 231, 214, 0.45);
  line-height: 1.6;
}

@keyframes voice-wave {
  from { transform: scaleY(0.62); }
  to { transform: scaleY(1); }
}

@keyframes flow-live-pulse {
  70%, 100% { box-shadow: 0 0 0 8px rgba(120, 148, 104, 0); }
}

@keyframes flow-signal {
  from { opacity: 0.8; transform: scale(1); }
  to { opacity: 0; transform: scale(2.3); }
}

@keyframes route-wave {
  from { transform: scaleY(0.62); }
  to { transform: scaleY(1); }
}

@media (max-width: 900px) {
  .voice-hero {
    grid-template-columns: 1fr;
  }

  .voice-hero {
    min-height: 0;
    padding-top: 38px;
  }

  .flow-diagram,
  .capability-grid,
  .roadmap-grid,
  .app-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-gallery {
    max-width: 540px;
    margin-inline: auto;
  }

  .app-concept {
    width: min(100%, 240px);
    justify-self: center;
  }

  .app-concept:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .flow-track {
    display: none;
  }

  .routing-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .routing-lines {
    display: none;
  }

  .routing-roles {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .voice-page main {
    width: min(100% - 28px, 1120px);
  }

  .voice-hero h1 {
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .flow-toolbar,
  .flow-detail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .flow-controls {
    justify-content: space-between;
  }

  .routing-map,
  .routing-roles {
    grid-template-columns: 1fr;
  }

  .routing-roles {
    grid-column: auto;
  }

  .routing-toolbar,
  .routing-assurances {
    align-items: flex-start;
    flex-direction: column;
  }

  .routing-map {
    min-height: 0;
  }

  .routing-call-card,
  .routing-center-card {
    padding: 22px 18px;
  }

  .flow-diagram,
  .capability-grid,
  .roadmap-grid,
  .app-gallery {
    grid-template-columns: 1fr;
  }

  .app-concept:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .flow-node {
    min-height: 156px;
  }

  .handoff-line {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .waveform i,
  .flow-live-label i,
  .flow-track > i::after,
  .routing-live i,
  .routing-wave i {
    animation: none;
  }

  .flow-track > span,
  .flow-track > i,
  .flow-node,
  .flow-icon {
    transition: none;
  }
}
