/* ==========================================================================
   Voice slider: the "What you get with it" cards on the home page, also used
   by the "Switch or stay" sliders on the /vs/ comparison pages.
   Moved out of hybrid-home.css so both pages load the same rules.
   Loaded before hybrid-home.css (see inc/enqueue.php).
   ========================================================================== */

  /* The same aliases hybrid-home.css sets on :root, so the slider reads the same off the home page. */
  .voice {
    --white: var(--paper, #FFFFFF);
    --ink-muted: var(--ink-faint, #555555);
    --gutter: var(--page-gutter, clamp(20px, 3.2vw, 40px));
    --mk-container-wide: var(--container-wide);
  }

  /* ---- Voice: reviews + features slider ---- */
  .voice {
    padding: 56px 0 32px;
    background: var(--white);
    overflow-x: clip;
    max-width: 100%;
    border: 0;
  }
  .voice-title {
    margin: 0 auto 36px;
    width: var(--mk-container-wide);
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--ink);
  }
  .voice-title .voice-love {
    font-family: inherit;
    font-style: italic;
    font-weight: 500;
    color: var(--mk-blue);
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .voice-slider {
    width: var(--mk-container-wide);
    margin-inline: auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .voice-track {
    display: flex;
    width: max-content;
    animation: voice-marquee 48s linear infinite;
    will-change: transform;
  }
  .voice:hover .voice-track,
  .voice:focus-within .voice-track {
    animation-play-state: paused;
  }
  .voice-set {
    display: flex;
    gap: 16px;
    padding-right: 16px;
  }
  .voice-card {
    flex: 0 0 320px;
    min-height: 228px;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 28px rgb(24 32 33 / 0.045);
    text-align: left;
  }
  .voice-mark {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 0.7;
    color: #C8C8C8;
    margin-bottom: 14px;
  }
  .voice-card p {
    flex: 1;
    margin: 0 0 22px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.08rem;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: #3A3A3A;
  }
  .voice-card footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
  }
  .voice-av {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: #ECEDEF;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .voice-av--icon {
    color: var(--ink-muted);
  }
  .voice-av svg {
    display: block;
    width: 18px;
    height: 18px;
  }
  .voice-who strong {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 650;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .voice-who span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
  }
  @keyframes voice-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .voice-track {
      animation: none;
      width: 100%;
    }
    .voice-slider {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .voice-slider::-webkit-scrollbar { display: none; }
    .voice-set[aria-hidden="true"] { display: none; }
    .voice-set { padding: 0 var(--gutter); }
  }

  @media (max-width: 980px) {
    .voice {
      padding: 40px 0 28px;
    }
    .voice-title { margin-bottom: 28px; }
    .voice-card {
      flex-basis: 280px;
      min-height: 212px;
      padding: 22px 20px 18px;
    }
    .voice-card p { font-size: 1.08rem; }
  }
