/* DriverX section styles, lifted verbatim from index.html so the product page
   carries the same phone mock and feature swap as the homepage. */
  .dx-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 6vw; align-items: start; }
  .dx-copy { padding-bottom: 6vh; }
  .dx-bens { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
  .dx-bens li {
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--text-dim);
    border: 1px solid rgba(239,243,233,.14); border-radius: 100px; padding: 7px 14px;
  }

  .dx-feats { margin-top: 52px; }
  .dx-feat {
    position: relative; display: grid; grid-template-columns: 1fr;
    align-items: baseline; gap: 4px; width: 100%;
    padding: 22px 0 22px 2px;
    border: 0; border-top: 1px solid rgba(239,243,233,.10);
    background: none; font: inherit; text-align: left; cursor: pointer;
    color: var(--text-dim); transition: color .45s var(--ease);
  }
  .dx-feat:hover { color: rgba(239,243,233,.86); }
  .dx-feat:hover .dx-n { color: rgba(179,210,48,.72); }
  .dx-feat:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
  .dx-feat:last-child { border-bottom: 1px solid rgba(239,243,233,.10); }
  .dx-n { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .2em;
          color: rgba(239,243,233,.34); transition: color .45s var(--ease); }
  .dx-name { font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; }
  .dx-note { grid-column: 1; font-size: 13.5px; line-height: 1.6; margin-top: 7px;
             max-width: 40ch; color: rgba(239,243,233,.53); }
  .dx-feat::after {
    content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
    background: var(--lime); transform: scaleX(0); transform-origin: left;
    transition: transform .55s var(--ease);
  }
  .dx-feat.is-on { color: var(--text); }
  .dx-feat.is-on .dx-n { color: var(--lime); }
  .dx-feat.is-on::after { transform: scaleX(1); }
  .dx-stage { position: sticky; top: 15vh; }
  .dx-phone {
    position: relative; width: min(296px, 80%); margin: 0 auto; aspect-ratio: 9 / 18.6;
    padding: 9px; border-radius: 42px;
    background: linear-gradient(158deg, #2A3125 0%, #11170E 46%, #060907 100%);
    border: 1px solid rgba(239,243,233,.17);
    box-shadow: 0 44px 90px rgba(0,0,0,.62), 0 4px 14px rgba(0,0,0,.5),
                inset 0 1px 0 rgba(239,243,233,.16);
    transform: perspective(1500px) rotateY(-10deg) rotateX(3deg) rotateZ(.5deg);
  }
  .dx-notch {
    position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    width: 82px; height: 20px; border-radius: 100px; background: #050704; z-index: 4;
  }
  .dx-screen {
    position: relative; height: 100%; border-radius: 34px; overflow: hidden;
    background: radial-gradient(125% 88% at 50% 0%, #101810 0%, #070A06 68%);
  }
  .dx-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 44px; z-index: 3;
    display: flex; align-items: flex-end; justify-content: space-between; padding: 0 18px 6px;
    font-family: 'IBM Plex Mono', monospace; font-size: 7.5px; letter-spacing: .2em;
    text-transform: uppercase; color: rgba(239,243,233,.42);
  }
  .dx-bar b { color: var(--lime); font-weight: 500; }
  .dx-view {
    position: absolute; inset: 44px 0 0; padding: 10px 16px 16px;
    opacity: 0; transform: translateY(12px) scale(.985); pointer-events: none;
    transition: opacity .45s var(--ease), transform .6s var(--ease);
  }
  .dx-view.is-on { opacity: 1; transform: none; }
  .dx-h { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }
  .dx-sub { font-family: 'IBM Plex Mono', monospace; font-size: 7.5px; letter-spacing: .2em;
            text-transform: uppercase; color: rgba(239,243,233,.56); margin-bottom: 9px; }
  .dx-card {
    border: 1px solid rgba(239,243,233,.12); border-radius: 11px;
    background: rgba(239,243,233,.035); padding: 10px 11px; margin-bottom: 8px;
  }
  .dx-card.hot { border-color: rgba(179,210,48,.45); background: rgba(179,210,48,.09); }
  .dx-card .t { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; }
  .dx-card .r { font-size: 10px; color: rgba(239,243,233,.5); margin-top: 4px; }
  .dx-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(239,243,233,.34); flex: none; }
  .dx-card.hot .dx-dot { background: var(--lime); box-shadow: 0 0 0 3px rgba(179,210,48,.2); }
  .dx-tag {
    margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 7px;
    letter-spacing: .14em; text-transform: uppercase; color: rgba(239,243,233,.5);
    border: 1px solid rgba(239,243,233,.16); border-radius: 100px; padding: 3px 7px;
  }
  .dx-card.hot .dx-tag { color: var(--lime); border-color: rgba(179,210,48,.4); }
  .dx-stop { border-radius: 13px; padding: 13px 13px 14px;
             background: linear-gradient(150deg, rgba(179,210,48,.16), rgba(179,210,48,.04));
             border: 1px solid rgba(179,210,48,.34); }
  .dx-stop .n { font-family: 'IBM Plex Mono', monospace; font-size: 7.5px; letter-spacing: .2em;
                text-transform: uppercase; color: var(--lime); }
  .dx-stop .a { font-size: 13px; font-weight: 600; margin-top: 6px; line-height: 1.35; }
  .dx-btn { display: block; text-align: center; margin-top: 12px; border-radius: 100px;
            background: var(--lime); color: #0d1600; font-size: 10.5px; font-weight: 700;
            letter-spacing: .12em; text-transform: uppercase; padding: 9px 0; }
  .dx-task { display: flex; align-items: center; gap: 9px; font-size: 11px;
             color: rgba(239,243,233,.74); padding: 9px 2px;
             border-bottom: 1px solid rgba(239,243,233,.08); }
  .dx-tick { width: 15px; height: 15px; border-radius: 4px; flex: none;
             border: 1px solid rgba(239,243,233,.24); display: grid; place-items: center; }
  .dx-task.done .dx-tick { background: var(--lime); border-color: var(--lime); color: #0d1600; }
  .dx-task.done { color: rgba(239,243,233,.52); text-decoration: line-through; }
  .dx-tick svg { width: 9px; height: 9px; display: block; }
  .dx-task:not(.done) .dx-tick svg { opacity: 0; }
  .dx-map { width: 100%; height: auto; display: block; margin-top: 4px; }
  .dx-map .lane { fill: none; stroke: rgba(239,243,233,.16); stroke-width: 2; }
  .dx-map .run  { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round;
                  stroke-dasharray: 300; stroke-dashoffset: 0; }
  .dx-view.is-on .dx-map .run { animation: dxRun 2.6s var(--ease) forwards; }
  .dx-map .node { fill: #070A06; stroke: rgba(239,243,233,.4); stroke-width: 1.6; }
  .dx-map .node.on { fill: var(--cyan); stroke: var(--cyan); }
  .dx-truck { fill: var(--lime); }
  .dx-view.is-on .dx-truck { animation: dxDrive 2.6s var(--ease) forwards; }
  .dx-live { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 11px; }
  .dx-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none;
              box-shadow: 0 0 0 0 rgba(46,171,198,.6); animation: dxPulse 2s ease-out infinite; }
  .dx-sig { width: 100%; height: auto; display: block;
            border: 1px dashed rgba(239,243,233,.2); border-radius: 10px; margin-top: 4px; }
  .dx-sig path { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round;
                 stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 0; }
  .dx-view.is-on .dx-sig path { animation: dxSign 1.6s var(--ease) forwards; }
  .dx-stamp { display: flex; align-items: center; gap: 8px; margin-top: 14px;
              border: 1px solid rgba(179,210,48,.4); background: rgba(179,210,48,.1);
              border-radius: 10px; padding: 10px 11px; }
  .dx-stamp svg { width: 15px; height: 15px; color: var(--lime); flex: none; }
  .dx-stamp b { font-size: 12px; }
  .dx-stamp span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 7.5px;
                   letter-spacing: .16em; text-transform: uppercase;
                   color: rgba(239,243,233,.45); margin-top: 3px; }
  .dx-sync {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 26px auto 0; max-width: 340px;
    font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--text-dim);
  }
  .dx-wire { flex: 1; height: 1px; position: relative; background: rgba(239,243,233,.16);
             overflow: hidden; }
  .dx-wire::after {
    content: ""; position: absolute; top: -1.5px; left: 0; width: 26px; height: 4px;
    border-radius: 4px; background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: dxWire 2.8s linear infinite;
  }
  .dx-cap { text-align: center; margin-top: 14px; font-family: 'IBM Plex Mono', monospace;
            font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase;
            color: rgba(239,243,233,.5); }
  .dx-swipe, .dx-nav, .dx-count { display: none; }
@keyframes dxNudge {
  0%, 100% { transform: none; }
  28% { transform: translateX(-26px); }
  52% { transform: none; }
  70% { transform: translateX(-12px); }
  86% { transform: none; }
}
@keyframes dxNudgeArrow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179,210,48,0); }
  30%, 70% { box-shadow: 0 0 0 7px rgba(179,210,48,.16); background: rgba(179,210,48,.22); }
}
@keyframes dxRun { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
@keyframes dxDrive { from { transform: translateX(-52px); } to { transform: none; } }
@keyframes dxPulse { to { box-shadow: 0 0 0 9px rgba(46,171,198,0); } }
@keyframes dxSign { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
@keyframes dxWire { from { transform: translateX(-30px); } to { transform: translateX(340px); } }
@media (max-width: 900px) {
    .dx-grid { grid-template-columns: 1fr; gap: 3vh; }
    /* the option is now the device's caption, not a column beside it */
    .dx-copy { padding-bottom: 0; }
    /* The copy leads on touch. The device used to lead here, and on a wide
       screen that reads well - but stacked, it put the phone a full screen
       above the options, so a tap changed something the reader had already
       scrolled past. Copy first, device below, swipe to move between
       screens. Desktop keeps the sticky device beside the copy. */
    .dx-stage { position: static; }
    .dx-phone { transform: none; width: min(210px, 58%); }

    /* The gesture belongs to the whole section, not just the device. With
       one option sitting above the phone, a swipe started on the words
       should move to the next screen just as one started on the device
       does. pan-y keeps vertical scrolling the page's, which is what lets
       every touch listener stay passive. */
    .dx-grid { touch-action: pan-y; }

    /* One option at a time. The full list stacked above the device meant
       four headings and four descriptions to scroll past before reaching
       the thing they describe; showing only the current one turns the
       section into a single card that the swipe advances. The others are
       still in the DOM and still reachable - by swiping, by the pips, or
       by a keyboard - they are simply not all on screen at once. */
    /* The device must not hop as the option changes, so the block reserves
       the tallest note rather than shrink-wrapping each one. All four are
       two lines at 375px (80px); the reserve is one line more than that,
       which covers a third line on a narrower screen without leaving a
       gap on every screen that does not need it. */
    .dx-feats { margin-top: 26px; min-height: 104px; }
    .dx-feat { display: none; }
    .dx-feat.is-on { display: grid; }
    /* list chrome makes no sense for a single item */
    .dx-feat, .dx-feat:last-child { border-top: 0; border-bottom: 0; padding: 0 2px 0 0; }
    .dx-feat::after { display: none; }
    .dx-name { font-size: 20px; }
    .dx-note { margin-top: 9px; }

    /* The pips are the only thing that tells anyone this swipes at all.
       Named pip, not dot: .dx-dot is already the status marker inside the
       dispatch cards. */
    .dx-swipe { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
    /* arrows either side of the pips, straight under the device */
    .dx-nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; }
    .dx-nav .dx-swipe { margin-top: 0; gap: 0; }
    .dx-arrow {
      flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
      border: 1px solid rgba(179,210,48,.55); border-radius: 50%; background: rgba(179,210,48,.07);
      color: var(--lime); cursor: pointer;
      transition: background-color .25s var(--ease), border-color .25s var(--ease);
    }
    .dx-arrow svg { width: 18px; height: 18px; }
    .dx-arrow:active { background: rgba(179,210,48,.2); }
    .dx-arrow:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
    .dx-count {
      display: block; margin: 10px 0 0; text-align: center;
      font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .16em;
      text-transform: uppercase; color: var(--text-dim);
    }
    /* one-time hint that the device swipes: it slides left and back, and
       the next arrow lights up at the same moment */
    .dx-phone.dx-nudge { animation: dxNudge 1.5s var(--ease) both; }
    .dx-nav.dx-nudge .is-next { animation: dxNudgeArrow 1.5s var(--ease) both; }
    .dx-pip {
      width: 40px; height: 40px; padding: 0; border: none; background: none;
      cursor: pointer; display: grid; place-items: center;
    }
    .dx-pip::before {
      content: ""; width: 7px; height: 7px; border-radius: 50%;
      background: rgba(239,243,233,.26);
      transition: background .25s var(--ease), transform .25s var(--ease);
    }
    .dx-pip.is-on::before { background: var(--lime); transform: scale(1.35); }
    .dx-pip:focus-visible { outline: 2px solid var(--lime); outline-offset: -6px; border-radius: 50%; }
  }
@media (prefers-reduced-motion: reduce) {
    .dx-view, .dx-feat, .dx-feat::after { transition: none; }
    .dx-view.is-on .dx-map .run, .dx-view.is-on .dx-truck,
    .dx-view.is-on .dx-sig path, .dx-wire::after, .dx-pulse { animation: none; }
  }
