/* The Claude export is the source of truth. These rules adapt its inline
   layout at responsive widths and contain narrowly requested layout fixes. */

/* The latency demo is below the fold. Keep its CSS animations frozen until
   the section intersects the viewport; the scripted text sequence uses the
   same state through overvoice-responsive.js. */
[data-screen-label="Latency"]:not([data-ov-in-view]) * {
  animation-play-state: paused !important;
}

/* The export used display-size microcopy in many labels. Raise every type size
   below 13px by exactly 2px so supporting copy stays readable throughout the
   landing page without changing body copy or headline scale. */
#dc-root [style*="font-size:9px"],
#dc-root [style*="font-size: 9px"] {
  font-size: 11px !important;
}

#dc-root [style*="font-size:9.5px"],
#dc-root [style*="font-size: 9.5px"] {
  font-size: 11.5px !important;
}

#dc-root [style*="font-size:10px"],
#dc-root [style*="font-size: 10px"] {
  font-size: 12px !important;
}

#dc-root [style*="font-size:10.5px"],
#dc-root [style*="font-size: 10.5px"] {
  font-size: 12.5px !important;
}

#dc-root [style*="font-size:11px"],
#dc-root [style*="font-size: 11px"] {
  font-size: 13px !important;
}

#dc-root [style*="font-size:11.5px"],
#dc-root [style*="font-size: 11.5px"] {
  font-size: 13.5px !important;
}

#dc-root [style*="font-size:12px"],
#dc-root [style*="font-size: 12px"] {
  font-size: 14px !important;
}

#dc-root [style*="font-size:12.5px"],
#dc-root [style*="font-size: 12.5px"] {
  font-size: 14.5px !important;
}

.ov-byok-details summary::-webkit-details-marker {
  display: none;
}

.ov-byok-details summary::marker {
  content: "";
}

.ov-byok-details summary {
  transition: background 180ms ease;
}

.ov-byok-details summary:hover {
  background: rgba(255, 255, 255, 0.045);
}

.ov-byok-details summary:focus-visible {
  outline: 3px solid rgba(168, 198, 250, 0.5);
  outline-offset: -3px;
}

.ov-byok-trigger span {
  display: inline-block;
  transition: transform 180ms ease;
}

.ov-byok-details[open] .ov-byok-trigger span {
  transform: rotate(180deg);
}

@keyframes ovsoundpulse {
  0%,
  100% {
    box-shadow: 0 5px 15px rgba(111, 99, 186, 0.24), 0 0 0 0 rgba(178, 135, 212, 0.3);
  }
  50% {
    box-shadow: 0 7px 20px rgba(111, 99, 186, 0.32), 0 0 0 8px rgba(178, 135, 212, 0);
  }
}

@keyframes ovsoundbounce {
  0%,
  45%,
  100% {
    transform: translateY(0) rotate(0);
  }
  58% {
    transform: translateY(-5px) rotate(-8deg);
  }
  70% {
    transform: translateY(1px) rotate(5deg);
  }
  82% {
    transform: translateY(-2px) rotate(-3deg);
  }
}

.ov-sound-toggle {
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease, color 180ms ease;
}

.ov-sound-toggle:hover {
  filter: saturate(1.08) brightness(1.02);
  transform: translateY(-1px);
}

.ov-sound-toggle:focus-visible {
  outline: 3px solid rgba(111, 99, 186, 0.32);
  outline-offset: 3px;
}

.ov-sound-icon {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  transform-origin: 50% 80%;
}

@media (prefers-reduced-motion: reduce) {
  .ov-sound-toggle,
  .ov-sound-icon {
    animation: none !important;
  }
}

/* The turn-by-turn demo has seven fixed-width beats. The export capped the
   whole section at 900px, which made the final reply wrap despite ample room
   on desktop. Give that sequence its intended single-line track. */
@media (min-width: 961px) {
  [data-screen-label="Latency"] > div {
    max-width: 1040px !important;
  }

  [data-screen-label="Latency"]
    > div
    > div:last-child
    > div:last-child
    > div:nth-child(2) {
    flex-wrap: nowrap !important;
  }
}

@media (max-width: 960px) {
  html,
  body,
  x-dc {
    max-width: 100%;
    overflow-x: clip;
  }

  #dc-root > .sc-host > div:first-child > div {
    max-width: none !important;
  }

  #dc-root > .sc-host > div:first-child > div > div:nth-last-child(2) {
    display: none !important;
  }

  [data-screen-label="Hero"] > div:last-child {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 760px !important;
    gap: 44px !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:first-child {
    align-items: center !important;
    text-align: center !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:first-child > div:nth-child(3) {
    max-width: 58ch !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:first-child > div:nth-child(4) {
    justify-content: center !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:last-child {
    width: 100% !important;
    scroll-margin-top: 86px !important;
  }

  [data-screen-label="Compatibility"] > div > div:last-child {
    grid-template-columns: 1fr !important;
  }

  [data-screen-label="Hear them"] > div,
  [data-screen-label="Keep their voice"],
  [data-screen-label="Speak back"],
  [data-screen-label="AI summary"],
  [data-screen-label="Library"],
  [data-screen-label="Session chat"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Once a feature becomes a single column, keep the explanation before its
     corresponding visual regardless of the alternating desktop composition. */
  [data-screen-label="Hear them"] > div > div:first-child,
  [data-screen-label="Keep their voice"] > div:first-child,
  [data-screen-label="Speak back"] > div:last-child,
  [data-screen-label="Session memory"] > div > div:first-child,
  [data-screen-label="AI summary"] > div:last-child,
  [data-screen-label="Library"] > div:first-child,
  [data-screen-label="Session chat"] > div:last-child {
    order: 1 !important;
  }

  [data-screen-label="Hear them"] > div > div:last-child,
  [data-screen-label="Keep their voice"] > div:last-child,
  [data-screen-label="Speak back"] > div:first-child,
  [data-screen-label="Session memory"] > div > div:last-child,
  [data-screen-label="AI summary"] > div:first-child,
  [data-screen-label="Library"] > div:last-child,
  [data-screen-label="Session chat"] > div:first-child {
    order: 2 !important;
  }
}

@media (max-width: 600px) {
  .ov-sound-toggle {
    width: 100% !important;
    min-width: 0 !important;
  }

  .ov-byok-details summary {
    padding: 18px 16px !important;
  }

  .ov-byok-details summary > span:first-child {
    min-width: 0 !important;
    width: 100% !important;
  }

  .ov-byok-panel {
    padding: 22px 16px 18px !important;
  }

  .ov-byok-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #dc-root > .sc-host > div:first-child {
    top: 10px !important;
    padding: 0 10px !important;
  }

  #dc-root > .sc-host > div:first-child > div {
    gap: 10px !important;
    padding: 8px 9px 8px 13px !important;
  }

  #dc-root > .sc-host > div:first-child > div > a[href="#pricing"] {
    display: none !important;
  }

  #dc-root > .sc-host > div:first-child > div > a:last-child {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }

  [data-screen-label="Hero"] > div:last-child {
    padding: 48px 16px 68px !important;
    gap: 38px !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:first-child > div:nth-child(1) {
    padding: 7px 12px !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:first-child > div:nth-child(1) > div:last-child {
    font-size: 11.5px !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:first-child > div:nth-child(2) {
    font-size: clamp(43px, 13.2vw, 54px) !important;
    line-height: 1.02 !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:first-child > div:nth-child(3) {
    font-size: 16px !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:first-child > div:nth-child(4),
  [data-screen-label="Hero"] > div:last-child > div:first-child > div:nth-child(4) > * {
    width: 100% !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:first-child > div:nth-child(4) > * {
    justify-content: center !important;
    text-align: center !important;
  }

  [data-screen-label="Hero"] > div:last-child > div:last-child > div:first-child {
    max-width: 100% !important;
    overflow-x: auto !important;
  }

  [data-screen-label="Hero"] image-slot + * {
    max-width: 100% !important;
  }

  [data-screen-label="Ribbon divider"] {
    height: 190px !important;
    width: 100% !important;
  }

  [data-screen-label="Ribbon divider"] > div {
    transform: translate(-50%, -52%) scale(.8) !important;
  }

  [data-screen-label="Compatibility"] {
    padding: 68px 16px 128px !important;
    border-radius: 28px 28px 0 0 !important;
  }

  [data-screen-label="Compatibility"] > div > div:first-child {
    font-size: 25px !important;
  }

  [data-screen-label="Hear them"] {
    padding: 20px 16px !important;
    border-radius: 28px 28px 0 0 !important;
  }

  [data-screen-label="Hear them"] > div {
    padding: 78px 0 128px !important;
    gap: 46px !important;
  }

  [data-screen-label="Hear them"] > div > div:first-child > div:nth-child(2),
  [data-screen-label="Keep their voice"] > div:first-child > div:nth-child(2),
  [data-screen-label="Speak back"] > div:last-child > div:nth-child(2) {
    white-space: normal !important;
    font-size: 36px !important;
  }

  [data-screen-label="Hear them"] > div > div:last-child {
    padding: 18px 12px 34px !important;
  }

  [data-screen-label="Hear them"] > div > div:last-child > div:first-child {
    width: 100% !important;
  }

  [data-screen-label="Hear them"] > div > div:last-child > div:nth-child(2) {
    left: 16px !important;
    right: 16px !important;
    bottom: 74px !important;
  }

  [data-screen-label="Hear them"] > div > div:last-child > div:last-child {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: calc(100% - 12px) !important;
    margin: -10px auto 0 !important;
  }

  [data-screen-label="Keep their voice"],
  [data-screen-label="Speak back"],
  [data-screen-label="AI summary"],
  [data-screen-label="Library"],
  [data-screen-label="Session chat"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 42px !important;
  }

  [data-screen-label="Speak back"] > div:first-child > div:first-child {
    flex-wrap: wrap !important;
  }

  [data-screen-label="Latency"] {
    padding: 88px 16px 132px !important;
    border-radius: 28px 28px 0 0 !important;
  }

  [data-screen-label="Latency"] > div > div:nth-child(2) {
    font-size: 40px !important;
  }

  [data-screen-label="Latency"] > div > div:last-child > div {
    padding: 18px 14px !important;
  }

  [data-screen-label="Latency"]
    > div
    > div:last-child
    > div:last-child
    > div:first-child,
  [data-screen-label="Latency"]
    > div
    > div:last-child
    > div:last-child
    > div:last-child {
    text-align: center !important;
  }

  [data-screen-label="Latency"]
    > div
    > div:last-child
    > div:last-child
    > div:nth-child(2) {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 230px !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  [data-screen-label="Latency"] [style*="width:86px"] {
    width: 62px !important;
  }

  [data-screen-label="Latency"]
    > div
    > div:last-child
    > div:first-child
    [style*="font-size:17px"] {
    font-size: 14px !important;
  }

  [data-screen-label="Latency"]
    > div
    > div:last-child
    > div:first-child
    [style*="flex:1; display:flex; min-width:0"] {
    gap: 8px !important;
  }

  [data-screen-label="Latency"]
    > div
    > div:last-child
    > div:first-child
    [style*="width:9%"] {
    width: 38px !important;
  }

  [data-screen-label="Latency"]
    > div
    > div:last-child
    > div:first-child
    [style*="width:9%"]
    > div {
    transform: scale(0.72) !important;
  }

  [data-screen-label="Use cases"] {
    padding: 88px 16px 0 !important;
  }

  [data-screen-label="Use cases"] > div:nth-child(2) {
    font-size: 36px !important;
  }

  [data-screen-label="Use cases"] > div:nth-child(3) {
    display: flex !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }

  [data-screen-label="Use cases"] > div:last-child sc-if > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [data-screen-label="Use cases"] > div:last-child sc-if > div > div:last-child {
    padding: 28px 24px !important;
  }

  [data-screen-label="Languages"] {
    margin-top: 92px !important;
    padding: 0 16px !important;
  }

  [data-screen-label="Languages"] > div:first-child {
    padding: 52px 18px !important;
    border-radius: 28px !important;
  }

  [data-screen-label="Languages"] > div:first-child > div:nth-child(2) {
    font-size: 36px !important;
  }

  [data-screen-label="Languages"] [style*="min-width:250px"] {
    min-width: 0 !important;
    width: 100% !important;
  }

  [data-screen-label="Comparison"] {
    padding: 92px 16px 0 !important;
  }

  [data-screen-label="Comparison"] > div:nth-child(2) {
    font-size: 36px !important;
  }

  [data-screen-label="Session memory"] {
    border-radius: 28px 28px 0 0 !important;
  }

  [data-screen-label="AI summary"],
  [data-screen-label="Library"],
  [data-screen-label="Session chat"] {
    padding-top: 88px !important;
  }

  [data-screen-label="Pricing"] {
    padding: 88px 16px 132px !important;
    border-radius: 28px 28px 0 0 !important;
  }

  [data-screen-label="Pricing"] > div > div:nth-child(2) {
    font-size: 40px !important;
  }

  [data-screen-label="Pricing"] [style*="min-width:280px"] {
    min-width: 0 !important;
  }

  [data-screen-label="Pricing"] [style*="width:170px"] {
    width: 118px !important;
  }

  [data-screen-label="Pricing"] [style*="min-width:280px"] {
    width: 100% !important;
  }

  [data-screen-label="Final CTA"] {
    padding: 145px 20px 125px !important;
    border-radius: 28px 28px 0 0 !important;
  }

  [data-screen-label="Final CTA"] > div:last-child > div:first-child {
    font-size: 44px !important;
  }

  [data-screen-label="Final CTA"] > div:last-child > div:last-child,
  [data-screen-label="Final CTA"] > div:last-child > div:last-child > * {
    width: 100% !important;
  }

  [data-screen-label="Footer"] {
    padding: 26px 16px 34px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}
